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.

ristoril_zip , in What a time to be alive

I read a pretty convincing article title and subheading implying that the best use for so called “AI” would be to replace all corporate CEOs with it.

I didn’t read the article but given how I’ve seen most CEOs behave it would probably be trivial to automate their behavior. Pursue short term profit boosts with no eye to the long term, cut workers and/or pay and/or benefits at every opportunity, attempt to deny unionization to the employees, tell the board and shareholders that everything is great, tell the employees that everything sucks, …

snooggums ,
@snooggums@midwest.social avatar

Then some hackers get in and reprogram the AI CEOs to value long term profit and employee training and productivity. The company grows and is massively profitable until some venture capitalists swoop in and kill the company to feed from the carcass.

Faydaikin ,
@Faydaikin@beehaw.org avatar

If your company is successful, that’s gonna happen anyway.

cerement ,
@cerement@slrpnk.net avatar

when workers go on strike, they call in the police, strikebreakers, National Guard, even bomb whole neighborhoods – but when a CEO takes a week off, no one even notices …

Semi_Hemi_Demigod ,
@Semi_Hemi_Demigod@lemmy.world avatar

Like that time in Ireland when the banks closed to protest a law and life went on just fine without them.

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

Most CEOs could be automated with a random number generator that runs on a combustion engine fueled by burning dollar bills.

threedc , (edited ) in "I want to live forever in AI"

The game SOMA represents this case the best. Highly recommended!

Wolfwood1 ,

Yes, I immediately thought about SOMA after reading the post. recommendations++

Mkengine ,

I already know I will never play this game, could you elaborate for me?

Sethayy ,

Brain scan tossed in a robot makes 2 Simons

NeverNudeNo13 ,

And several times throughout the story you are forced into making some “decisions” about how to deal with stale memory registers.

BingBong ,

Did they ever allow for turning off head bob and blur? That game makes me motion sick to an insane degree.

MintyAnt ,

Soma is so fucking bleak and I love it

Schmoo , in "I want to live forever in AI"

If anyone’s interested in a hard sci-fi show about uploading consciousness they should watch the animated series Pantheon. Not only does the technology feel realistic, but the way it’s created and used by big tech companies is uncomfortably real.

The show got kinda screwed over on advertising and fell to obscurity because of streaming service fuck ups and region locking, and I can’t help but wonder if it’s at least partially because of its harsh criticisms of the tech industry.

localme ,

Yes, I just finished watching Pantheon and absolutely loved it!

Totally agree that it deserved more attention. At least it got a proper ending with season 2.

Also, the voice acting talent they got was impressive. Paul Dano was fantastic as one of the leads.

khannie ,
@khannie@lemmy.world avatar

Sounds good. Did it come to a conclusion or get axed mid way?

AFaithfulNihilist ,
@AFaithfulNihilist@lemmy.world avatar

The series has a very satisfying conclusion.

It’s one of the coolest fucking things we watched this last year.

khannie ,
@khannie@lemmy.world avatar

Sold!

gerbler ,

Unironically the most important question

Schmoo ,

Luckily the writers were able to finish it the way they wanted with a second season, and it’s fantastic. AMC almost did axe it before the second season released but after it was already finished but fans were able to get them to release it.

BlackPenguins ,

I really thought you were going to mention “Upload” on Prime. Same creator as the office.

LodeMike ,

That show is garbage

LodeMike ,

The show got kinda screwed over on advertising and fell to obscurity because of streaming service fuck ups and region locking, and I can’t help but wonder if it’s at least partially because of its harsh criticisms of the tech industry.

Okay so I can’t 100% confirm this, but the first season wasn’t popular because it was on whatever the fuck AMC+ is. Amazon bought it because of the writer’s strike to get something out.

GnomeKat ,
@GnomeKat@lemmy.blahaj.zone avatar

Just FYI content warning for Pantheon there is a seriously disturbing gore/kill scene that is animated too well in the first season. Anyone who has seen the show knows what scene I am talking about, I found the scene pretty upsetting and I almost didn’t finish the show. I am still a little upset that the scene is burned in my memory.

TheFonz ,

Checking in to see if this show was mentioned. Highly recommend! Well written

dragontamer , in Exam Answer

Is it wrong that I’m stuck trying to figure out what language this is?

Trying to figure out what string.length and print(var) exist in a single language… Not Java, not C# (I’m pretty sure its .Length, not length), certainly not C, C++ or Python, Pascal, Schme or Haskell or Javascript or PHP.

skulbuny ,
@skulbuny@sh.itjust.works avatar
breadsmasher ,
@breadsmasher@lemmy.world avatar

doesnt have print nor allow variable declaration without keywords

Downcount ,

It would have print if it was previously declared as function. https://lemmy.world/pictrs/image/e70dcc5a-1672-4572-b9ee-587a4841fd9c.jpeg

Also, js is as dirty as you want it to be. Keywords are indeed not necessary for declaring variables.

kautau ,

JavaScript is the language of the assassins, with its infinitely modifiable prototypical setup

Nothing is true

true !== 1

true

true + true + true === 3

true

Everything is permitted

[]+[]

‘’

joyjoy ,

print() will print the text to a physical printer with paper and everything. Don’t confuse it with console.log and use it in a loop.

tourist ,
@tourist@lemmy.world avatar

it’s so rough learning this by accident

bleistift2 ,

Sure you can write foo = 3 in JavaScript. It’s a global variable and can be referenced as either foo or window.foo.

mox , (edited )

That recurring puzzle is among the most interesting aspects of this community, IMHO.

Skullgrid ,
@Skullgrid@lemmy.world avatar

Most irritating aspect of switching languages. How are switches done in this one again?

•Searches web•

Ah yes

min_fapper ,

To be honest, that was the biggest value proposition of GitHub Copilot.

kautau ,

It’s weird that people are so focused on it. It’s pseudocode, and it’s purely meant for day one comp sci students to grasp how data is stored and processed, before they are forced into writing Java, most likely

breadsmasher ,
@breadsmasher@lemmy.world avatar

Same thoughts I had.

  1. Language which allows variable declaration as name = value without any keywords or its a variable declared outside of the example
  2. Has lowercase .length and not .len or other
  3. .length is also a property and not a method? Assuming convention .length() for method call like print(x)
JackGreenEarth ,

OCR exam language, a pseudocode format.

kn0wmad1c ,
@kn0wmad1c@programming.dev avatar

This could run in Javascript if you setup print as an alias for window.alert or console.log

PoolloverNathan ,

It can run in regular JS; print() just prints the page (ignoring the passed value).

lemann ,

undefined

xigoi ,
@xigoi@lemmy.sdf.org avatar

The QuickJS interpreter has print as a built-in alias for console.log.

Minotaur ,

I’m very much guessing that this is just supposed to be a type of pseudocode given the context and vagueness of it.

It’s a big reason why I really dont like pseudocode as instruction to people learning the basics of what programming is. It made more sense 20 years ago when programming languages were on a whole a lot more esoteric and less plain text, but now with simple languages like Python there’s simply little reason to not just write Python code or whatever.

I took an intro to programming class in College and the single thing I got dinged on the most is “incorrect pseudocode”, which was either too formal and close to real code or too casual and close to plain English.

It’s not a great system. We really need to get rid of it as a practice

nxdefiant ,

Especially since python is right there.

1rre ,

I mean once you get beyond bash-like scripts python is esoteric as fuck, adding oop to what is essentially a shell is a terrible idea

That said, there’s plenty of languages with good syntax that is still good when you get into more complex stuff (modern C#, scala, kotlin and more)

GBU_28 ,

Wut

tryptaminev ,

I disagree. Python is not “esoteric” when making objects. The syntax is certainly easier than in Java.

1rre ,

The syntax is certainly easier than Java

And VisualBasic’s syntax is easier than COBOL, but this isn’t a competition to make the least offensive heap of putrid garbage, so why does it matter?

Python works just fine for basic scripts, frankly it’s amazing for it, but oop and functional programming is so incredibly obviously badly shoehorned in that huge swathes needs scrapping and version 4 releasing

tryptaminev , (edited )

Then help me understand please. What do you mean by “esoteric” in regards to oop in Python compared to a language better suited for it?

jjjalljs ,

What part(s) of python do you think is esoteric?

Minotaur ,

I think you’re missing the forest for the trees here pretty heavily.

Yes, Python has some goofy aspects about managing it while performing high level, in depth tasks.

This is a post and a comment chain about pseudocode being taught to people who likely just learned what a “programming language” was several weeks ago. Essentially no one taking the GCSE knows what “bash-like scripts” even means.

nxdefiant ,

The only thing esoteric about python is the bolted-on typing and anything behind a double underscore.

So yeah, it’s there, but in front of the curtain it’s practically pseudo code.

captain_aggravated ,
@captain_aggravated@sh.itjust.works avatar

Reminds me of 7th grade math class, chapter on estimating. Assignment was “Estimate the following values” with problems like 42+28=? or 14*3=?

One of them was 6*7=? Which having memorized my times tables in 4th grade like they told me to, I knew off the top of my head that it’s 42. I wrote that. And it was marked wrong because I was too precise.

psud ,

In the 90s my high school used Pascal. That seems reasonable if you only want to teach procedural

lugal ,

This is quite a cheap answer but maybe it’s just pseudo code. We had exercises in university about pseudo code with examples that intentionally broke all syntax systems and conventions to show that not everything has to be executable that you write down in a theoretical computer science homework

nxdefiant ,

It’s a shitty question. It’s implied by the fact that “24” is wrong that the answer is “6”, the length of the string “Monday”.

In some languages dot access on objects could give you the properties of the object type (things pertaining to a “day” object) but this would still be ambiguous since a day’s length can be measured in many different ways.

In others, it would require you to call length as a function (.length()) or not be available at all, or require you to pass the object into another function [ length_in_seconds(day_x)]

Matty_r ,
@Matty_r@programming.dev avatar

I think the question is fine, but we have to assume they covered this type of method prior to the exam, where .length would result in the character count of a String.

XEAL ,

Why not Python? Because it needs print(str(x))?

dragontamer ,

It’s len(str) in Python. Not str.length.

XEAL ,

Ohhh thanks

dog ,

Pseudocode and/or a variant of lua.

CanadaPlus ,

Just pseudocode.

magic_lobster_party ,

Scala and Kotlin are close ones, although those requires variables to be declared with var day = “Monday” (unless the variables are declared elsewhere)

NeatNit ,

My headcanon: it’s a language that gets executed by a LLM. Whatever you write, if the LLM can make sense of it, it will execute it.

The output may well be “24 hours”.

paholg ,

It could be Ruby; puts is more common, but there is a print. With some silly context, the answer could even be correct:


<span style="font-style:italic;color:#969896;">#!/usr/bin/env ruby
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">module </span><span style="color:#323232;">DayLength
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">def </span><span style="font-weight:bold;color:#795da3;">length
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">[</span><span style="color:#183691;">"Sunday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Monday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Tuesday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Wednesday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Thursday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Friday"</span><span style="color:#323232;">, </span><span style="color:#183691;">"Saturday"</span><span style="color:#323232;">].</span><span style="color:#62a35c;">include? </span><span style="color:#ed6a43;">self
</span><span style="color:#323232;">      </span><span style="color:#183691;">"24 hours"
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">else
</span><span style="color:#323232;">      </span><span style="font-weight:bold;color:#a71d5d;">super
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">end
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">end
</span><span style="font-weight:bold;color:#a71d5d;">end
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#a71d5d;">class </span><span style="color:#0086b3;">String
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">prepend </span><span style="color:#0086b3;">DayLength
</span><span style="font-weight:bold;color:#a71d5d;">end
</span><span style="color:#323232;">
</span><span style="color:#323232;">day </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#183691;">"Monday"
</span><span style="color:#323232;">
</span><span style="color:#323232;">x </span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;"> day.length
</span><span style="color:#323232;">
</span><span style="color:#62a35c;">print</span><span style="color:#323232;">(x)
</span>
Murvel , in C++ oop in a nutshell

Ohhh gottem!

She is now legally obligated to sex this man.

edit: programmers code

Goun ,

Normies hate this trick!

spez ,

lmao ‘sex this man’. hahahhaha

Murvel ,

Yup, that’d be the joke

sunbytes , in As someone not in tech, I have no idea how to refer to my tech friends' jobs
  • Viewport engineer.
  • Browser-space technician.
  • Microsoft painter-decorator.
  • Inferior decorator.
  • He-who-responds (on the bugs channel).
  • Scope denier.
  • Manager disappointer.
The_Picard_Maneuver OP ,
@The_Picard_Maneuver@lemmy.world avatar

inferior decorator

This one is going in my dad joke arsenal. Thank you

Infinite ,

Electron herder

AlexWIWA ,

I am the worst kind of programmer, I’m a Scope Inflator.

victorz , in Me after I got fired

Funny but I call bullshit all day

qarbone ,

Yeah, how did they commit this to anywhere that would hurt?

victorz ,

They did not ✌️

Gallardo994 , in 5/5 stars

Yeah dev home is pretty much useless at this point.

Back when it just launched, they marketed it as it would introduce cool stuff to developers like, what I’m waiting for the most, git repositories Explorer integration. But all we have is a constantly crashing app and two extra widgets for the widget panel.

Dev drives are also cool but they’re the part of Windows anyway, no dev home needed.

crispy_kilt ,

Dev drives

Mom, can we have fast i/o with many small files?

No, we have fast i/o with many small files at home.

Fast i/o with many small files at home:

Gallardo994 ,

Instead of io stuff I just use it as a current snapshot of my dev stuff including repos. Super-easy and super-fast to sync to my other devices just as a vhdx file over any wifi network. Yeah it’s not dev drive specific feature but still, I started doing so because of dev drive

crispy_kilt ,

I love learning about all the problems I’m not having

By the way I use Debian

Gallardo994 ,

What problems are you talking about?

crispy_kilt ,

For example, slow i/o with many small files

Gallardo994 ,

I don’t remember mentioning I have a problem with that lol

crispy_kilt ,

Can confirm, you did not mention it

Ironfacebuster OP ,

If the widgets page wasn’t almost useless and filled with news stories I would actually use dev home for its widgets lol

Gallardo994 ,

Newest release preview builds added an option to turn all the news off, just sayin’

Ironfacebuster OP ,

I haven’t downloaded it because I was tired of the weird bugs with file explorer, but even on stable there are weird bugs so it’s probably worth a try

BeefPiano , in whatCouldGoWrong
southernwolf ,
@southernwolf@pawb.social avatar

I learned something today… and I’m not better off for having learned it. What a dumb ass virtue signal to use on something.

dullbananas OP ,
@dullbananas@lemmy.ca avatar

Thanks for your feedback. On the website I just added clarification of the purpose of promoting it so it’s less likely to seem like virtue signaling.

0x4E4F ,

Aaand you killed this meme for me.

BTW, I like porn, not quitting.

southernwolf ,
@southernwolf@pawb.social avatar

Yeah, this meme is now very dead for me as well. xD

Icalasari ,

Honestly, it should be more freedom from addiction. Porn isn't harmful until it becomes addicting. Drugs can boost creativity until you become dependent (although admittedly these can have a greater chance of harm, caffiene included). TV binging, scrolling the internet, all these can result in inspiration until it becomes a required habit

Maybe rework the message so Freedom From Porn is symbolic of Freedom From Addiction, and the ability to generate ideas without needing to nut first, or take drugs, or scroll endlessly through videos and stories, or playing non stop games, etc.

merdaverse ,

Yeah, I never understood the point of these nofap movements if you just substitute it with some other addiction like binge watching or doomscrolling social media. It seems like treating a symptom instead of a disease. If you fill your life with fulfilling interactions with people, hobbies and passions, you won’t even have the time for harmful addictions.

dullbananas OP ,
@dullbananas@lemmy.ca avatar

If you fill your life with fulfilling interactions with people, hobbies and passions, you won’t even have the time for harmful addictions.

Those things would be part of a positive feedback loop, and it might not be able to be the first part. The ability to enjoy them is reduced until the brain is fully healed from the addiction.

dullbananas OP ,
@dullbananas@lemmy.ca avatar

I desperately want my freedom and peace to also be yours

photonic_sorcerer ,
@photonic_sorcerer@lemmy.dbzer0.com avatar

Please keep your freedom out of our memes, i am a big fan of penis and vagene

WitchHazel ,

That’s cool and all but have you ever had your prostate caved in by a 9 in monster cock

I joke but legit most cumsoomers don’t experience addiction, guy

Seriously tho you won’t even want porn after squeezing out the ol jizz bag from the inside

gandalf_der_12te ,

Have you considered that other people might not want that, though?

dullbananas OP ,
@dullbananas@lemmy.ca avatar

Do you feel judged by the Made With Freedom From Porn campaign?

qaz ,

You sound like a JW

merdaverse ,

Well, apparently freeing yourself from porn enables you to make even more silly memes. Probably better to keep doing porn then.

dullbananas OP , (edited )
@dullbananas@lemmy.ca avatar

If you think this meme is bad then this will torture you

UNWILLING_PARTICIPANT ,

The prose is weird, but the premise is kind of interesting

Nightwind , in Programming: The Horror Game

Knew a programmer that was near blind who only used magnifier on maximum zoom with his IDE. One of the best programmers I met, but his screen looked very much like that. Don’t know how he did it.

2deck ,
@2deck@lemmy.world avatar

Programming happens in the mind. Whats on the screen is a pale and lifeless polaroid devoid of the moving, complex soul of real code.

Nightwind ,

Well put, however I find code formatting itself has a shape, texture and smell. How the programmer weaves the patterns of formatting tells a lot about his mind and style.

2deck ,
@2deck@lemmy.world avatar

Agreed; or their mind and style style.

Auto formatting is often too rigid for me and gets in the way of context driving the style.

fibojoly ,

That feels like that scene in Amadeus, when Mozart dictates his music to Salieri.

fibojoly ,

Albino? There was an albino in my IT and the poor dude would literally be like 4 inches from the screen at all times. I guess that must be pretty close to his experience, yeah.

locuester ,

Yeah, I worked with an albino like that who used a handheld magnifying glass. It actually inspired me to write a magnifier application for windows (which didn’t have one at the time, this was in 2006). That then led me to write little windows apps every day for a month, which got a lot of attention.

casmael , in Programming: The Horror Game

Yeah so you gotta buy the lumafly lantern before you go in that area

minyakcurry ,

I never expected a Hollow Knight reference here

henfredemars , in Implemented as requested

I don’t hate it. Seems functional.

idunnololz ,
@idunnololz@lemmy.world avatar

Is it tho? Those poles and numbers look flimsy.

remotelove ,
@remotelove@lemmy.ca avatar

It’s ok. They aren’t structural.

idunnololz ,
@idunnololz@lemmy.world avatar

They aren’t structural but they can easily fall over and cause structural damage.

huf ,

i like it. it’d be a neat quirk.

Blamemeta , in I mean it could be right

When the metric is lines of code

mcmoor ,

When the company tries to be cheeky and starts to count characters instead

Johanno ,

Rename c to completelyUnimportantVariableThatISoLongBecauseIGetPaidMore

alr , in Ya gotta keep up with the times!

You forgot “don’t say ‘thank you for pointing out that we were sending social security numbers to everyone who visits our website that anybody could stumble across,’ but rather ‘you will be prosecuted to the fullest extent of the law, hacker!’” Courtesy of the Missouri Department of Education.

verstra , in Markdown everywhere

This is the way.

Almost completely pure way of storing ideas. With this I mean that you don’t store unnecessary data such as “background should be white” or “left page margin is 1.3cm”. It’s just text. What’s important is what it says + minimal markup.

Presentation is left to the reader’s client. Do you want dark mode? Get a markdown editor/reader that supports it. Do you want serif font? Again, that’s client’s choice and not part of the document.

I wish browsers would support markdown out of the box, so you could open example.com/some-post.md

jadero ,

Old fart warning!

Presentation is left to the reader’s client. Do you want dark mode? Get a markdown editor/reader that supports it. Do you want serif font? Again, that’s client’s choice and not part of the document.

I remember when that is how the web worked. All that markup was to define the structure of the document and the client rendered it as set by the user.

Some clients were better than others. My favourite was the default browser in OS/2 Warp, which allowed me to easily set the display characteristics of every tag. The end result was that every site looked (approximately) the same, which made browsing so much nicer, in my opinion.

Then someone decided that website creation should be part of the desktop publishing class (at least at the school I taught at). The world (wide web) has never recovered.

ShortFuse ,

We’re kinda getting it back with the Accessibility tree

In theory, if the page is compiled right, you can read everything right from there. You could also interact with it.

jadero ,

Thanks. This is the first I’ve heard of the Accessibility tree. A quick look kind of spooked me, but I’ll dig deeper.

OffByOneError ,

Looks kind of simple to me at first glance…

There are four properties in an accessibility tree object:

name

How can we refer to this thing? For instance, a link with the text “Read more” will have “Read more” as its name (find more on how names are computed in the Accessible Name and Description Computation spec).

description

How do we describe this thing, if we want to provide more description beyond the name? The description of a table could explain what kind of information the table contains.

role

What kind of thing is it? For example, is it a button, a nav bar, or a list of items?

state

Does it have a state? Examples include checked or unchecked checkbox states and collapsed or expanded states for the <summary> element.

developer.mozilla.org/en-US/…/Accessibility_tree</summary>

jadero ,

Looks kind of simple to me at first glance…

Well, it has been a decade since I’ve done anything other than dig holes (literally), drive school buses, and work in my shop. :)

Thanks for the jump start. I’ll add this to my ever growing list of tech stuff I’d like to tackle in my retirement.

ShortFuse ,

You can use Dev Tools to see a page’s full accessibility tree:

Chrome: developer.chrome.com/…/full-accessibility-tree/#f…

Firefox: …mozilla.org/…/accessibility_inspector/-…

I haven’t really looked for anything that will present that to you as an Add-On/Extension but it’s theoretically possible.

jadero ,

Ok, thanks! That looks like a good start for me.

We’re getting closer to winter. I’ve got most of those preparations done. “Just” have to finish building the heater for my shop. My programming based project list is coming together: learn me some Rust, contribute some documentation to a project I’m following, look deeper into the potential of the Accessibility tree. That should keep me busy for a while!

KrokanteBamischijf ,

It’s a simple and elegant way of covering 95% of document structuring needs, while being as close to readable plaintext as possible.

The vast majority of documents currently written in MS-word could just be markdown. The vast majority of web content could just be markdown. This would save the modern world petabytes of XML bloat.

If you need something fancier, either use a vector format or do fancy client-side styling.

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