Recent submissions

Comment · 7 years ago

    - Java: no
    - Ruby: no
    - PHP:  no
    - C:    yes and no
Comment · 7 years ago
Listening to what ? To the dude that tells me that's not possible and proceeds to dump a big pile of authority on top of my head or to my own experiment that tells me another story ?

I would have preferred to be told:

- yes and no. You'll get warnings if you try to return a pointer to a local, however, doing this and that, you can manage to do it.

- but once you have achieved that, the result will be dependent on the way the stack is handled (not really in your control). You'll feel some comfort doing this in recursive calls, however beware of signal.h.

But this isn't the answer I received. I guess C programmers do not know the difference between what you can do (however risky) and what you shouldn't do. Also when someone asks such "weird" questions, do not assume he's a beginner with no notion of what constructs he can handle safely, maybe he's someone trying to find the limits of C – and once these limits are identified it can be a good conversation starter about C's internal and the way various compilers differ.

Edit: also downvotes on HN are not like downvotes on Reddit: there's actually a limit (-2 ?). Below this the comment disappears. Conclusion: only downvote when the comment engages in antisocial behavior (not respecting the rules or common human decency, etc ...), not when you disagree with it. I always upvote an unfairly downvoted comment for these reasons.

Comment · 7 years ago
Thanks, that was interesting.
Comment · 7 years ago
Comment · 7 years ago
Fighting stupidity, laziness and a misplaced love for typography in software developers
Comment · 7 years ago
So are you fine with the idea that I get twice as much money and decision power than you, all things beyond worked hours being equal ?
Comment · 7 years ago
Officially I work 35h/w. A little less than 40k€. Senior level. Very efficient. I think my actual hourly pay is under the minimum wage. No overtime pay of course.
Comment · 7 years ago
I have no problem working twice as much as normal. What I want is to be paid twice as much (at least).
Comment · 7 years ago
In Romance languages the at-sign is called an arobase/arroba.
Comment · 7 years ago
Comment · 7 years ago
Although I have never used Julia, this is something that is possible in Ruby, and I think this feature is seriously underrated – i.e. to be able to jump quickly to the definition of external code, modify it and run it. When you work with multiple libraries/repo this is very valuable when debugging, saves a lot of time.

It should also be possible with Node.js I think (node_modules).

Comment · 7 years ago
And he abandoned his schizophrenic son.
Comment · 7 years ago
Comment · 7 years ago
Some people get high on big frogs in Arizona. Or so said the urban legend. And then a few weeks ago Youtube suggested me a video (Joe Rogan maybe ?) where the differences between ayahuasca DMT and frog DMT were discussed. In the comments someone said. "It happened to my chihuhua ! I was walking my dog (I'm from Arizona) when that huge frog squirted his venom at her. The poor animal convulsed for 30 minutes."

Amazing.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton