Live data from Hacker News

My Biggest Regret as a Programmer

thecodist.com

591–600 of 634 posts

Re: My Biggest Regret as a Programmer

#591
post #545

Earlier quoted context omitted.

JS is popular for one reason - browser support.

Indeed. It's the best (shittiest) way to deploy code on as many people's desktops as possible.

Ecactly the environment JavaScript exists in (the open web) is so accessible and awesome, which is why it's popular, and that awesomeness rubs off IMO

Re: My Biggest Regret as a Programmer

#592

Earlier quoted context omitted.

> It's a little surprising that 1 + '1' is '11', until you spend a little time and learn the rules instead of fighting them - then you start doing your work in a way that uses that to save time. You are omcpletely underestimating the complexity of JS's implicit coercions. If you haven't already seen it, watch the Wat talk [1]. Finally, the fact that you need the console to even understand the meaning of a code fragme…

> Finally, the fact that you need the console to even understand the meaning of a code fragment is a perfect example of language failure. Isn't that the case for every language with polymorphism? Even C, once you add function pointers to the mix. I've certainly heard polymorphism and OOP criticized on these grounds, but unless you're a hardcore kernel or embedded developer, that ship sailed about 25 years ago. Everyb…

> Expecting to be able to look at a code sample in isolation and know what it does is unrealistic for any large-scale system.

I don't know why you'd think that. In a typed language, you simply look at the types and you know exactly the intended meaning of a code fragment ie. what inputs are needed, what outputs are produced, etc. That's not remotely the case for JavaScript due to its implicit conversions.

Re: My Biggest Regret as a Programmer

#593

Earlier quoted context omitted.

The only truly terrible part of JavaScript is all the implicit coercions around equality checking. It would actually be a decent language if it reported type errors instead. There are a few other smaller issues that are nuisances, like not being able to actually check if a value is a number, but I think coercions cause the most headaches for discoverability and debugging.

I'm with you except for wanting type errors. I like ducktyping and in coffeescript -- I know, I'm not cool -- you get the existential operator `?` which makes ducktyping really nice. I really think the problem with javascript really boils down to the fact that it's still in beta and will never have the breaking changes necessary to move it to a 1.0 language (i.e . the ECMA committees commitment to not breaking the we…

> I'm with you except for wanting type errors.

Duck typing for methods and such is fine if that's what you're into, but if you're checking for equality, you want type errors, period. Only like equals like. Doesn't matter if your language is statically typed or dynamically typed, equality means something very specific and it's very surprising when those expectations are violated.

Re: My Biggest Regret as a Programmer

#594

Sounds like the typical success anxiety everyone suffers from today. You could have been everything, successful, rich, famous, but you chose what you wanted and that's ok, it's for the best, that's true success, don't run after the carrot. Every programmer I meet dream of being CEO, having their own company, making more money. Yet over 90% of them don't enjoy any of their current profit. Literally, with my programmer…

Do you own a personal jet or a personal yacht? Bill Gates does (or definitely can).

Re: My Biggest Regret as a Programmer

#595

Earlier quoted context omitted.

Yep, this leads me to my biggest regret as a programmer: going into engineering instead of medicine. I really should have become a doctor or some other kind of hospital worker instead: the money would have been at least as good, and I would have gotten to work in a place with lots of women.

You would also have had to go to school for several more years, incur massive debt in the process, and work insane hours for virtually no pay as a resident.

Yeah, but the long-term rewards definitely seem worth it. Also, they cut back on the residency requirements a while back because sleep-deprived residents were making fatal mistakes.

Re: My Biggest Regret as a Programmer

#596

Sounds like the typical success anxiety everyone suffers from today. You could have been everything, successful, rich, famous, but you chose what you wanted and that's ok, it's for the best, that's true success, don't run after the carrot. Every programmer I meet dream of being CEO, having their own company, making more money. Yet over 90% of them don't enjoy any of their current profit. Literally, with my programmer…

There is at least something you can do that Bill Gates can't, and that is, using an iPhone in public.

Re: My Biggest Regret as a Programmer

#597

Sounds like the typical success anxiety everyone suffers from today. You could have been everything, successful, rich, famous, but you chose what you wanted and that's ok, it's for the best, that's true success, don't run after the carrot. Every programmer I meet dream of being CEO, having their own company, making more money. Yet over 90% of them don't enjoy any of their current profit. Literally, with my programmer…

Do you own a personal jet or a personal yacht? Bill Gates does (or definitely can).

What experience does that enable that you can't get on a normal airline? The food is fancier. You fly directly into smaller airports. It's more comfortable. But you can still get to all those same places without a private jet. You can go sailing on a relatively small budget. No, you can't own a huge personal yacht, but owning a yacht is not much of an experience.

Re: My Biggest Regret as a Programmer

#598
Hindsight. Could have become VP or stayed with apple and gotten hit by a bus the next year. So many paths that could have played out as a lowly "programmer" and this person is just looking at his/her sister as if it's as simple as option A or option B and if only he/she picked the other. That's not life. I'm not down with this post.

Re: My Biggest Regret as a Programmer

#599

Sounds like the typical success anxiety everyone suffers from today. You could have been everything, successful, rich, famous, but you chose what you wanted and that's ok, it's for the best, that's true success, don't run after the carrot. Every programmer I meet dream of being CEO, having their own company, making more money. Yet over 90% of them don't enjoy any of their current profit. Literally, with my programmer…

Do you own a personal jet or a personal yacht? Bill Gates does (or definitely can).

Owning a yacht is not as glamorous as it seems. You have to pay for parking, cleaning, gas, etc. A yacht is not like a car. Its 10 times more work to upkeep. The grass is always greener on the other side.

Re: My Biggest Regret as a Programmer

#600

Earlier quoted context omitted.

Do you own a personal jet or a personal yacht? Bill Gates does (or definitely can).

What experience does that enable that you can't get on a normal airline? The food is fancier. You fly directly into smaller airports. It's more comfortable. But you can still get to all those same places without a private jet. You can go sailing on a relatively small budget. No, you can't own a huge personal yacht, but owning a yacht is not much of an experience.

> owning a yacht is not much of an experience

Who remembers Tom Vu? And his yacht? http://youtu.be/c5OOHotxAYk

Post reply on HN