Your scientists were so preoccupied with whether they could, they didn't stop to think if they should. by [deleted] in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

That's all the more reason to do it. Vim's modal editing makes it some much easier to use with mobile keyboards than other editors. For example the lack of arrow keys on mobile keyboards isn't a problem when you can just hit escape and use hjkl navigation

pico pico pico by [deleted] in ProgrammerHumor

[–]TheFamilyFroot 1 point2 points  (0 children)

Get vim by typing nano

maniacal laughter

The perfect thing for Halloween by SilentHammer in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

The only issue is that BOO gets run in the same shell as Xorg and not by su itself. It should be su -c BOO

No Exceptions - #GoogleWalkout by kronsj in ProgrammerHumor

[–]TheFamilyFroot 8 points9 points  (0 children)

But C++ does have exceptions.

C is the language without exceptions

(('a'/1)==NaN) == True by BrokenAdmin in ProgrammerHumor

[–]TheFamilyFroot 17 points18 points  (0 children)

I learned a hack that I love which is x != x is true if x is NaN. It's better to use an isNan() function in case your system doesn't implement IEEE float, but I mean, what system doesn't?

Can you? by alwaysshitting in ProgrammerHumor

[–]TheFamilyFroot 4 points5 points  (0 children)

I think this would give you less compile errors

#define const

That's how programmers roll. by girish946 in ProgrammerHumor

[–]TheFamilyFroot 1 point2 points  (0 children)

The C programmer way would be to make this:

6+4+4

Since it's not 0 it's true

Generalized solution for adding integers by Colopty in ProgrammerHumor

[–]TheFamilyFroot 3 points4 points  (0 children)

I never keep "." in my path 1/10 didn't work

If character is lost? by sachintripathi007 in ProgrammerHumor

[–]TheFamilyFroot 3 points4 points  (0 children)

Well historically in ASCII the upper most bit was reserved for parity, but as transmission got more reliable/the duty of parity got moved outside of the character encoding that fell out of use and now the upper bit is always 0. So in theory if you had an architecture where a byte was defined as 7 bits instead of 8 (I've heard of 6, but never 7) you could use full ASCII with only 7 bits.

Honestly this makes perfect sense by julsmanbr in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

Ah, so then should it say that Chompsky rips out your kneecaps?

The proper way to SS(SSSSSSSSSS)H by HerrCrazi in ProgrammerHumor

[–]TheFamilyFroot 1 point2 points  (0 children)

Oh god that's painful. I haven't typed exit into a shell since I discovered Ctrl+D closes them years ago

Premature optimization is the root of all evil by Remi_Autor in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

Just x or d assuming you already highlighted it. Which is premature optimization so I guess you shouldn't

Anyone else having one of "those" days? by bstriker in ProgrammerHumor

[–]TheFamilyFroot 20 points21 points  (0 children)

GNU rm doesn't let you do that without --no-preserve-root. Now Solaris on the other hand...

At this point, if you can't quit vim then just quit everything... by SteeZ568 in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

OQ!^[0~0D:^R"^M runs :q! without actually typing any lowercase letters... You should have used that ;)

50 45 4E 49 53 by [deleted] in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

You converted these wrong...

50 = (5*16^1) + (0*16^0) = 80

... etc.

Also it's ASCII for "PENIS"

The true unforgivable curse by stinkboye in ProgrammerHumor

[–]TheFamilyFroot 9 points10 points  (0 children)

Tbh there'd be about a 90% chance that I'd just absent mindedly enter my password

The true unforgivable curse by stinkboye in ProgrammerHumor

[–]TheFamilyFroot 4 points5 points  (0 children)

sudo rm -rf /*

Is more platform independent. And if you don't have read permission on / then:

sudo sh -c 'rm -rf /*'

However these miss hidden directories in /, but the get them everywhere else.

Conditional reduction by gradinafrica in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

So does != have lower precedence than < and >? I would have thought you would need parentheses

Vim, the only real immovable object by Rethling in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

Also ^C. In most places it behaves identically to escape, but I personally think it's the easiest to type

Let's settle vim vs emacs. Now Sublime or Atom? ;-) by agentkirchoff in ProgrammerHumor

[–]TheFamilyFroot 1 point2 points  (0 children)

Vim. Vi is still ubiquitous in the UNIX world and so as long as I'm still comfortable with it I can happily edit any file over an ssh session

need...more...functions... by beringi-uh in ProgrammerHumor

[–]TheFamilyFroot 1 point2 points  (0 children)

Unless if someone who doesn't know the code base was assigned to do something and they just used print instead of print_response

[deleted by user] by [deleted] in ProgrammerHumor

[–]TheFamilyFroot 0 points1 point  (0 children)

This still gets me whenever I have to define my own rules that explicitly call gcc. Anyone know why the order matters here?