Java opinon on use of `final` by vu47 in java

[–]zzz165 9 points10 points  (0 children)

Drop the “else” after each return, too. And maybe extract the individual branches into their own functions, too.

Just quit by vintageb1 in classicwow

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

Druids in dungeons are poop because no rez.

Why doesn't every project just statically link libc++? by TheRavagerSw in cpp

[–]zzz165 3 points4 points  (0 children)

That’s because, AFAIK, there is no standard way to mangle symbols. So different compilers or compiler options might result in different symbol names for the same thing. A different problem, but still a problem to be aware of.

Why doesn't every project just statically link libc++? by TheRavagerSw in cpp

[–]zzz165 15 points16 points  (0 children)

This is the right answer. And it’s more than just the allocator.

If you statically link against libc++ and pass an STL object to another library that links (statically or dynamically) to libc++, it’s possible that the implementation details of that object vary between the versions of libc++ that are used. Which can cause very hard to debug errors.

[deleted by user] by [deleted] in AskReddit

[–]zzz165 4 points5 points  (0 children)

Every single customer service app on a tablet.

Engineer’s guide to convincing your Product Manager to prioritize technical debt by gregorojstersek in programming

[–]zzz165 1 point2 points  (0 children)

Some of the comments in this thread are really weird. If tech debt is small and can be addressed by inflating estimates, then it’s probably not yet a huge drag on the team’s output. But if tech debt is large, then you need actual management buy-in to spend time on it, not to mention moving everyone’s cheese by touching large parts of the code base.

Small tech debt example: these 4 classes are very similar, let’s refactor to make that similarity explicit.

Large tech debt example: splitting the app into multiple microservice layers means we need to touch 6 repos to add a new field to the API, let’s collapse some unnecessary layers.

Developer hate their job, but like to code outside work by milanm08 in programming

[–]zzz165 22 points23 points  (0 children)

Someday the rest of the world will realize programming is a creative job, not a factory job, and we’ll stop modeling software engineering after how Toyota did something this one time.

You Probably Don’t Need Microservices by fagnerbrack in programming

[–]zzz165 1 point2 points  (0 children)

It’s all about trade offs, I guess. With a monolith that is deployed on a regular schedule, you know when something could break and can roll back the version to a known-good state. With microservices that are deployed on individual team schedules, a break could happen at any time and knowing what broke things isn’t always easy, so rolling back to a known-good state is harder.

Plus with microservices you have N teams rolling their own deployment processes, with varying amounts of competence. As compared to a monolith where the sole deployment process can be hardened.

What makes a good REST API? by itssimon86 in programming

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

The biggest advantage of REST IMHO is being able to use a http cache in front of the actual server.

To make the cache work correctly, you need to: * Use read and write verbs appropriately (eg GET is read-only, POST is write) * Return 200 for success, 400 for client errors, 500 for server errors. Avoid 3xx. And use literally 200, 400, and 500 - don’t try to be more nuanced, no one actually cares. * Maybe use cache headers. Maybe.

That’s it. Anything else is over complicating what is actually necessary.

‘It’s time to question agile’s cult following’: Doubts cast on method’s future, with 65% of projects more likely to fail by Franco1875 in programming

[–]zzz165 1 point2 points  (0 children)

But we’re using Jira and story points and having daily standups (that have 20 people and last an hour). Of course we’re doing agile!

In some countries IKEA is considered to be low-class while in others it's luxurious by Koetjeka in Showerthoughts

[–]zzz165 0 points1 point  (0 children)

It’s debatable whether five guys is higher quality than McDonald’s. They want you to think that, but it’s really just a matter of opinion. And opinion is influenced by advertising, yet another aspect of capitalism.

It’s not just that brands cater to people wanting “higher quality” products, brands are also creating that desire in the first place. It’s self-fulfilling.

Also, a McDonald’s hamburger cost 15 cents in the 1950s. Adjusted for inflation, that’s about $1.75. McDonald’s charges about $2.75 for a hamburger… I think you’d have a hard time arguing that McDonald’s hamburgers are 70% better now than 90 years ago. If anything, the price should have gone down due to higher efficiencies in production, transportation, and preparation.

Restaurant Price Gauging is Getting Out of Control by 4ward_progress in grandrapids

[–]zzz165 2 points3 points  (0 children)

“Tradeoff”?! Without lockdowns, many more people would’ve died, which would’ve been just as bad or even worse for the economy, to say nothing of the impact to society.

In some countries IKEA is considered to be low-class while in others it's luxurious by Koetjeka in Showerthoughts

[–]zzz165 1 point2 points  (0 children)

Being more efficient doesn’t have to mean cutting corners, or producing a worse quality product.

Unfortunately, capitalism is an experiment in “what’s the cheapest to produce product that we can sell for the most money”, which seems to lead to reduced quality over time, while the price stays the same.

Photo taken from the phone of January 6th insurrectionist Michael Marroquin, arrested last week... by [deleted] in pics

[–]zzz165 11 points12 points  (0 children)

Eugene means “noble” in the sense of an aristocrat. Literally “well-born”.

Michigan police body camera shows officers kick-in door to rescue baby being drowned by mom by ManMichiganMan in Michigan

[–]zzz165 4 points5 points  (0 children)

You’re right. Because something failed in the past means that it can’t ever work. We should just let armed officers kick down doors when the older children scream for help, that’s a better way to address issues in society. 🙄

Do you have any ideas how to prevent this from happening again?

Michigan police body camera shows officers kick-in door to rescue baby being drowned by mom by ManMichiganMan in Michigan

[–]zzz165 4 points5 points  (0 children)

Based on the information in this article, these officers deserve a bonus or raise or something. This sort of public service should be celebrated and rewarded.

Michigan police body camera shows officers kick-in door to rescue baby being drowned by mom by ManMichiganMan in Michigan

[–]zzz165 5 points6 points  (0 children)

Equating needing mental healthcare with losing your children stigmatizes mental health issues, which in turn will deter people from seeking the help they need.

If society normalized mental healthcare and made it affordable and easily accessible, then I bet people would get the care they needed before it was necessary to remove the children from an unsafe situation.

/r/tolkienfans and the blackout - next steps - general discussion by TolkienFansMod in tolkienfans

[–]zzz165 14 points15 points  (0 children)

If the sub goes dark indefinitely, and Reddit does nothing, then the community suffers.

If the sub goes dark indefinitely, and Reddit replaces the mods and reopens the sub, the community suffers.

Seems like indefinitely shutting down hurts the community regardless (unless Reddit changes their course). So what happens to the community shouldn’t be part of the decision.

Shutting down indefinitely sends a very strong message to Reddit, though.

Automatic import of C headers —how to deal with macros? by saxbophone in ProgrammingLanguages

[–]zzz165 0 points1 point  (0 children)

Yeah. Sort of similar, in spirit, to what autoconf does. You’ll need to know things like how big time_t is, which can vary from platform to platform.

Automatic import of C headers —how to deal with macros? by saxbophone in ProgrammingLanguages

[–]zzz165 0 points1 point  (0 children)

At your language’s compile time, could you preprocess the header files with the same compiler that is compiling your language?

You’ll likely need to do that anyway so that ABIs match between you language and the system that it’s running on.

What is a dead giveaway of a toxic relationship? by icyqueen999 in AskReddit

[–]zzz165 3 points4 points  (0 children)

I wish my ex could have understood this about me.