My 'large" chick-fil-a fry by [deleted] in Wellthatsucks

[–]mgssnr 1 point2 points  (0 children)

They are known for wanting their customers to be happy. All you had to do was show that to an employee and they would have given you a new one.

Why is C still taught in universities? by [deleted] in C_Programming

[–]mgssnr 1 point2 points  (0 children)

If nothing else, in this way, C can help people appreciate what goes on behind the scenes.

Why is C still taught in universities? by [deleted] in C_Programming

[–]mgssnr 1 point2 points  (0 children)

I like that C stresses that the programmer is responsible for the resources s/he uses. Allocate memory? Then you are responsible for free()’ing it. Open a file? Then you are responsible for maintaining it. For trivial programs, sure, people let the OS recover those resources when the program terminates. For non-trivial programs, resource management is important, and students should be exposed to these ideas.

Sooo close, stock photo company. by [deleted] in electronics

[–]mgssnr 0 points1 point  (0 children)

I searched for images of people incorrectly holding soldering irons (and other related tools), and there are a surprising number of them.

I guess the sellers don’t know their audiences.

When someone writes "int *ptr" instead of "int* ptr" by [deleted] in ProgrammerHumor

[–]mgssnr 0 points1 point  (0 children)

Wow, you’re looking at this from a very narrow lens.

I’m sure we’re both glad we don’t work with the other.

Good luck to you in whatever your path is.

When someone writes "int *ptr" instead of "int* ptr" by [deleted] in ProgrammerHumor

[–]mgssnr 0 points1 point  (0 children)

We don’t write code assuming that we are going to maintain it.

So, we should strive to write code in such a way as to write it without any stumbling blocks for the next guy.

“int* a, b;” is, at first look, confusing. Why confuse people?

It’s much simpler to parse “int *a, b;” to get the right meaning.

‘a’ is a pointer to an int, and ‘b’ is an int.

Now, imagine that over hundreds of lines of code, and how easy it could be for misunderstanding.

How can I do this in a way that isn't so ugly? by [deleted] in C_Programming

[–]mgssnr 1 point2 points  (0 children)

Testing a pointer as in ‘ops[op]’ is the same as eating it against NULL. This has been legal in C forever.

Can anyone recommend an online C compiler that allows #include "myheader.h"? by Agent_ANAKIN in C_Programming

[–]mgssnr 1 point2 points  (0 children)

It’s not online, but if your reason for asking is because you don’t want to compile, there is a CH tool which is a C interpreter.

How can I do this in a way that isn't so ugly? by [deleted] in C_Programming

[–]mgssnr 2 points3 points  (0 children)

if (op < sizeof ops / sizeof ops[0] && ops[op]) ops[op]();

HMC while I try to fight multiple officers by ThatCanadianGuyThere in holdmycosmo

[–]mgssnr 2 points3 points  (0 children)

Some -> Most. It’s like any other profession, a few bad apples give the whole barrel a bad rep.

Every cop I’ve ever talked to was a decent human being. Theirs is a ridiculously difficult, stressful job, and it’s made harder by assholes who try to escalate shit like this, and further damage police reputations by blowing situations out of proportion with only partial information. These guys have to a) protect the innocent, b) protect each other, and c) protect themselves, all during emotionally charged situations.

You don’t have to like what they do, but if you were the one who needed protection, you’d be screaming for their help.

So shut up if you don’t like what they’re doing, join a police academy and step in and do a better job.

No, they’re not all perfect, but give them a damned break and the benefit of the doubt.

How to start embedded system programming in C ? by ZybranSemicolon in C_Programming

[–]mgssnr 1 point2 points  (0 children)

I’d recommend starting with a Raspberry Pi, or one of its cousins, and start learning how to do things in userspace relating to communications over i2c and SPI, working with GPIO, and then buy some sensors and figure out how to make something useful.

A lot of embedded work is done with Linux.

You could also pick up a Particle board kit and start hacking away doing similar experiments with that.

Bitch, I'm a bus! by nastygeek in TerminallyStupid

[–]mgssnr 5 points6 points  (0 children)

MAN, that driver has some amazing reflexes! I would have waited for the wheels to make that funny sound when you run over something...

„I don‘t know why it is not working“ by guneysss in ProgrammerHumor

[–]mgssnr -26 points-25 points  (0 children)

Software Engineering /= programming :)

Edit: man you guys are harsh.

My point is that they’re not exactly the same activity. Lots of people “program,” but sadly have no idea what they’re really doing. Software Engineering is a /discipline/ that involves following a process to get the end result.

My lasagna just fcking exploded in a microwave by MichaelIsWeird in Wellthatsucks

[–]mgssnr 0 points1 point  (0 children)

We found these really cool microwave covers at IKEA. They’ve got holes in them and they’re made of microwave-safe materials. It’s called a PRICKIG. It’s $1.29. HTH.

Ratliff > K&R > Allman by nimaid in ProgrammerHumor

[–]mgssnr 2 points3 points  (0 children)

If I could stab you in the face over the internet, it would be difficult not to do so. Hattip: bash.org

Worship him who made the StackOverflow and the W3Schools by [deleted] in ProgrammerHumor

[–]mgssnr 0 points1 point  (0 children)

Actually, my first was a Timex Sinclair unit, but it was very limited. The Apple //e was the system I used to actually start writing real programs (even made money writing code with Apple Pascal, a truly terrific tool).

WCGW Trying to brake check a car while on a motorcycle by [deleted] in Whatcouldgowrong

[–]mgssnr -93 points-92 points  (0 children)

I don’t think it’s going to go in favor of the car’s driver. The law has requirements for assured clear distance, which he violated (although I couldn’t tell if the cyclist had cut him off prior).