There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Jake_Farm , in Has this ever happened to you?
@Jake_Farm@sopuli.xyz avatar

Can customers be black listed?

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

Absolutely. Sometimes firing your customer is the best option for everyone.

magic_lobster_party , in Probably the wrong meme format

Java is disliked because it’s designed around flawed OOP principles developed in the 80s and 90s. The code easily turn into a mess if you adhere to these principles, because they’re flawed. If you avoid using these principles, you will still get a mess, because that’s not how Java is supposed to be used.

hydroptic ,

Java was such a fractal of stupid design choices in its early years, and a lot of it is still there. OOP except when it’s not (int vs Integer, [] arrays but also List et al), no unsigned number types, initially no way to do closures or pass methods around so everything had to be wrapped in super verbose bullshit, initially absolutely dogshit multiparadigm support and very noun-oriented, initally no generics either meaning everything’s an Object, when it did get generics they had to do type erasure for backwards compatibility, etc etc etc

JackbyDev ,

Regarding erasure, this is a good read. cr.openjdk.org/~briangoetz/valhalla/erasure.html

hydroptic ,

Great article, thanks for the link! It makes good points that I hadn’t really considered; I’ve probably just been cranky about it because I’ve preferred heterogenous translations

JackbyDev ,

Glad you liked it!

magic_lobster_party ,

Also: everything is nullable. There are no safety guarantees to ensure you’ve done the necessary null checks. And if you miss your program will crash.

hydroptic ,

Oh yeah how did I forget the billion dollar mistake, definitely one of the worst misfeatures of Java

magic_lobster_party ,

I think having null is great in some cases where you need to represent missing value. It’s just that there’s no good way to know for sure if you need to do null checks or not. The only way around it is to do null checks everywhere, which no one wants to do because fuck that. Nowadays there’s Optional which solves some of this, but it was introduced way too late.

If I were to redesign Java the first thing I would do is to add a nullable keyword or something.

hydroptic ,

I think having null is great in some cases where you need to represent missing value.

Option types or sum types would probably be a much less terrible choice for this, although I guess some sort of nullable keyword counts as a sum type

magic_lobster_party ,

Well, anything that can be captured at compile time or by the IDE is infinitely better than the situation we have today.

hydroptic ,

Ha yeah, just about anything is better than the current status quo

KidnappedByKitties , in Hilarious

102 times

Rubanski ,

Why 102? Isn’t it 0-100?

stevestevesteve ,

He already said it once

Rubanski ,

Wow that went over my head haha

jaybone ,

But that was before she set the requirement. I assume she meant from then on, and not since the beginning of time.

someguy3 ,

If they have eggs, get a dozen.

UnfortunateShort , in there is no need

Every time I take a look at collections of user created themes for anything, I am reminded why design is a profession.

Not trying to shame anyone, I’ve been an enjoyer of custom themes ever since I started using Linux, but you need to have at the very least a little contrast in your theme. That’s kinda where this conversation begins :D

isVeryLoud ,

User themes having poor contrast and inconsistencies is why I stick to stock themes, made by UX/UI designers who work directly with the developers.

redcalcium , in Daylight saving creator left the chat....

Soon we’re going to have a new timezone for the moon. Yay, I guess?

synae ,
@synae@lemmy.sdf.org avatar

Surely they will just use utc?

redcalcium , (edited )

Can’t be that simple due to time dilation effect. Time moves at a different rate in moon, about 1s 58.7 μs difference per day.

reuters.com/…/white-house-directs-nasa-create-tim…

davidgro ,

That article says 58.7 microseconds per (Earth) day. Not 1s.

WeirdAlex03 ,
@WeirdAlex03@lemmy.zip avatar

Easier to just round up lol

redcalcium ,

Shit you’re right, I misremembered it.

RustyWizard ,

Appreciate you correcting your post, just one more needed.

ms = milliseconds

us = microseconds

devilish666 OP ,
ALoafOfBread , in Computer components cheat sheet

Inkjet: uses yellow ink to dye paper.

But what if it’s just black text?

Inkjet: USES YELLOW INK TO DYE PAPER

LostXOR ,

Gotta put on those invisible tracking codes.

dan ,
@dan@upvote.au avatar

The EFF were tracking which printers print the invisible tracking dots, but they gave up because practically all colour inkjet and laser printers do it now. eff.org/…/list-printers-which-do-or-do-not-displa…

Bigoldmustard , in Wait... it's all backdoors ? Always has been bro...

Coding is kind of like being a wizard. Like, y’all put a bunch of nonsense in just precisely the right order and then some electrictrified minerals bounce around and then a sandwich shows up at my door.

If the process was almost any amount sexier we would absolutely not let half the people running tech startups near it for -gestures broadly- obvious reasons.

MostlyBlindGamer , in Gamedev is Easy
@MostlyBlindGamer@rblind.com avatar

I smell a NotImplementedException somewhere.

fckreddit ,

It’s everywhere.

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

I don’t know, at least ‘SetPerformance()’ could throw an argument out of bounds exception.

KoboldCoterie ,
@KoboldCoterie@pawb.social avatar

<span style="color:#323232;">catch (Exception e) {
</span><span style="color:#323232;">    Exception.autofix(e);
</span><span style="color:#323232;">}
</span>

Done!

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

Perfect! Don’t forget to assert the same exception in all the tests.

mindbleach , in Someone needs to be reminded that anticompetitive practices are illegal

“How dare you use software on your hardware,” says another worthless gaggle of bastard morons.

Just have Jensen Huang flop his dick out and say CUDA is an anti-competitive tactic. It wouldn’t be less obvious.

mox , in codeStyle

One advantage of snake case is never having to remember which letters of every acronym or compound word each author decided to capitalize.

xigoi ,
@xigoi@lemmy.sdf.org avatar

I just like to treat acronyms/initialisms as normal words. sendHttpRequest, etc.

Mesa ,
@Mesa@programming.dev avatar

This is the way.

Ghoelian ,

You already don’t have to do that. That’s what IDE’s have autocomplete for.

mox ,

That viewpoint makes bold assumptions about language, toolset, and preference.

It also suggests sweeping the dirt under the rug instead of not having it on the floor in the first place.

aeharding , in wait what
@aeharding@lemmy.world avatar

Is this real or am I eating the onion

TootSweet ,

You’re eating the onion. I could see some government agency deciding that they as an agency would standardize on tabs, though even that would be a stretch. But not the White House.

bisby ,
Deceptichum ,
@Deceptichum@sh.itjust.works avatar

By adopting a tab-delimited approach to softwaremaking, ONCD is ensuring that the technical community’s expertise is reflected in how the Federal Government approaches these inconsistencies. Creators of software can have an outsized impact on the Nation’s shared security by factoring standardized tabulations into the development process.

For anyone who doesn’t want to read that whole thing.

pcouy ,

Lol I almost fell for it. I just Ctrl+F’d the link, no occurence of “tab” in the press release :D

CptEnder ,

You mfer you made me actually read

bloubz ,

🧅

lugal , in What’s in a name?

“Pointer, where are you?” Points at Parent, my other child

over_clox ,

OOP issues LOL!

ICastFist ,
@ICastFist@programming.dev avatar

Pointer, where is This, your other sibling?

tsonfeir ,
@tsonfeir@lemm.ee avatar

They’re with Self and Construct.

kibiz0r ,

Pointer moved to Hollywood, to become a character star. They had a string of interviews, but it ended in nothing.

neatchee , in I had to design a simple general purpose language for university, so I tried creating "ZoomerScript" with Jetbrains MPS

Vibe check is your scope declaration (class?)

num is obviously your int class

fr? is your Boolean class

if __ no cap is ’ if __ then’, if cap is ‘else’, sheesh ends the conditional

flex __ on the haters is your echo/print

frfr is your scope ending

prof OP ,
@prof@infosec.pub avatar

Correct!

Vibe check is pretty much the scope. Classes aren’t a thing (yet).

onlinepersona , in Can someone explain why authors do this?

Same as foo, bar, baz 🙄

CC BY-NC-SA 4.0

verstra ,

why do you provide a link to creative commons license? Ive seen such links few times on lemmy.

gallopingsnail ,
@gallopingsnail@lemmy.sdf.org avatar

This guy licenses his comments under creative commons for some reason.

wurstgulasch3000 ,

Tryin to make a change :-/

onlinepersona ,

Thank you for recognising that.

verstra ,

But whats the point of giving out a license along the comment? Are you giving permission to use your comment?

k110111 ,

Maybe it has to do with people stealing content to train AI? Atleast now if there is an opportunity to be a part of a lawsuit or smth they can claim they provided a licence. I dunno just a guess

onlinepersona ,

For non-commercial use, yes. Aka no closed-source AI.

verstra ,

Aaah, AI training data. That makes sense now

OneCardboardBox ,

Same as foo, bar, baz, bizzle, and bebop 😋

Adapted from [email protected], no endorsement of this comment is implied.

CC BY-NC-SA 4.0

Owljfien ,

I hate foo bar etc, seems like a joke that was cringe that has gone on too long. When I was trying to learn programming I was like what the actual hell does this shit mean?

onlinepersona ,

Same. Really thought it was a joke until I saw it all over the place. It really isn’t that hard to think of random names.

CC BY-NC-SA 4.0

spongeborgcubepants ,

It’s better to have a convention that makes it easy to spot example names

deegeese , in Lights bulbs

Nobody will pay for a burned out light bulb.

nifty OP ,
@nifty@lemmy.world avatar

Testing and confirming the burn out of light bulbs is easier!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines