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.

tja , in Hilarious
@tja@sh.itjust.works avatar

You should always check xkcd.com/1205/ first to see if it makes sense to automate something

Zagorath ,
@Zagorath@aussie.zone avatar

Let’s say it takes half a second to copy/paste and submit the message. That’s 50 seconds saved, round it to one minute. You’re only doing it once, so let’s cross over to yearly. According to the Munroe Automation Scale, you can spend up to 5 minutes on it.

I’d say that code took about 1 minute to write. Maybe 2.

Result: do the automation.

Huschke ,

I miss /r/theydidthemath

bisby ,

Caveat: This is all written assuming the message is being written on a computer with a real keyboard. But if we’re assuming this is written on a phone, then my analysis doesn’t apply, but then again, writing a java program to execute in your messaging app is also a terrible idea. Which means we’re suspending disbelief, so I choose to believe that a computer keyboard and shortcuts are available.

Type the phrase once. Select all. copy, paste, paste (the first paste replaces what you already have highlighted, the second paste adds a second copy). Now you have 2. Control + A, Control + C, Control + V… Now you have 4.

It will take you only 7 cycles of this get 128*, you only need to copy/paste it one by one if you want to send each message separately. and even then, it’s would purely be copy the original, then paste, send, paste, send, paste send, paste, send.

Assuming you can hold down control and just hit ACVV 7 times, that’s 28 keystrokes. I’d bet I can get that done in 5 seconds or less (i tried it, it’s less than that), so now I only save 5 seconds. Which means I only get 25 seconds to write the script. Which he chose to write in java for some reason?

[print(“I’m sorry”) for x in range(0, 100)] is actually a script I could write in less than 25 seconds.

*And I disagree with the “reason 4” given. She didn’t say “exactly 100 times” she said “100 times before I forgive you” and to me, “before” implies >= and not ==. So if you drop it in 128 times, that exceeds the criteria. No one has ever rescinded forgiveness for receiving extra apologies.

FaceDeer ,
@FaceDeer@fedia.io avatar

He must have to apologize to her a lot.

iAvicenna , (edited ) in Rebase Supremacy
@iAvicenna@lemmy.world avatar

I personally prefer “git off my lawn”

bitcrafter ,

Ah, yes, the good old git off --my lawn command.

affiliate , in New language

back in my day we only had one language. it was called ASSEMBLY. wanted to make the computer do something? you had to ask it yourself. and that worked JUST FINE

SaltyIceteaMaker ,
@SaltyIceteaMaker@iusearchlinux.fyi avatar

Back in my dsy we only had non programmable computers. Wanted to make the computer do something? You had to specifically build in the function. And that worked JUST FINE

Plopp ,

Back in my day we had an abacus and if you wanted it to do something you had to do it your damn self. And that worked JUST FINE.

letsgo ,

Oh hello mister fancy pants with your abacus. We carved notches in rocks and we were happy with that.

SorryQuick ,

Back in my day people worked 16h days everyday and had no time for math or computers. And that was JUST FINE.

jaybone ,

Well la-tee-da, fuck my AND gates and inverters.

Look at moneybags over here with his instruction sets.

trashgirlfriend ,

Back in my day when you wanted a computer to do something, you just asked her to do it and then underpaid her because women can’t hold real jobs.

Aceticon ,

Gates and inverters!!?

Luxury!

In my day we had to use transitors and resistors and, if we were lucky, maybe capacitors.

anton ,

Look at me, I have a friend at bell labs.
We had to use vacuum tubes, and we liked it.

humbletightband ,

Ok Boomer

Dirk , in Probably the wrong meme format
@Dirk@lemmy.ml avatar

There is an XKCD for that. Replace “standards” with “programming languages”.

https://lemmy.ml/pictrs/image/090036ee-e492-49e4-8b01-57aa798fdfaf.png

FuryMaker , in New language

Obligatory XKCD:

xkcd.com/927/

umbraroze , in Life Hack

One day someone will use the SQL injection to execute code on the remote server to add message to the web site that tells the workers to unionise and demand actually fair wages and put an end to the whole tipping nonsense

melpomenesclevage ,

Please write this code and I’ll do it tomorrow when stuff opens today.

rufus , (edited ) in I expect normies to use words like 'algorithm' to refer to 'AI', which is in reality, a mathematical optimization PAC model --- but is this guy not supposed to be epitome of tech meritocracy?

I don’t get it. Where does he say “algorithm”? Does Google Gemini do PAC learning?

AFAIK “AI” means “machine learning” and machines with “intelligent” behaviour, whatever that means. It includes everything from expert systems, statistics, markov chains to LLMs. And people nowadays slap it on every product out there.

“Algorithm” means a (finite) sequence of (rigorous) instructions. At least that’s what Wikipedia says. It’s well defined and doesn’t talk about where the instructions come from or if it includes statistics.

natecox ,
@natecox@programming.dev avatar

Maybe it’s in the thread or something? I don’t know.

I think Musk is maybe the biggest tool of them all and I enjoy a chance to insult him as much as the next guy, but I’m confused about this one.

rufus ,

Agree. Not sure if I’d use the word “tool” to describe him… But he’s certainly “special”. Glad I found one of the few discussions where it’s not just his fans praising him for his " visions" despite him not delivering on the last 50 promises he made. Or the latest edgy memelord thing he read somewhere or came up with… Usually I just shut my mouth and don’t comment on that because it’s just so many people following the hype.

rufus , in New language

And one of them is Java?

BeigeAgenda ,
@BeigeAgenda@lemmy.ca avatar

Yes Java, Scala, Kotlin, Jython and Perl

jaybone ,

Whatever you do in perl, I can do in PL/SQL.

BeigeAgenda ,
@BeigeAgenda@lemmy.ca avatar

I would rather use pgsql or tsql instead of PL/SQL, mostly because of oracle.

tinyVoltron ,
@tinyVoltron@lemmy.world avatar

What about Groovy?

BeigeAgenda ,
@BeigeAgenda@lemmy.ca avatar

Forgot about that one, even if I just worked on a Jenkins script 🙄

whoisearth ,
@whoisearth@lemmy.ca avatar

Of course Perl is in there lol

invertedspear , in New language

One project I worked on had 10 different languages. That was rough. But even your basic full stack web application is usually 5 languages: SQL, a backend language, HTML, CSS and JS. Usually some wheel reinventing frameworks thrown in for good measure. 5 languages is light these days.

agressivelyPassive ,

And don’t forget the CI “language” plus a bunch of bash scripts, Helm, Kubernetes, etc.

mctoasterson ,

Probably a bunch of hacked together Python to copy stuff between fileshares. Bonus points if it runs with a .bat file and a Windows scheduled task.

humbletightband ,

Without Ansible or Terraform? What about SQL specific for each rdbms?

CodeMonkey ,

I work in Java, Golang, Python, with Helm, CircleCI, bash scripts, Makefiles, Terraform, and Terragrunt for testing and deployment. There are other teams handling the C++ and SQL (plus whatever dark magic QA uses).

EmilyIsTrans , in New language
@EmilyIsTrans@lemmy.blahaj.zone avatar

Just use Kotlin

force , (edited )

Just use Scala*** ((objectively better language¹))

  1. scala does not support breaking out of loops, it does errors on early returns, uses parentheses for array indexing, compiles extremely slowly, …
ShadyGrove ,

Just use Clojure****

treechicken OP ,
@treechicken@lemmy.world avatar

This is literally how this all started for us lol. Senior wanted to try to migrate everything to Kotlin in our project. Migration never finished. Now one of our major repos is just half Kotlin half Java. Devs on our team learn Kotlin by unexpectedly encountering it when they need to touch that code.

monsieur_hackerman ,

Maybe it’s because I know both languages but is that really a big issue for people? The interop is great, and kotlin is very readable, so the cost of context switching between the two is miniscule.

Some people have an extreme aversion to learning new things though. I feel that holding yourself to the standards and limits of your lowest performers isn’t a great thing.

masterspace ,

Sounds like you’re making progress, your devs are slowly learning a better language that will let them work faster and will soon be able to help port the rest of the codebase and then you can really accelerate when no one needs to touch or know Java.

treechicken OP ,
@treechicken@lemmy.world avatar

I really hope so. Last code I reviewed was full of !! and companion objects trying to emulate Java static instead of top-level consts. Even I’m still trying to figure out what idiomatic Kotlin looks like. We got a ways to go…

mstrk ,

Doesn’t Kotlin has interoperability with Java? I didn’t used it much yet but I’m about to in a few months. Is it that difficult to just refactor things to Kotlin when you need to change something in the project? I’m asking because I just can’t work with verbose languages and would prefer Kotlin to Java everyday.

treechicken OP ,
@treechicken@lemmy.world avatar

The interoperability is both a blessing and a curse imo since it let us half-ass the integration by leaving a bunch of Java code unconverted. I could start refactoring everything but then my team would stop reviewing my PRs due to the diff size (and then my manager would eventually find out that I’ve been using up work time doing this instead of shipping features during crunch week).

I really much prefer Kotlin to Java. I just wish my team had actually had a commitment to it instead of just sorta using it with no migration plan.

frauddogg , in New language
@frauddogg@lemmygrad.ml avatar

The XKCD Standards comic writ large. There are 17 competing standards. -> “Hey, we should make a standard to unite all these disparate standards.” -> There are now 18 competing standards.

surge_1 , in New language

Skip step 3, and just switch to Kotlin. Worked wonders for Android

GissaMittJobb ,

Yes indeed, and it feels really good.

sabreW4K3 ,
@sabreW4K3@lazysoci.al avatar

Is Kotlin bad?

surge_1 ,

Kotlin is the tits

swordsmanluke ,

Kotlin is Java with all the suck taken out.

It’s a modern, ergonomic language that runs on the JVM and removes as much GD boilerplate as it can.

It’s fantastic.

sabreW4K3 ,
@sabreW4K3@lazysoci.al avatar

Sorry, one more question. What does ergonomic mean in regards to programming languages?

swordsmanluke ,

Lots of little quality of life things. For instance, in Kotlin types can be marked nullable or not. When you are passing a potential null into a non-nullable argument, the compiler raises an error.

But if you had already checked earlier in scope whether or not the value was null, the compiler remembers that the value is guaranteed not to be null and won’t blow up.

Same for other typechecks. Once you have asserted that a value is a given type, you don’t need to cast it everywhere else. The compiler will remember.

sabreW4K3 ,
@sabreW4K3@lazysoci.al avatar

Ooh, thank you

AeroLemming ,

with all the suck taken out.

You still need Gradle, so not all the suck.

moomoomoo309 ,
@moomoomoo309@programming.dev avatar

kotlinlang.org/docs/maven.htmlThat’s not true, you can use Maven if you want!

AeroLemming ,

I’m not a huge fan of Maven either. I guess I’m just spoiled by Cargo.

moomoomoo309 ,
@moomoomoo309@programming.dev avatar

Cargo is really simple, which is great, but also limiting. Maven is much more complex, but for good reason - there’s use cases, especially around multi-artifact projects and version sharing, where cargo would require either some glue or you run into some interesting edge cases. Usually, Rust isn’t used for the kinds of big, wacky projects with a million dependencies that companies write in Java/Kotlin, so those kinds of use cases are considered more unusual.

Gradle, in my opinion, makes itself complex because it’s all code, is very brittle, and several of its features just don’t work right and require workarounds. When it works, it builds fast and it works well, but getting it to work, and how often you have to get it to work again…not worth it.

AeroLemming ,

That’s interesting, thanks

abbadon420 , in New language

Java is great if you actually want to earn a living.

Sendpicsofsandwiches ,
@Sendpicsofsandwiches@sh.itjust.works avatar
abbadon420 ,

Could you have picked any creepier clown foto? Lol

agressivelyPassive ,

That’s almost comically besides the point of the comment.

skulbuny ,
@skulbuny@sh.itjust.works avatar

True, but functional languages are great if you want to live comfortably.

survey.stackoverflow.co/2023/-salary-sala…

CanadaPlus ,

Difficulty of finding such a job not shown.

swordsmanluke ,

That one dude still using Delphi is getting screwed.

Also, these salary numbers seem… real low. I get that it’s the median so maybe a huge number of overseas engineers are pulling the results down but in my neck of the woods 105K is less than what we pay juniors.

xep , in I expect normies to use words like 'algorithm' to refer to 'AI', which is in reality, a mathematical optimization PAC model --- but is this guy not supposed to be epitome of tech meritocracy?

Is the tweet supposed to be funny? I can't tell.

jaemo , in Rebase Supremacy

Fuck a merge commit! Rebase ervray day bay bayyy.

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