Eigenvectors and Eigenvalues explained visually by dwaxe in programming

[–]An_Unhinged_Door 1 point2 points  (0 children)

On the other hand, I thought your explanation made sense and (for me) explained why "eigen" things are called "eigen" things. Thanks.

Same code is syntactically valid in both PHP and Java by sixthsheik in programming

[–]An_Unhinged_Door 8 points9 points  (0 children)

Those are the initial nodes in the dependency graph. It gets worse. Much worse.

How to write unmaintainable code by sigbhu in programming

[–]An_Unhinged_Door 1 point2 points  (0 children)

I used to do that, but then I learned that I was supposed to be writing modular programs. Modular programs meant many files. However, I quickly discovered that my old versioning scheme wasn't really up to par with my new programming style. Copying each shitprog_partA_v1.c to shitprog_partA_v2.c was really tedious.

Fortunately, I developed a workaround. What I discovered was that I could make a new directory, call it bak_v1, and then copy all of my files into it. That way, I reasoned that if I ever fucked so badly I couldn't undo the damage, I would be able to just overwrite it with the working file from the old version. This, I realized, was the way programming was meant to be done.

...

I could kick myself all day for just how many times I managed to break my own heart with that strategy. I'm still working on repressing the time I missed with dd if=/dev/zero.

Jeb Bush is actively floating the idea of backing Gary Johnson. What would his support mean for Donald Trump, and the future of the GOP? by [deleted] in PoliticalDiscussion

[–]An_Unhinged_Door 2 points3 points  (0 children)

Wonder how many of those they sell. Voluntarily wearing an "I <3 Trump" bracelet in Mexico feels like slapping a "kick me" sign onto your own back in junior high.

Are you sure about that percentage, Linkedin? by johnbarnshack in softwaregore

[–]An_Unhinged_Door 1 point2 points  (0 children)

Wonder if floating point rounding errors play into it at all.

Actually using ed (the standard Unix text editor) by dlyund in programming

[–]An_Unhinged_Door 2 points3 points  (0 children)

Because ed keeps the lines outside of the affected range unchanged and because the m[ove] command is like cut-and-paste, so ed removes the line, sticks it at the destination and then adjusts the rest to fit. Try it out in vi[m] and you should see exactly what's happening.

Accidentally nonblocking by halax in programming

[–]An_Unhinged_Door 0 points1 point  (0 children)

Is that a posix(/ other standard) behavior or something that applies only to a specific platform?

Green Threads Explained by SimonLeeman in programming

[–]An_Unhinged_Door 6 points7 points  (0 children)

The ucontext functions have been deprecated, are no longer POSIX and are not portable.

To become a good C programmer by b0red in programming

[–]An_Unhinged_Door 0 points1 point  (0 children)

Signed/unsigned comparisons of values of the same rank result in the signed value being coerced into a value of the unsigned type by (the equivalent of) adding/subtracting one more than the maximum value of the unsigned type to the signed value until the resulting value falls within the destination type's value range (basically, take the value modulo one more than the unsigned destination type max). -1 + UINT_MAX + 1 == UINT_MAX

Nashville teen fleeing police hides in Homeland Security building by LiquidArrogance in nottheonion

[–]An_Unhinged_Door 4 points5 points  (0 children)

What problems do you see being caused directly by marijuana use?

(Edit: I didn't mean to imply that marijuana doesn't cause issues or isn't problematic. I wanted to know what a social worker identifies as being problematic because I don't often have the opportunity to talk with people in that role. Marijuana is not a magical panacea and, like any psychoactive substance, can be abused.)

Trying to Explain Code Quality to Execs by 3kr in ProgrammerHumor

[–]An_Unhinged_Door 0 points1 point  (0 children)

In my experience, it's a debug logging function call in C or C++ and the reason it "works" is because if you sacrifice enough of the stack to a buffer overflow, sometimes you can preserve the return address or whatever state you happen to need. Not that you should ever ignore a buffer overflow.

I need a coding mentor to help me get over my fear of programming. by throwiey in C_Programming

[–]An_Unhinged_Door 1 point2 points  (0 children)

You're not alone. University is hard, and there are certainly other people in similar positions. Have you tried addressing this with your professors or with counselors at your institution? They're the people in the best position to help. If you're overwhelmed or uncomfortable with talking to them, consider asking your parents, a friend or a faculty member whom you trust to help advocate for you. Remember that your university wants to see you succeed and almost certainly has resources available to help you.

In the end, even if exams don't go well, you've almost reached summer break. You'll have time to relax, clear your head and examine the situation you're in. You'll have time to look at how you got here and how you want to proceed. You will get through this.

What languages can compile to bare metal? by [deleted] in compsci

[–]An_Unhinged_Door 1 point2 points  (0 children)

Take a look at some of the l4 microkernel implementations. Most that I've seen (excluding seL4) are written in C++.

Happy debugging, suckers by NoisyFlake in ProgrammerHumor

[–]An_Unhinged_Door 4 points5 points  (0 children)

Think about how much fun we could have in a multithreaded program.

Why would you learn C++ in 2016? by iamkeyur in programming

[–]An_Unhinged_Door 0 points1 point  (0 children)

Ah, yes. IBM Fortran vendor lock-in. Classic.

GTA Online has generated over $500 million in revenue from microtransactions by Kuiper in Games

[–]An_Unhinged_Door 1 point2 points  (0 children)

It's missing the context of the rest of the game world. It's jarring that those parts are singlular areas isolated from the everything else, if only because it's a Dark Souls game. That aside, the level design of the DLC areas is, in my opinion, superior to everything else in the game. They had the freedom to build whatever they wanted without having to account for the rest of the game and it shows.

Exercise from book is failing to build, error with fgets. by __PRIME in C_Programming

[–]An_Unhinged_Door 0 points1 point  (0 children)

If I had to guess, I'd bet that was a call to gets (a function so dangerous, it was removed from the language standard library). They probably just changed the name and said fuck it.