HNHacker News
TopNewBestAskShowJobs

jkingsbery

2,170 karma · joined January 19, 2010

submissionscomments
jkingsbery··on An Oral History of Disney's 'The Emperor's New Groove'
I re-watched The Emperor's New Groove with my kids a year or two back. Still a great film as an adult.
jkingsbery··on Can you make a basic web app without Googling? I can’t
I probably could at some point. It's pretty easy: you do the right commands to generate a Java project from a maven archetype or to start a Rails project, you hook up your git repo to Heroku, tweak some HTML. Today if I wanted to, I could memorize the sequences to stick some node.js inside of an AWS Lambda.

There are at least a few problems with this: 1. I don't have to create a basic web app frequently, so I've forgotten the commands. They're easy to find with googling. It's not worth my time to memorize them. (When I was learning to program in the 90's my family didn't have Internet access yet, but if you replace "google" with "looking through helpfiles or programming books," you get the same effect.)

2. The kinds of webapps professional software engineers build generally aren't "basic." Webapps at the professional level are complicated. Rather than "an over-reliance on documentation indicate a lack of critical expertise that will ultimately result in considerably lower job performance," reliance on documentation seems to be more about having more tools at our hands to build software that's more maintainable in the long run. We have frameworks/services that handle payments, security, storing data, and so on for us. The trade-off for delegating to others solving ancillary problems for you is that you have to read their documentation.

3. More and more in my career, I find myself not just googling technology but to try to understand business domains. Our job isn't to tell our boss "Here's a webapp!" Our job is to solve a customer need, and that involves understanding who the customer is. Could I shovel some code out the door without googling around for something? Maybe, but it probably wouldn't be very good.

4. All else being equal, I'd rather work with an engineer who is good at finding information quickly rather than someone who insists on figuring it out. Google is not some magic mind reader - you have to know the names of some of the things your trying to do, you have to assess the likelihood of an approach is worth trying, and even if you do get an answer from Google, you'll inevitably need to adapt it in some way to meet your need. Sometimes, it's not enough to look it up in Google, you have to reach out to other people, and you need to know how to formulate your question to help others help you. There is skill involved in finding information.

5. I look up things that I already know all the time. Just because you know something, that doesn't mean you shouldn't double check that you know it as well as you think, or that there isn't some better answer or solution. For one example within programming, I'll look up articles I read 6 years ago that do a good job of explaining an idea to someone before I give feedback on a code review and I have to explain a similar idea.

So, engineers don't just memorize stuff for the sake of it. Anyone reading this article shouldn't feel like they're not a real engineer because they can't do what the author suggested.

jkingsbery··on 365 days or 1 year? Smaller units are more credible
If I was hiring an agency to build a mobile app, and one of them came back with "195 days," I would have pretty high confidence that they've never built anything of noteworthy complexity before, and that they think that software projects can be planned to the day months in advance.

On the other hand, for operational promises (e.g., a 24-hour SLA) means something more specific than a 1-day SLA: 24 hours is clear, whereas anything based on days requires definitions (Literally the next day? After one full calendar day has passed?

So, no, smaller units are not more credible... smaller units make a more specific claim which in some cases is more credible, but in some cases is not credible.

jkingsbery··on Instacart to cut 1,900 jobs, including its only union roles
As someone who is a Catholic first and politically more conservative second, the question of Unions is pretty interesting.

Catholic teaching says that in principle, unions can do a lot of good, see for example:

> The most important of all [voluntary associations] are workingmen's unions, for these virtually include all the rest. History attests what excellent results were brought about by the artificers' guilds of olden times. They were the means of affording not only many advantages to the workmen, but in no small degree of promoting the advancement of art, as numerous monuments remain to bear witness... (http://www.vatican.va/content/leo-xiii/en/encyclicals/docume...,

> Among the basic rights of the human person is to be numbered the right of freely founding unions for working people. These should be able truly to represent them and to contribute to the organizing of economic life in the right way. Included is the right of freely taking part in the activity of these unions without risk of reprisal. Through this orderly participation joined to progressive economic and social formation, all will grow day by day in the awareness of their own function and responsibility, and thus they will be brought to feel that they are comrades in the whole task of economic development and in the attainment of the universal common good according to their capacities and aptitudes. (http://www.vatican.va/archive/hist_councils/ii_vatican_counc...)

When I read those descriptions, and compare that to either the limited experience I had working for a company that was largely unionized or the stories that I've heard or read about, I'm not sure how often these apply outside of a few genuinely dangerous occupations.

See as one example how some unions have argued that union jobs should be exempted from minimum wage laws (https://www.theguardian.com/us-news/2016/apr/12/los-angeles-..., https://www.uschamber.com/sites/default/files/documents/file..., https://padailypost.com/2018/04/02/minimum-wage-law-includes...). Evidently, unions see an opportunity to grow their market share by lowering their prices (i.e., wages of labor), and do so by lobbying Congress from exemptions from law, which is the very thing that they claim corporations are evil for doing and that we need unions to exist in order to stop. The argument is that unions are able to negotiate better benefits, but they don't argue for an exemption from minimum wage if the employer provides a certain level of benefits, they argue for an exemption specifically for using unionized labor.

Are there good unions and good union leaders out there? Sure, but I think this example shows that unions in themselves do not advance the "whole task of economic development and in the attainment of the universal common good," but are instead subject to incentives and respond to them the way any other organization does, and very often the incentives of the union leadership is different than those doing the actual work.

jkingsbery··on Instacart to cut 1,900 jobs, including its only union roles
> No one is forced to work a union job.

This is technically true, but this is also an argument against unions. It's true that if you don't like that your company is unionized you can go work for a company that's not unionized, but it's also true that if you don't like that your company is not unionized you can go work for a company that is.

jkingsbery··on Why do we assume extraterrestrials might want to visit us?
Given that horses run faster than 30 mph [1], and people have been riding on horses for a while before trains were developed [2], this seems unlikely.

[1] https://horseandrider.com/western-horse-life/fastest-a-quart...

[2] https://en.wikipedia.org/wiki/Domestication_of_the_horse

jkingsbery··on Why do we assume extraterrestrials might want to visit us?
I have no way to verify the author's claim, but it strikes me as likely self-refuting to argue that life seems so rare because actually it's super common.
jkingsbery··on Why do we assume extraterrestrials might want to visit us?
Agreed. Taking the "ant" argument to it's logical conclusion and based on https://xkcd.com/1610/, there very well might be some alien who is part of a very advanced society and struggling in grad school, and that alien's advisor (unhelpfully) is suggesting how cool it is that we earthlings manage to do what we're able to do despite how primitive we are.
jkingsbery··on Ask HN: Anyone know any funny programming jokes?
(To explain to others)

So now All your base are belong to us (https://knowyourmeme.com/memes/all-your-base-are-belong-to-u...).

jkingsbery··on Ask HN: Anyone know any funny programming jokes?
The way I heard this (https://twitter.com/codinghorror/status/506010907021828096?l...) was "There are two hard problems in computer science: cache invalidation, naming things, and off by one errors."

Still good though.

jkingsbery··on Again on 0-based vs. 1-based indexing
I know Visual Basic gets a bad rap, but as a learning language it had an interesting feature, `Option Base`. By putting `Option Base` in a module, it changed how the indexing of arrays worked. It defaulted to 0, but for some applications (and also, when you're first learning), 1 can be convenient.

Of course, there are problems with this in a professional setting, such as how do you enforce uniformity across modules, and what happens if you copy code from one module that's Base 0 to one that's Base 1 and vice versa. But when I was first learning how to program, it was helpful to me to have a language that allowed for some choice.

In the meantime, 23 years of programming have led me to believe that index base 0 makes sense. For many applications it's moot, because we should be using higher level functions (like map and reduce) for processing lists. In every other application (such as working with data on a grid), dealing with offsets does make things easier.

Perhaps the convention is arbitrary. But, lots of industries have arbitrary conventions that we all agree on just to aid communication, and I disagree with the original author that the term "groupthink" applies in this situation.

jkingsbery··on Why a Universal Society Is Unattainable
In focusing on Brexit (and possible secession of Northern Ireland and Scotland from the UK), the author seems to equate "society" with a political entity. The author never defines what he means by society, but it seems like perfectly good definitions ("the aggregate of people living together in a more or less ordered community" is the definition Google gives) mean that society is something not just political. Other definitions ("a community, nation, or broad grouping of people having common traditions, institutions, and collective activities and interests" is the definition given by https://www.merriam-webster.com/dictionary/society) make the concept of a "Universal Society" an oxymoron - we cannot have a universal society until we have, among other things, universal traditions.

> "But what might happen if people could forgo those traits that “mark” their identities or somehow put aside the drive to categorize each other by means of such labels—to separate us from them based on language, clothing, gestures, or religious beliefs?"

This line of questioning trivializes what religious belief means for many of us. I don't know much about the author, but there is an idea among many who are not religious that religion is an arbitrary "mark." While it certainly can be that and has often played that role in history, this oversimplifies differences in world view. I belong to a Catholic parish not out of accident but because of choice, and I seek friendship within my Catholic parish because our shared world view gives us a basis for understanding that I don't share with my non-Catholic and non-Christian coworkers.

------

> "its [the EU's] members have a history of conflict dating from the Middle Ages"

Perhaps this is a nit-pick, but sentences like this seem to reinforce that the Middle Ages was when conflict began in Europe. Europe had lots of conflict before the Middle Ages. Further, what fighting happened in Europe during the Middle Ages usually happened despite a stronger sense of a universal community (membership in the Christian church) then existed for hundreds of years later, demonstrating a counterexample of the author's hypothesis about some general trend toward universalization of society.

jkingsbery··on An Engineering Argument for Basic Income
"The curious task of economics is to demonstrate to men how little they really know about what they imagine they can design. To the naive mind that can conceive of order only as the product of deliberate arrangement..." - Frederick Hayek

Whether or not UBI is a good idea, a useful idea, or a moral idea is an interesting question (I generally think not, but it seems that position is losing the debate). Arguing for UBI (or any other aspect of the economy) from an engineering perspective is a mistake though. An economy is not an elevator. When we put failsafes in to elevators, we know what they do. When we put failsafes in to economies, they behave in bizarre, unpredictable ways.

A lot of things went in to the 2008 financial collapse, but at least part of it was due to a large group of smart (but in retrospect, unwise) people assuming that a math equation accurately represented the financial system.

jkingsbery··on Signal community: Reminder: Please be nice
So, I agree we should all be charitable, but we also shouldn't settle for "well, that's just how I am" because communication can be a practiced skill.

As one example, a direct-personality coworker of mine learned to compensate by asking others for feedback before sending emails (or at least important ones to others outside the team).

As another example, I've seen people with http://three.sentenc.es/ in their email signatures, and this makes it clear that the brevity comes from valuing the time of the reader.

jkingsbery··on Signal community: Reminder: Please be nice
I've come to the conclusion in the past couple years that the world would be a better place if adults were forced to watch Daniel Tiger episodes. So many things it covers (like, how to be kind, how not to over react to bad news, how to give a proper apology or show gratitude) seem like they ought to be simple but turn out to be rare.
jkingsbery··on How America Bankrupted its Cities [video]
Reading the actual book that this video is based on, those pushing the "Strong Towns" theme are pretty agnostic to free markets, so it's kind of besides the point. The point is - we spend $X/year on infrastructure, but people only seem to think that infrastructure is worth <$X/year, so there will forever be a deficit.

The Strong Town books also discusses what happened with a lack of regulation throughout almost all of human history: everyone lived in rural areas to work a farm, or else lived and worked in dense urban areas. American suburbia happened in large part not due to a lack of regulation at the top, but federal money being spent on roads, highways and infrastructure at the top.

jkingsbery··on St. Benedict’s Rule for Monasteries (516)
For a pretty good book describing how to apply this rule in modern life, see "Seeking God: The Way of St. Benedict" by Esther de Waal.
jkingsbery··on St. Benedict’s Rule for Monasteries (516)
I think you are mistaken in some details.

Monasteries from pretty early on required celibacy. According to https://en.m.wikipedia.org/wiki/Clerical_celibacy_in_the_Cat..., priests did get married until the 12th century (even then, some say there was an unenforced law rule on the books saying that wasn't supposed to happen) .

While there were some theological and worldly reasons for the change, competition with lords wasn't one, and doesn't make a lot of sense. Religious communities were largely populated by the children of the nobles, and nobles gave to monasteries. (And again, wouldn't apply, since only non-monastic priests were married.)

jkingsbery··on Stop the “Hard Work” Obsession
As someone from the US, my experience is different from what this article portrays. When it's come up, everyone I've heard from acknowledges the role that their parents, schools, community and even luck play.

A lot of the political dialog is also about how more people can have access to quality education. In my own state, we spend around $20k per student per year in the poorest school districts, so I don't think the story that the US just ignores poor communities and tells them to work harder is quite so simple.

jkingsbery··on Ask HN: What does mastery look like in software engineering?
Most engineers I know in this situation move on to a new project before too long.
jkingsbery··on Show HN: Handel – A procedural programming language for writing songs in browser
Looks interesting. I had spent a while playing around with LilyPond (http://lilypond.org/), and I think something like Handel would solve issues with some of the more repetitive parts of using LilyPond.

One thing that would be helpful that I didn't see would be able to write transformations of chunks. For a few examples: (1) taking a chunk and replaying it in a different scale (or with a different starting note), (2) having the end of a chunk resolve to the tonic up an octave, (3) inverting or chunking chords following common patterns.

It would also be great if instead of just outputting midi, it could also output either to engraved music, or to some other format (e.g., LilyPond) that someone could then use to create a PDF.

jkingsbery··on Why China Turned Against Jack Ma
I don't think the National Enquirer is a "right-wing media outlet," so much as a sleazy tabloid whose owner happened to be friends with Donald Trump. See e.g., https://fivethirtyeight.com/features/how-the-national-enquir..., in which the same owner tat tried to blackmail Bezos started publishing in 1999 "Why I should be President" articles from Donald Trump, during which time Trump was (briefly) a member of the Reform Party before he became a Democrat.
jkingsbery··on Why China Turned Against Jack Ma
> "A growing number of people in China seem to feel the opportunities that people like Mr. Ma enjoyed are disappearing"

As of 2021-01-04, it appears that's not all that's disappeared: https://www.dailymail.co.uk/news/article-9108421/Chinese-tec...

> “An outstanding people’s billionaire like Jack Ma will definitely be hanged on top of the lamppost,”... The Communist Party seems more than willing to tap into that resentment.

I wonder given that Jack Ma hasn't been seen in two months, if the author would still juxtapose these two paragraphs in this way?

jkingsbery··on Meritocracies Are Unfair – and That's the Point
I think the author has a very different definition of "fair" than what I usually think of it (free from favoritism; conforming to established rules; see https://www.merriam-webster.com/dictionary/fair).
jkingsbery··on I prepared for a decade to graduate in CS in three months
I read the story differently. It seems like WGU splits two problems (teaching material and verifying that the students learned material) into two different problems. It's not that the author crammed weeks of learning into hours, it's that the author _already knew all the same material from years of experience with it_, and just needed someone to help him verify "Yes, this person understands this material." I would love to see more universities who are happy to verify people's learning, instead of pretending there's only one way to learn the material.

The objection you raise seems more relevant to bootcamps, which claim to teach one how to program in a matter of weeks. After a few weeks, students might be able to get by, but they aren't going to be on par with people who have been working through some of this stuff for several years.

jkingsbery··on I Regret Quitting Astrophysics
> I think I have gained skills and experience that can be very valuable to the astronomical community, but I know that that is simply not what candidates for academic positions are selected on.

t seems pretty damning to suggest that a community selects its members based on something other than having "skills and experience that can be very valuable" to that same community. Is that really true? Hopefully we're putting the best people in place for these academic jobs, and not simply the well-connected people who happened to go to the fanciest schools.

jkingsbery··on How I read books: a guide on how to learn
While I think there are some merits to this approach, I think some caution is also needed.

There are numerous times where I've read a lot of material quickly, not really mastering it but making a mental note of where to find that later. It's easy enough to go back and look up facts, reference material, or techniques for solving a particular kind of problem later, you don't need that to change your life.

Another other problem is: it's hard to know what books will change your life. For me, Fermat's Enigma (https://www.amazon.com/Fermats-Enigma-Greatest-Mathematical-...) and The Last Lecture (https://www.amazon.com/Last-Lecture-Randy-Pausch/dp/14013232...) were both life changers, but it would have been hard to know that going in to reading them.

Still another problem is that there are multiple ways at getting repetition. One approach is to read one book really intently. Another approach though is to consume similar related media over a period of time. If you listen to a weekly podcast (like EconTalk, for one example), very often similar themes come up over and over again. Or you can read several books by one author, or a group of related authors.

Finally, and maybe this is a more minor point, the post's author mentions taking down great quotes. One thing I've realized from my reading is that great quotes sometimes help summarize and understand the flow, but pretty often they don't. One of the nice thing about reading on the Kindle app on a phone is that there are multiple colors for highlighting, and I find it helps to highlight differently for "this is an awesome quote" vs. "this sentence is important in following the structure of the argument."

jkingsbery··on Web Scraping Is Vital to Democracy
The connection between web scraping and the case cited seems pretty tenuous. I can't say I know much about the definition of Computer Fraud and Abuse Act, but employment agreements commonly stipulate that the employee can only access information to the extent needed for his or her job. So defining this as unauthorized use wouldn't at all be surprising given how that term is used in practice.

The article then goes on to defend web scraping which is very different because (1) the person in question accessed data manually, (2) the person in question had access to confidential information, (3) the person in question used the data in a way he must have agreed not to as part of his employment. It's hard to see how someone could connect whatever precedent this case sets to web scraping.

jkingsbery··on Less than half of Americans know that alcohol is a carcinogen
<not-helpful-comment>

The ink on the label might cause cancer. Shouldn't the cancer label have a label on it?

</not-helpful-comment>

jkingsbery··on South Africa's lottery probed as 5, 6, 7, 8, 9 and 10 drawn
Yeah, it's not a question of what is P(X=5,6,7,8,9), it's P(Someone is cheating | X = 5,6,7,8,9).

In any case, there's probably a few people out there who picked "1 2 3 4 5" that are kicking themselves extra hard.

← PreviousPage 9 of 21Next →