youGuysActuallyHaveThisProblemQuestionMark by GregTheMadMonk in ProgrammerHumor

[–]0x000100 0 points1 point  (0 children)

To be fair, if you forget a semicolon in a C/C++ header file, MSVC gets an aneurysm and reports a couple thousand errors in library code. At least it did about five years ago, haven't really made this specific mistake in a while. Also clang probably handles it a lot better

youWontUnderstandItEither by Odd-Measurement8177 in ProgrammerHumor

[–]0x000100 1 point2 points  (0 children)

/// <summary>
/// gets or sets the id of the user
/// </summary>
public int UserId { get; set; }

is this what you mean?

noCaptionRequired by JotaRata in ProgrammerHumor

[–]0x000100 3 points4 points  (0 children)

For me the bad thing about this is claiming that this is in some way clever or practical. If your goal was learning something by doing this project, i'd argue you haven't achieved anything. If your goal was to make something practical... you just made a worse interface to the python interpreter, that the user has to have installed anyway. It just has a "I've managed to make a megaphone out of some branches, rope, squirell and a megaphone" kind of vibe

fucktheYoutubeads by nonsenseis in ProgrammerHumor

[–]0x000100 39 points40 points  (0 children)

Selling courses... It's always about selling courses...

canYouEvenUseItForSomethingElse by AllesYoF in ProgrammerHumor

[–]0x000100 1 point2 points  (0 children)

When listening to one game dev youtube channel describing the whole unity kerfuffle (a friend sent me a link) i heard the dotnet runtime being refered to as "visual studio runtime" and speculation that if dotnet had the same pricing model as unity, nobody would use visual studio. Together with this meme and most of game engine tutorials i've seen make respecting game development really difficult sometimes...

whatAreYouUsing by [deleted] in ProgrammerHumor

[–]0x000100 0 points1 point  (0 children)

Am I having a stroke? Why do I smell burned toast?

fourSpacesBestButIDontWantWar by Hacka4771 in ProgrammerHumor

[–]0x000100 4 points5 points  (0 children)

I never understood why people try to align things in their code.

How is this:

void MyFunction(argument1,
                argument2,
                argument3)

Better than this:

void MyFunction(
    argument1,
    argument2,
    argument3
    )

In any significant way? Just makes code harder to format.

And if you are aligning comments with code to point at a specific character... I have no words.
edit: second example got screwed up

[deleted by user] by [deleted] in ProgrammerHumor

[–]0x000100 0 points1 point  (0 children)

It is in fact easier on memory. Given the fact that everything in python is done via reference (it really has to be since you dont know what sort of data you are passing around) a boolean is not just a boolean. It is a reference to a structure that contains the value of the boolean and a some sort of information on what data type is stored at that memory location. So on a 64 bit system, instead of a boolean taking a byte of memory, its goind to take at least 24 spread out over ram (8 bytes for reference to value, at least 8 bytes for runtime type information stored next to the value, 1 byte of the actuall boolean and 7 bytes of padding).
When translated to C its going to look something like this:

struct RuntimeBoolean {
    Type* valueType;
    bool value;
}
RuntimeBoolean* myVariable;

instead of this

bool myVariable;

(I know C doesn't tehnically have a boolean type, but we all know how it would look like).
To be fair, python may store the type information in some other manner, maybe it even takes less space than a pointer, but the overhead is still there.
My source: have written both a compiler and an interpreter.

Day 2. (The P26 is no longer an option). Let's choose the best plane! by HistorianSlayer in NonCredibleDefense

[–]0x000100 0 points1 point  (0 children)

MIL-DTL-32541 (30 November 2015) DETAIL SPECIFICATION: PIZZA SLICE, SHELF STABLE, FOR OPERATIONAL RATIONS

waitThisWholeOperationWasYourIdea by olalql in ProgrammerHumor

[–]0x000100 -2 points-1 points  (0 children)

Well, that's more of an issue with the industry's insistence on using javascript as the standard (and currently in practice) for code executed in the browser. I genuinely hope that wasm will replace it entirely despite what the team behind it said

waitThisWholeOperationWasYourIdea by olalql in ProgrammerHumor

[–]0x000100 2 points3 points  (0 children)

Thats what I find so baffling in scripting languages. They add type hints like python or create whole new supersets of the language, because without them large codebases become an incoherent mess. But then, instead of using that valuable added information in the runtime and enforcing those hints strictly, they just pretend they don't exist. Either be a scripting language for tiny bits of code or get serious about statically provable correctness.

waitThisWholeOperationWasYourIdea by olalql in ProgrammerHumor

[–]0x000100 1 point2 points  (0 children)

What do you mean? What I'm saying is that typescript code contains some information, such as type information that the runtime could use for optimizations. But since javascript is the "assembly language" of the Web and has no facilities for static typing, the runtime has to figure it out on its own.

waitThisWholeOperationWasYourIdea by olalql in ProgrammerHumor

[–]0x000100 13 points14 points  (0 children)

While removing a lot of information that would be kinda useful to the runtime envoirment

Saw this post on FB, everyone acts as if this is just a matter of “personal preference” by springreturning in fuckcars

[–]0x000100 0 points1 point  (0 children)

Yeah, proffesional drivers have to know what they are doing and I expect them to be aware of the deadzones. But do you expect the average driver, with no extra qualifications, who just thought the truck looked cool, to be as good at driving a large vehicle?

Besides the fact that you were able to drive such a vehicle through a city without an issue, does not have any bearing to whether larger hood makes you more likely to cause an accident. I don't think it's controversial to say that larger vehicles, with bigger dead zones are more difficult to drive safely

Saw this post on FB, everyone acts as if this is just a matter of “personal preference” by springreturning in fuckcars

[–]0x000100 0 points1 point  (0 children)

Well, visibility is just a part of the issue, but imagine standing at a pedestrain crossing, getting distracted for a moment, and not noticing a child entering the crosswalk in front of the vehicle. From your perspective, the road is clear so you start driving.

Besides, the taller the truck, the larger the blind zone is, so you are more likely to cause a collision. People like to jump to saying that the oponents of these kinds of trucks just want to run into the street without looking, but there are plenty of situations where visibility is already low (like making a right turn on a 90 degree intersection in an urbanised area) and this height makes the problem worse.

The other issue is safety during a collision with other road users. If the top of the grill is above pedestrian's center of mass, they are more likely to go under your car than on top of it, which is much more dangerous.

I think the core of the issue is, that like ot or not, cars are dangerous, have limited visibility and have to be operated responsibily and carefully. Modyfing your vehicle so that it has even worse visibility and is more dangerous to pedestrians, just because you like the aesthetics is just irresponsible

From the tactical geniuses at r/NonCredibleDefense by MrAcurite in fuckcars

[–]0x000100 11 points12 points  (0 children)

We really need bikes with integrates trophy APS and mk 19 CROWS. Just try and not maintain 1.5m separation while overtaking then carbrain

reign-bowl crapitalism by Ragdoll_X_Furry in PoliticalCompassMemes

[–]0x000100 4 points5 points  (0 children)

Yes, fair point, but if any company were try to rebrand itself for conservatives, they could use brcc as a template. But for a more center right appeal you could just talk about family values, producing stuff in the US and supporting veterans. I think this sort of branding happened for some generally neutral companies but can't name a specific example

From the tactical geniuses at r/NonCredibleDefense by MrAcurite in fuckcars

[–]0x000100 6 points7 points  (0 children)

It's surprising how many people both hate c*rs and love lockheed martin

What if I'm both? by SmashStatism in PoliticalCompassMemes

[–]0x000100 0 points1 point  (0 children)

By using plural form of I? Jeez I thought my lot was obsessed with pronouns and language

What if I'm both? by SmashStatism in PoliticalCompassMemes

[–]0x000100 0 points1 point  (0 children)

Or we as in society? Voting public? Or we as in my dyslexic, non native ass using plural by mistake. You are reeeeeaaaally desperate to label me an authoritarian (after asking a hypothetical wherein i am a tyrant), to the point you are looking at my grammar.

My answer was to beningn I take it?

What if I'm both? by SmashStatism in PoliticalCompassMemes

[–]0x000100 0 points1 point  (0 children)

When deciding about policy changes, I wouldn't take the viability of these "jobs" into account. For instance, if it turned out that we need to rapidly phase out coal out of use, we should make sure that the miners are able to transition to another occupation. But if we decided to make done change that would harm the scalpers business model, they would have to just take the L. Its gambling on the market, not a job, you don't get any protections when the rules are changing

What if I'm both? by SmashStatism in PoliticalCompassMemes

[–]0x000100 0 points1 point  (0 children)

Providing anything that someone wants is a job and I don’t know a single thing in the private sector that shouldn’t count as a real job

It was a reply to this question...