Live data from Hacker News

Programming blogs

danluu.com

11–20 of 64 posts

Re: Programming blogs

#11
post #6

Earlier quoted context omitted.

I love that video. There is nothing offensive in the video, I think he does a pretty good job explaining how bat shit ridiculous javascript is. If you are writing js professionally and haven't already come to terms with that and the existential crisis it entails... you're gonna have a bad time.

I know I shouldn't be turned off by this, but I so am. And I'm starting to dislike the dev-community more and more for each day I try to learn programming myself. Elitism at its worst. I guess it started a few years back when I started an introductory programming-class at university where I was supposed to learn Java. I had already tried some light-weight languages like HTML and CSS and felt comfortable modding Wordp…

Since JavaScript is the only way to achieve a lot of things people want to do it is not going anywhere, even when the craze for server-side JS eventually dies.

Re: Programming blogs

#12
post #6
post #2

I love Gary Bernhardt's writings, screencasts and lightning talks and his sense of humor, especially this one[1]. But unfortunately, some JavaScript developers might feel it offensive. [1] https://www.destroyallsoftware.com/talks/wat

I love that video. There is nothing offensive in the video, I think he does a pretty good job explaining how bat shit ridiculous javascript is. If you are writing js professionally and haven't already come to terms with that and the existential crisis it entails... you're gonna have a bad time.

I used to think that people who thought JS was ridiculous didn't understand JS.

I didn't understand JS.

Well, actually, I did understand JS. I understood it really well. You could show me any obscure piece of JS and I could tell you the semantics. Before I went all Web and JS and Hip New Tech, most of my work had been in Java, so understandably I thought JS was great. Then I started using other languages more seriously and now I am much happier and more productive.

Re: Programming blogs

#13
post #6
post #2

I love Gary Bernhardt's writings, screencasts and lightning talks and his sense of humor, especially this one[1]. But unfortunately, some JavaScript developers might feel it offensive. [1] https://www.destroyallsoftware.com/talks/wat

I love that video. There is nothing offensive in the video, I think he does a pretty good job explaining how bat shit ridiculous javascript is. If you are writing js professionally and haven't already come to terms with that and the existential crisis it entails... you're gonna have a bad time.

This is more in-depth and less for the lulz:

https://www.youtube.com/watch?v=2pL28CcEijU

Re: Programming blogs

#14
post #9

> a hacker who will stay up till 4:00 AM rather than go to bed leaving code with a bug in it. Question for other folks here: In your experience, does staying up until 4:00AM tend to lead to you being more or less productive in the long term?

Less, for a few days, if you do it once. Doing it regularly leads to lower productivity until you quit doing it.

Re: Programming blogs

#15
post #6

Earlier quoted context omitted.

I love that video. There is nothing offensive in the video, I think he does a pretty good job explaining how bat shit ridiculous javascript is. If you are writing js professionally and haven't already come to terms with that and the existential crisis it entails... you're gonna have a bad time.

Realistically, if you decide you are going to design a language where types are always coerced to perform operations instead of stopping execution when mismatched types are encountered, the choices JavaScript makes are pretty sensible.

Or you could do the much more sane Perl/Tcl thing and just have different pairs of operators for strings and numbers. Then the type of the variable is determined by what you're doing to it, not by what you last did to it somewhere else and god knows whether or not your == will be transitive this time around.

$str1 . $str2 will always be treated as strings, even if both are numbers (I'll get "53" not 8, if $str1 eq 5 and $str2 eq 3). $num1 + $num2 will either coerce them to numbers or fail, and I'll never end up with "5three".

Perl and Tcl might be debateably insane, but they make very sane choices when it comes to weak typing. Funny how a language where literally everything is a friggin' string has a more sane type system than JavaScript.

Re: Programming blogs

#16
post #6

Earlier quoted context omitted.

I love that video. There is nothing offensive in the video, I think he does a pretty good job explaining how bat shit ridiculous javascript is. If you are writing js professionally and haven't already come to terms with that and the existential crisis it entails... you're gonna have a bad time.

I know I shouldn't be turned off by this, but I so am. And I'm starting to dislike the dev-community more and more for each day I try to learn programming myself. Elitism at its worst. I guess it started a few years back when I started an introductory programming-class at university where I was supposed to learn Java. I had already tried some light-weight languages like HTML and CSS and felt comfortable modding Wordp…

trash talk can be important(o)

the wat video in particular is more than an attempt at insulting javascript

it is an education, and an important one

one of undefined or odd behaviour

it strengthens anyone who watches it because you can move past the 'am i the only one who thinks this is odd' into the 'this is the spec, my work needs to be mindful of it, and now how do i use this knowledge to my advantage'

(o) edit: instead of 'can be' it used to say 'is', but i prefer specialists' quantification

Re: Programming blogs

#18
post #9

> a hacker who will stay up till 4:00 AM rather than go to bed leaving code with a bug in it. Question for other folks here: In your experience, does staying up until 4:00AM tend to lead to you being more or less productive in the long term?

I've had it go both ways before, but I noticed during university when I was forced to do such things that after you've had a couple weeks to rest, whatever you were working on before becomes crystal clear in a way that it wouldn't have been if you just relaxed and made steady progress. Probably something to do with the stress burns it into your brain.

Re: Programming blogs

#19
post #6

Earlier quoted context omitted.

I love that video. There is nothing offensive in the video, I think he does a pretty good job explaining how bat shit ridiculous javascript is. If you are writing js professionally and haven't already come to terms with that and the existential crisis it entails... you're gonna have a bad time.

This is more in-depth and less for the lulz: https://www.youtube.com/watch?v=2pL28CcEijU

Thank you! For 30+ minutes, Kyle Simpsons definitely covers a lot of more JavaScript gotchas, which again reminds me of this picture: https://pbs.twimg.com/media/CdtFF5VWoAEmbL4.jpg

Re: Programming blogs

#20
post #9

> a hacker who will stay up till 4:00 AM rather than go to bed leaving code with a bug in it. Question for other folks here: In your experience, does staying up until 4:00AM tend to lead to you being more or less productive in the long term?

More, because I can get 4 more hours done than if I go to bed at midnight and I am more motivated later and far less likely to be disturbed. I can't do it as much these days because I have a day job which gets in the way.
Post reply on HN