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.

programmerhumor

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

kameecoding , in question, When were programmers supposed to be obsolete?

“AI” is just another productivity tool, copilot let’s you remove some of the tedious patterned work you do, like writing all those asserts in Unit tests, it’s decent at guessing html structures too.

So basically it makes a developer faster, but then so do stuff like a good IDE, good plugins for your workflow, etc.

i saw somewhere an interesting take, even if AI could generate all the code for all the edge cases, you’d still need people to translate what business wants for the AI to understand properly.

Writing code is already a small part of a developers job, completely eliminating it won’t eliminate a developers job.

JakenVeina ,

Even better quote, I love using this one.

“So, with AI writing code for us, all we need is an unambiguous way to define, what all our business requirements are for the software, what all the edge cases are, and how it should handle them.”

“We in the industry call that ‘code.’”

AnarchistArtificer ,

That’s fun, I’m stealing that

kameecoding ,

Yep, that’s the one I was paraphrasing, thanks for the exact quote

JakenVeina ,

I mean, I’m paraphrasing, too.

Andrew15_5 , in Hashtag noob life
@Andrew15_5@mander.xyz avatar

*non-windows-fans /s

(I hate C# and I hate .Net)

kogasa ,
@kogasa@programming.dev avatar

.NET Core is highly multiplatform. Windows still gets preferential treatment but there are few obstacles to .NET development on Linux. It’s a nice ecosystem that’s increasingly open source. All that said, obligatory fuck Microsoft.

Andrew15_5 ,
@Andrew15_5@mander.xyz avatar

All this multiplatform stuff is bullshit according to my experience. The dotnet CLI is slow, files still use CRLF line ending, I also remember CLI autocompletion was not great. C# has only one working LSP server implementation that sucked ass in VS Code and Neovim. It’s kinda like Java DX, but at least with Java the DX is equally isn’t great on any OS. Maybe I like C# more than Java as a language, but I hate everything else. I also hate Java, btw.

mypasswordis1234 , in Gender.js
@mypasswordis1234@lemmy.world avatar

Can anyone explain it to me, please? 🥹

Tyfud ,

Const keyword means constant, a value that won’t change after the application has been compiled; this allows for certain optimizations.

Let keyword is a JavaScript variable that is safely scoped down to the method or function level.

Var keyword is generally discouraged in JavaScript, because it’s a global declaration. The value of it could be available anywhere in the application, and the app might have collisions.

So, the meme is, shifting from a constant, unchanging gender, to the middle where gender is defined and scoped to a local level, to the extreme, where gender is variable globally.

Sarsoar ,

In JavaScript, a const variable is an immutable constant that you cannot reassign. Similar to how many conservatives think of gender, an intrinsic fact of a person that you can only read, but never change.

The “let” keyword declares a variable in a local scope, the nearest surrounding curly braces. It can be changed in that scope, but does not exist anywhere else. I assume this is meant to concede that gender is a spectrum and your presentation can kind of wiggle, such as between “very manly” and “not as manly” but still a man. Like, a stereotypical lumberjack and a stereotypical twink are both men so there isn’t “one way to be a man” but a conservative might say " but they are still men, you can change how you present but you can’t change sex".

The “var” keyword lifts the variable definition to the top of the function, or “hoists” it up. A variable declared with var can be accessed and modified anywhere after the block it was declared in. Gender is a spectrum and it can be reassigned anywhere, at anytime, to anything.

DominicDeligann ,
@DominicDeligann@lemmy.ml avatar

The “var” keyword lifts the variable definition to the top of the function, or “hoists” it up. A variable declared with var can be accessed and modified anywhere after the block it was declared in. Gender is a spectrum and it can be reassigned anywhere, at anytime, to anything.

similar to how most liberals think of gender

TheBill2001 ,

I thought this was obvious.

docAvid ,

I interpret it a bit differently. After all, a variable declared with var isn’t really more capable of being rebound, or bound to more values, than one declared with let. However, it is possible, with var, that setting a variable in one place could change it unexpectedly in another, so Rose Noble coming out as trans could cause Jordan Peterson to also suddenly be a woman.

Funkytom467 , in Gender.js
@Funkytom467@lemmy.world avatar

Anyway you put it it’s not gonna please non-binary people.

flying_sheep ,
@flying_sheep@lemmy.ml avatar

<span style="color:#323232;">const gender = 0.5
</span>

Non-binary, non-genderfluid

girsaysdoom ,

Ooh or “gender = null”

CanadaPlus ,

That would be agender.

girsaysdoom ,

Good point!

QuazarOmega ,

It’s not a gender tho… Or is it?

CallumWells ,

Null was a mistake (as per what quite a few people say) XD

docAvid ,

There are two kinds of “null” that are often called out as mistakes, you may be thinking of. One is the null reference, as found in languages like C and Java, which Tony Hoare, who created it for ALGOL back in the sixties, has called his “billion dollar mistake”. The other is the three-valued-logic of null in SQL, which is almost as bad.

There’s nothing wrong with “null”, necessarily, in other contexts, although I do think a more clear name for whatever it means in any given context might be better.

lugal ,

That’s 0.1 2 so it’s still binary

Checkmate atheist

Funkytom467 ,
@Funkytom467@lemmy.world avatar

Yeah that’s what i meant, well…

I guess binary is better interpreted as a boolean than being actually written in a binary base.

They forgot what it’s like coding in binary i tell you that!

HumanPerson ,

Now write it in IEEE754 without using the internet.

lugal ,

I can’t comment anything without the internet. Checkmate atheist.

HumanPerson ,

I didn’t say you had to write it on Lemmy. Write it on paper.

lugal ,

I did. Prove me wrong

HumanPerson ,

The third bit is wrong. Prove me wrong.

IzzyScissor ,

NB here - this is hilarious.

CapeWearingAeroplane ,

People not getting this… computers are inherently binary (until quantum computers become truly viable). That’s the joke.

pipe01 , in Copilot is starting to feel like a real programmer.

Crazy? I was crazy once

squigglycunt ,

They locked me in a room, a rubber room

Persen ,

A rubber room with rats.

gazter , in Emails are hard

Is it possible to put images in an email without them showing up like this?

funkless_eck ,

yeah it uses this really neat semantic rendering programming language for serving structured documents across servers

It’s a bit tricky, but anyone with at least a Masters in CompSci should be able to parse some of it enough to get the gist. Bear in mind that the “source” is abbreviated to src, and “image” similarly. The rest is coding that gives the computer instructions, you’ll also need to replace FILENAME in the code with the actual filename. It goes like this


<span style="color:#323232;"><img src="FILENAME" /> 
</span>

Let me know if I can explain it more clearly.

gazter ,

I feel like the level of snark in your reply is… High. It doesn’t make for a pleasant interaction, and it doesn’t help make lemmy a nice place to be.

So, if the image you want to put into your email is not hosted somewhere, what’s the best way to go about this, ensuring compatibility?

qaz ,

I don’t think it’s really directed at you and moreso about making fun of the company who didn’t put in any effort to make it show up correctly.

funkless_eck ,

I’m just being a silly billy it’s not directed at you.

It’s more like “ah if only there was a simple solution that could’ve been used.”

All images are hosted somewhere, I would consider an intern fresh out of college know how to correctly add an image to an email, or at least only be told once if somehow they had never seen this before.

_edge ,

You can have inline images that are only shown as part of the rendered HTML. Don’t ask me how, but you’ll find some examples in your inbox.

lichtmetzger ,

So, if the image you want to put into your email is not hosted somewhere, what’s the best way to go about this, ensuring compatibility?

You can base64-encode the image file. It’s super-jank, but it works, even in Outlook.

Example: www.base64-image.de/tutorial

dgriffith ,

Let me know if I can explain it more clearly.

Multi-part MIME containing inline images is actually what you’re looking for and it’s fairly easy to implement.

Here’s an example. They handwave over the html section that actually refers to the inline images that they embed, but that’s the basic layout you need.

…microsoft.com/…/7a08211a-760a-41af-8cab-0acf462c…

lung , in Hashtag noob life
@lung@lemmy.world avatar

Potato salad

beckerist ,

I miss tahous garbage plates…

Socsa , in What You're acc to your fav language

Anyone who says Matlab is their favorite programming language is very misguided

I_Has_A_Hat ,

I mean, compared to LabView…

youCanCallMeDragon ,
@youCanCallMeDragon@lemmy.world avatar

How dare you speak that name to me

Socsa ,

At least with labview there’s all sorts of NI proprietary shit which makes instrumenting labview equipment slightly less torturous. Matlab is literally just expensive Python inside the world’s worst GUI and one indexing so it’s annoying to port algorithms out of it

latesleeper ,

It’s the only programming language I really delved into. I haven’t had to program since college. I found it very useful.

thisisawayoflife , in Beginning with Kotlin and it's...

Kotlin is the wave of the future. I still use Java, but I’m transitioning into using Kotlin for backend services. The devs are my work have been moving the app codebase to Kotlin for a couple of years (over a million lines) and it’s pretty nice. You reduce a lot of boilerplate and the code can be a bit more dense.

WilliamsStark OP ,

Ok, so if it’s the new standard then I should go with Kotlin. By boilerplate, do you mean a part of the code that makes java a little too heavy?

Aurenkin ,

I don’t know if this is the proper definition but I think of boilerplate as the code that’s not directly related to business logic. An example I can think of in Java that’s a lot nicer in Kotlin is setting all the instance variables in the constructor.

The names and types of the variables are important and useful for understanding the business logic but the actual constructor definition doesn’t tell you anything if it’s just assigning the constructor parameters.

lobut , in Being Agile

It’s important to BE Agile than DO Agile.

Dave Thomas one of the founders of Agile

YouTube: Agile is Dead, long live Agile (40m): youtu.be/a-BOSpxYJ9M

YouTube Short Clip about Agile: youtube.com/shorts/NFIFpgaH6fM?si=D8QFStFfgPAkR17…

brisk , in Being Agile

Scrum that’s not adapted to your needs isn’t scrum.

Blackout , in Being Agile
@Blackout@fedia.io avatar

The whole one size fits all approach to projects is such a waste of time. You spend just as much maintaining it as you do actual work. Hive and those apps can kiss my derriere.

mattreb ,

Exactly, even when applied correctly, many projects will just not work with scrum. Managers that sponsor ONE approach have already failed…

jubilationtcornpone , in What You're acc to your fav language

My relationship with JavaScript is more like an abusive relationship that I can’t escape from because it pays all the bills.

theherk ,

It’s worth going hungry in the dark. Lawyer up and hit the gym. JS doesn’t deserve you.

MajorHavoc ,

And a Python developer is born!

Source: I moved on from an abusive relationship with JavaScript to a healthy not-at-all-controlling equal partner relationship with Python. And four spaces makes perfect sense, once I really considered Python’s point of view…

theherk ,

You don’t have to go from crazy to slightly less crazy. You could try living that lean compiled life.

DrJenkem ,
@DrJenkem@lemmy.blugatch.tube avatar

We can go leaner. Why use a compiler when an assembler is all you need?

theherk ,

Good point. Why stop there?

xkcd.com/378/

FierySpectre ,

These days that’s still python

traches ,

Strong types are really just healthy, clearly defined boundaries

orca ,
@orca@orcas.enjoying.yachts avatar

You just described my life. JS is hell.

naught ,

You guys are using typescript right? … right?

jubilationtcornpone ,

Yes. However, The same cannot be said for every other dev on the project.

Typescript helps a lot but JS still lacks a lot of the functionality, and especially the tooling, available in other frameworks.

Going from ASP.Net Core to NestJS is like digging holes with a shovel instead of a backhoe. It feels like a huge downgrade. And then half your time is spent dealing with the incredibly finicky dev environment.

I am not impressed.

naught , (edited )

Interesting! I have built several projects entirely in TS or with react/next frontends and I enjoy the DX a lot now that I have the experience with the overwhelming breadth of options out there. It was very frustrating and overwhelming for me at first though. I found Dockerizing to help with consistency and finickiness.

Just curious, what are you missing most from asp.net core?

fidodo ,

Try typescript

BiteSizedZeitGeist , in Beginning with Kotlin and it's...

I did a bootcamp for Java, and lucked into a junior Android dev role, and man, I’ve really grown to love Kotlin. It really does have all the things I liked about Java, like type safety, but it’s so much more concise. It was pretty confusing at first, a lot of Kotlin is just syntactic sugar, and you kinda need to know what Kotlin is cutting out to make sense of things. But once I got into it, it just feels so much faster and expressive than Java.

I’m really happy when I see Kotlin being adopted outside of Android, like in backend services and such. But that rarely happens.

WilliamsStark OP ,

Interesting. Thank you for your feedback. I should go all the way with Kotlin then.

flashgnash , in My debugging experience today: Quantum Debugging

Clearly you should just ship it with the debugger and call it a day

phorq ,

Exactly, who would put a rebugged version into production anyway?

flashgnash ,

That would just be irresponsible we want fewer bugs not more of them!

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