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.

Arkaelus , in Gotta use all those brain cells

Heeey! It’s not, like… JUST that, okay?! No, I’m not in denial, shut up!

aluminium , (edited ) in STOP DOING DEPENDENCY INJECTION

Is this even a joke? In Spring DI beans are nothing but glorified over complicated global variables.

Also this fits in here perfectly m.youtube.com/watch?v=k0qmkQGqpM8

indog ,

Spring singleton beans are supposed to be stateless though, so they can’t be called variables. Maybe the DI aspect of Spring is less relevant today in the micro service era, but in the day Spring helped make layered monolith apps much cleaner.

aluminium ,

Really? From my experience the opposite is the case. I work on a smallish team with 3 other developers and we also have a few spring services with < 100 classes and we constantly run into issues where making changes to a bean causes issues in another unrelated part of the codebase. I can’t imagine what a nightmare it would be with a larger codebase and more devs working on it.

hedy , in New developer

My friends type up code in Google Docs to do programming homework on the phone while on the bus.

nifty ,
@nifty@lemmy.world avatar

Why not a colab? I think you can use it on mobile

ICastFist ,
@ICastFist@programming.dev avatar

I’ve tried progamming a bit on the phone, but fuck me with a pineapple, that’s an exercise in patience, all the things to make typing on a screen easier will work against you

Mesa ,
@Mesa@programming.dev avatar

Const goo =

backspace backspace

const Foo

backspace

const foo = obj. Val;.

*deep breaths

reverendsteveii , in It's time to mentally prepare yourselves for this

the fact that the acronym for Coordinated Lunar Time is LTC tells you everything you need to know about how this will work.

SlopppyEngineer , in When a real user uses the app

One user during the night shift tested every possible key combination on the computer to see what would crash our software, so it became a race between the programmer locking the thing down and the user finding new holes. It ended when the user resorted to sitting on the keyboard and breaking the keyboard that got their bosses involved who told the user to knock it off.

MyNamesNotRobert , in Should it just be called JASM?

I hate Java because whenever people make games or performance sensitive applications with it, performance is always complete ass shit. On top of that, it seems I always have to cave in and use Windows because when I’m trying to compile a Java project, there’s some obscure dependency can only be acquired and installed correctly on windows.

Try compiling Freerouting in anything other than Windows for example. It’s a good fucking thing Java apps are cross platform.

onlinepersona OP ,

It’s a good fucking thing Java apps are cross platform.

Or so goes the promise 😅

Does Freerouting use libs with JNI or something? How does it not compile on linux?

Anti Commercial AI thingyCC BY-NC-SA 4.0

hitmyspot , in Rebase Supremacy

Did she just tell people up git good?

brlemworld , in Three monitors, and i feel insulted

Wtf is a rainbow computer?

Dagwood222 ,

I gave you an upvote because I came to ask the same thing.

We’ve wandered into a bad neighborhood…

capital ,

RGB bro

Simmy ,

Can they just call it what it is? RGB

MonkeMischief ,

But it’s addressable to ROYGBIV bruh! D:

xor ,

check out pcmasterrace, people throw a bunch of colored lights on their custom computers…

pewpew , in Material design
@pewpew@feddit.it avatar

They use different colors to determine elevation instead of shadows in Material Design 3

boredtortoise , (edited )

Both elevation and tone intensity (and corner size is a possibility as well if it fits the brand)

themusicman OP ,

Yes, thank fuck for that. Material design fatigue is real

pewpew ,
@pewpew@feddit.it avatar

I prefer Material design 1 tho. I liked the shadows

MeDuViNoX , in Wait... it's all backdoors ? Always has been bro...
@MeDuViNoX@sh.itjust.works avatar

One of those backdoors is in the front.

FilthyShrooms ,

Thats the back backdoor

Kolanaki , in Whoa there buddy, calm down
@Kolanaki@yiffit.net avatar

If you wanted to bring down a server, the best hack is unplugging the rack from within the data center.

xep , in Aaargh....my eyes......my eyes......

This has likely been done intentionally for humour's sake, but take a look at some of the names in Apple's AppKit framework, like https://developer.apple.com/documentation/appkit/nspreviewrepresentingactivityitem

qaz ,

That page is giving me a 403

BombOmOm , (edited )
@BombOmOm@lemmy.world avatar

I’m still annoyed with how verbose Objective-C is. Just check out what one has to do to create and concatenate a string. Madness:


<span style="color:#323232;">    NSString * test = [[NSString alloc] initWithString:@"This is a test string."];
</span><span style="color:#323232;">    NSString * test2 = [test stringByAppendingString:@" This value is appended."];
</span>

And god forbid you want to concatenate two things to a string:


<span style="color:#323232;">    NSString * test3 = [test1 stringByAppendingString:[test2 stringByAppendingString:@" Adding a third value."]];
</span>
Anticorp , in Variable Declaration

It’s a no win situation, because it’ll throw a fit if you try to use it before you declare it too.

gofsckyourself , in Uh...oh...

Theory is when you know everything but nothing works

I know it’s “just a joke” but this makes no sense.

CanadaPlus ,

We know very exactly how the baby monster group in mathematics operates. It has no practical use as far as I’m aware (it doesn’t work).

ChickenLadyLovesLife , in traslation: i made that bug 15 years ago and have been waiting for it to matter.

Not a bug exactly, but about ten years ago I was working as an iOS developer and to get around a major problem introduced by the app designer, I made use of a “private method”, which is something an app supposedly gets rejected for by Apple. I came up with a way of hiding it and had to sweat out the approval period before it went live. Ten years later that shit is still there; I’m sure the developers currently responsible for the app don’t even know it’s there. I normally comment my code with an eye to helping future programmers understand what’s going on and why, but this hack was one where I even obscured the comments.

AVincentInSpace ,

What does “private method” mean in this context? Did you make use of an undocumented endpoint of the iOS API?

ChickenLadyLovesLife ,

Yeah, same thing.

firelizzard ,
@firelizzard@programming.dev avatar

Objective-C does not enforce method access (e.g. private methods) at the runtime level. If you are sufficiently determined, there are no restrictions on what methods you can call, unlike Java or C# (AFAIK).

AVincentInSpace ,

Java absolutely lets you do that with Reflections. You’re not supposed to, and it’s painfully slow, but the JVM is only marginally smarter than javac (and that’s saying something) so there’s nothing actually stopping you.

humbletightband ,

If you are determined enough, it’s not that slow 😉

firelizzard ,
@firelizzard@programming.dev avatar

I thought there was security code to stop that kind of thing. Granted, it’s been over 10 years since I’ve done anything with Java more than tinkering with Minecraft mods.

homura1650 ,

Java did have a Security Manager that can be used to prevent this sort of thing. The original thinking was that the Java runtime would essentially be an OS, and you could have different applets running within the runtime. This required a permission system where you could confine the permissions of parts of a Java program without confining the entire thing; which led to the Java security manager.

Having said that, the Java Security Manager, while an interesting idea, has never been good. The only place it has ever seen significant use was in webapps, where it earned Java the reputation for being insecure. Nowadays, Java webapps are ancient history due to the success of Javascript.

The security manager was depreciated in Java 17, and I believe removed entirely in Java 21.

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