Live data from Hacker News

Programmer's Dilemma

medium.com

51–60 of 113 posts

Re: Programmer's Dilemma

#51

Completely agree. The other problem I've seen with getting stuck on the same project for X years is that you'll have a very limited portfolio to show for it, unless you're working on side projects as well.

If you are on a project for a few years (and aren't doing just maintenance, in which case I'd GTFO) you should be able to show a roadmap of where you took the project, its success etc. which might not be so bad.

Re: Programmer's Dilemma

#52
post #46

When people tell me that I should "do projects in my own free time to keep my skills sharp", it throws me into a fit of rage and makes me want to tear them a new one. Do you see any other professions having to do that in order to stay employable? Can you imagine lawyers having to practice law in their free time to "keep their skills sharp"? Can you imagine civil engineers having to draft plans for bridges and buildin…

Teachers / doctors / dentists all need to take courses to keep their skills up to date. Programming is no different. I don't think there is one profession where you aren't required to keep your skills up to date / put in extra time.

As I've mentioned before, in a lot of professions it is paid and considered part of the job. If not, then at least it's regulated. We enjoy none of those benefits.

Software is a career requiring a much higher level of personal commitment than many other careers, while often not necessarily being better compensated.

Re: Programmer's Dilemma

#53

I've done kernel implementation for 20 years, and this question is absolutely terrible -- unless the answer that one is looking for is an intelligent explanation of why this is such a terrible question. It's an awful question because the kernel may not be involved at all on a user-level call to malloc() (e.g., a caching allocator like libumem or a traditional allocator that needn't extend the break for a given alloca…

>what does "* ((int * )NULL)" do

Technically speaking, that is undefined.

"If an invalid value has been assigned to the pointer, the behavior of the unary * operator is undefined...Among the invalid values for dereferencing a pointer by the unary * operator are a null pointer,..."[1]

[1]http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf page 79

Re: Programmer's Dilemma

#54

I've done kernel implementation for 20 years, and this question is absolutely terrible -- unless the answer that one is looking for is an intelligent explanation of why this is such a terrible question. It's an awful question because the kernel may not be involved at all on a user-level call to malloc() (e.g., a caching allocator like libumem or a traditional allocator that needn't extend the break for a given alloca…

>what does "* ((int * )NULL)" do Technically speaking, that is undefined. "If an invalid value has been assigned to the pointer, the behavior of the unary * operator is undefined...Among the invalid values for dereferencing a pointer by the unary * operator are a null pointer,..."[1] [1] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf page 79

Yes, yes. What I actually do is write about a five line program which -- absent fancy alias disambiguation -- can't be optimized out of crashing. You're hired, okay? ;)

Re: Programmer's Dilemma

#55

I've done kernel implementation for 20 years, and this question is absolutely terrible -- unless the answer that one is looking for is an intelligent explanation of why this is such a terrible question. It's an awful question because the kernel may not be involved at all on a user-level call to malloc() (e.g., a caching allocator like libumem or a traditional allocator that needn't extend the break for a given alloca…

Is that an almost correct piece of code? What sort of situation would something like that come up in?

Re: Programmer's Dilemma

#56

I've done kernel implementation for 20 years, and this question is absolutely terrible -- unless the answer that one is looking for is an intelligent explanation of why this is such a terrible question. It's an awful question because the kernel may not be involved at all on a user-level call to malloc() (e.g., a caching allocator like libumem or a traditional allocator that needn't extend the break for a given alloca…

> [1] Except on AIX and any other asinine system that maps NULL.

It's pronounced "aches" for a reason.

Re: Programmer's Dilemma

#57
post #55

I've done kernel implementation for 20 years, and this question is absolutely terrible -- unless the answer that one is looking for is an intelligent explanation of why this is such a terrible question. It's an awful question because the kernel may not be involved at all on a user-level call to malloc() (e.g., a caching allocator like libumem or a traditional allocator that needn't extend the break for a given alloca…

Is that an almost correct piece of code? What sort of situation would something like that come up in?

Every hear of segfaults? They are almost always the result of de-referencing NULL.

Re: Programmer's Dilemma

#58
post #46

Earlier quoted context omitted.

Teachers / doctors / dentists all need to take courses to keep their skills up to date. Programming is no different. I don't think there is one profession where you aren't required to keep your skills up to date / put in extra time.

As I've mentioned before, in a lot of professions it is paid and considered part of the job. If not, then at least it's regulated. We enjoy none of those benefits. Software is a career requiring a much higher level of personal commitment than many other careers, while often not necessarily being better compensated.

In which professions is it paid? Teachers / dentists I know have had to pay for their own education.

Isn't the level of personal commitment subjective though? What would your solution be?

I think it's hard for programming because there's such a diverse array of programmers (university educated based on data structures / algorithms vs self-taught that might not know those things). My recent interviews with Amazon tested my core CS knowledge but nothing like frameworks or anything. I suspect those things would matter more at startups / web shops (where I used to work).

Re: Programmer's Dilemma

#59
post #55

Earlier quoted context omitted.

Is that an almost correct piece of code? What sort of situation would something like that come up in?

Every hear of segfaults? They are almost always the result of de-referencing NULL.

I think of segfaults as being caused by accessing an out-of-bounds index in an array, personally. Yes, you can do the same thing by dereferencing NULL, but in my (university only) experience, overrunning an array came up much more often.
Post reply on HN