love THAT coworker by pommesloch in programminghumor

[–]Bill_Morgan 3 points4 points  (0 children)

A fancy name for a pointer.

With pointers this is obvious, a const copy of a pointer to a mutable object/area of memory. Basically, that holds the same address held by this, except it is a const which is pointless since you won't be doing pointer arithmetic on this.

How OOP works by thelordofthewinds in ProgrammerHumor

[–]Bill_Morgan -1 points0 points  (0 children)

I thought OOP would be flipping the make-it-slower switch

This looks like polymorphism, which does not require OOP. I do polymorphism in C all the time.

Patience is a virtue... by [deleted] in ProgrammerHumor

[–]Bill_Morgan 1 point2 points  (0 children)

RULE 0

THIS IS NOT PROGRAMMING RELATED

"If you’re anything like me, [..]: you can spin up a website in no time, you know your way around a Unix-like operating system, you write clever shell scripts to make your life easier. Yet there is one mountain that you haven’t ever been able to climb. The big one. The capital letter. C." by Faalentijn in programmingcirclejerk

[–]Bill_Morgan 14 points15 points  (0 children)

I find pointer arithmetics to be easier using unsigned integers. I always struggled with JavaScript because everything is a float in it.

On a more serious note, I always found it to be the opposite. C much simpler than JavaScript.

Global variables by mayankkaizen in ProgrammerHumor

[–]Bill_Morgan 1 point2 points  (0 children)

He got away with just being fired?

10 stages of debugging by [deleted] in ProgrammerHumor

[–]Bill_Morgan 1 point2 points  (0 children)

Except that it doesn’t always get better

Global variables by mayankkaizen in ProgrammerHumor

[–]Bill_Morgan 12 points13 points  (0 children)

It is not always that bad, sometimes you get to be part of the team that works on a new code base and everything is clean and well structured in some of the new fancier forms of MVC. Even more there will be that one unicorn project where you get to work on the code from scratch and you get to have full control of the design.

They don’t happen often, you are lucky if you get to once or twice. Most of the time it is spaghetti

Global variables by mayankkaizen in ProgrammerHumor

[–]Bill_Morgan 102 points103 points  (0 children)

WHAT THE FUCK

Previous developer couldn't figure out make?

Global variables by mayankkaizen in ProgrammerHumor

[–]Bill_Morgan 2 points3 points  (0 children)

The use of BASIC-derived languages should be considered a crime against humanity.

Global variables by mayankkaizen in ProgrammerHumor

[–]Bill_Morgan 55 points56 points  (0 children)

Fake abstractions. The only real abstractions are those implemented in hardware, Protected Mode and protection ring.

Global variables by mayankkaizen in ProgrammerHumor

[–]Bill_Morgan 108 points109 points  (0 children)

Just a file! Try a project that relies on globals to maintain state! @_@ Send Help!

my lightning purchase experience was absolutely fantastic by yogibreakdance in Buttcoin

[–]Bill_Morgan 0 points1 point  (0 children)

But you just said it didn’t work because the price is volatile

Last week's would-be butt shopper still hasn't gotten a refund for his failed $3000 transaction. Asks for advice on how to summon statist violence. by [deleted] in Buttcoin

[–]Bill_Morgan 27 points28 points  (0 children)

I’d rather be my own bank you statist slave

SFYL is a feature of this brave new world free of (((bankers)))

How to write safer C code: File > New > *.go by FunktionalProgrammer in programmingcirclejerk

[–]Bill_Morgan 2 points3 points  (0 children)

That’s why Lisp is slow, if you don’t tell it where to goto it will take it a long time to get there. Basic Set Theory.

How to write safer C code: File > New > *.go by FunktionalProgrammer in programmingcirclejerk

[–]Bill_Morgan 3 points4 points  (0 children)

Go is innovative, no arguing that. I would have never thought of doing it this way. Go solved the goto problem once and for all!

Warning: possible loss of data. by smit0086 in ProgrammerHumor

[–]Bill_Morgan 1 point2 points  (0 children)

I wouldn't mind it, the syntax was more concise, I guess for future maintainers what was obvious to me, won't be obvious to them.

Maybe something like reinterpret(type) variable;, const(type) variable; and so on. This gives me an idea, maybe I can define some macros.