Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
npinguy
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
npinguy
12y ago
The second "code" should have been "tests" ;) Edited
32.
▲
by
npinguy
12y ago
The theory for test-first is you'll come up with a more testable design, and have better, cleaner, more focused tests if you write them first, then design the code based on the tests. If you write the code first, then try to write the
33.
▲
by
npinguy
12y ago
Nothing crazy required public EmployeeController(EmployeeMapper mapper){} public Employee create() { ... mapper.save(employee); return employee; } Done. All you do now is create a mock employee mapper in your tests, and you can verify just
34.
▲
by
npinguy
12y ago
While I agree with your argument, it doesn't really apply to Niels Bohr's horseshoe. The cost of having a horseshoe over your door is zero, and if there is any negligible impact of it's positive luck, it's a worthy wager
35.
▲
by
npinguy
12y ago
While I agree, I think Apple's core demographics does not want to think about the file system. There are enough abstractions created by the apps to the point that users don't think about where their files are at all. It's not
36.
▲
by
npinguy
12y ago
Use this as a perfect example to explain to people why Net Neutrality matters. "What incentive does AT&T have to bring you good streaming experience for Netflix, Hulu, or heck even Youtube when they'd much much MUCH rather you
37.
▲
by
npinguy
12y ago
Eugenics received widespread support pretty much until the truth came out about the treatment of the Jews in Germany, which is when the supporters suddenly woke up and understood what the realization of those ideas inevitably leads to. But
38.
▲
by
npinguy
12y ago
That program is extremely controversial, as your link says. Drug addiction is all about the inability to commit to long term plans in favour of the quick short term happiness. Drug addicts are not capable of making rational decisions when f
39.
▲
by
npinguy
12y ago
While eugenics is indefensible, it was an extremely popular theory at the time with support from a large portion of the scientific community. I'm not saying we should whitewash history and avoid talking about this detail of his life at
40.
▲
by
npinguy
12y ago
Yeah, not sure how this is rising, this approach is much simpler. I could understand if he created an implicit cast from int TO BookingTypeId. This way, at least, consumers could not care about BookingTypeId if they didn't want to and
41.
▲
by
npinguy
12y ago
The only winners of the current software patent system are lawyers. I sincerely hope we look back at this dark time and laugh at it like we do with powdered wigs. Unfortunately I just don't see any change on the horizon, so it's j
42.
▲
by
npinguy
12y ago
Javascript is not the easiest first language to pick up, though obviously it is the one you will get the most bang for your buck from as a designer. I think what might help you is thinking of programming languages as foreign languages. They
43.
▲
by
npinguy
13y ago
Except relocation costs, lawyer fees, living expenses (frequently covered for a time period after move), and so on. Bringing a foreign employee over is incredibly expensive. The reason companies do it isn't to get a grateful slave that
44.
▲
by
npinguy
13y ago
I really wish when people talked about "death threats", there was some clarification on what that actually means. Is it a detailed email summarized as "I know where you live, you better watch your step, because I'm going
45.
▲
by
npinguy
13y ago
If Michael Abrash is happy, then John Carmack is happy. If those two are happy, HN should be happy. Maybe this Facebook thing won't be so bad after all.
46.
▲
by
npinguy
13y ago
It's simply too late. There was MAYBE a chance 20 years ago to push adoption of this into major text editors and spreadsheet software. But now it's like harping on the benefits of HDDVD or Bluray.
47.
▲
by
npinguy
13y ago
Fair play. I certainly know that pressure too.
48.
▲
by
npinguy
13y ago
You've fallen into a common trap. A trap that many developers and managers do - that software is the goal. It's not. Software is a means to an end. A tool we built for users and customers to solve their problems. Software that doe
49.
▲
by
npinguy
13y ago
The city is free to mandate subsidized housing ratios in the neighborhoods it is worried about becoming gentrified. Maybe it doesn't because it wants the property tax revenue from the highly paid tech employees that live in these neigh
50.
▲
by
npinguy
13y ago
Nice one!
51.
▲
by
npinguy
13y ago
Android user here. First of all: "They are a great Christmas present to an iPhone user!" No. Seriously? A loyal iPhone user would resent you for being preachy. And if your target just happens to use an iPhone by default without tr
52.
▲
by
npinguy
13y ago
I'm amused that you take so personally the concept of a professional who's not familiar with your competencies trying to evaluate your ability. Which by the way is more than just pumping out code, it also involves defending diffic
53.
▲
by
npinguy
13y ago
c) Push the interviewer to defend their decisions, and see how they react. If you can't defend your decision to intelligent people with strong opinions (!== assholes automatically), you won't make a good developer
54.
▲
by
npinguy
13y ago
Force push is never a mistake. You have to explicitly add the force flag, and if you choose to go down that path, then you better be sure you know what you're doing. If you don't, but still manually setting that flag to fix the e
55.
▲
by
npinguy
13y ago
The issue isn't force-pushing. The issue is pushing to multiple branches. This is a local developer's Git issue, not a Github issue: http://stackoverflow.com/questions/948354/git-push-default-b... but on
56.
▲
by
npinguy
13y ago
I swear, as a C#/Java/Javascript developer, reading stuff like this just makes me feel like a shitty developer. I know I'm a very competent programmer and architect but I feel like I could not grasp this kind of low level op
57.
▲
by
npinguy
13y ago
I need to offer an alternative point of view. It's a great set, but it's not as legendary as people seem to want to make it out to be. I think there is an element of "you had to be there" that is missing in an audio rec
58.
▲
by
npinguy
13y ago
What are your thoughts on the whole [Colony Collapse Disorder]( http://en.wikipedia.org/wiki/Colony_collapse_disorder )? Have you noticed an impact to your work? As a side question, do you think bees are treated ethical