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.

intelisense , in MySQL moment

Should have used Postgres…

titey ,
@titey@jlai.lu avatar

True true…

deegeese , in Company forgets why they exist after 11-week migration to Kubernetes

I think they’re describing my company’s upcoming GCP -> AWS migration.

slazer2au ,

Hope you are getting a rebate on those egress fees.

erre , in Normal day in the life of a developer
@erre@programming.dev avatar

Been doing a whole lot less of that now that copilot is up and running. Didn’t expect it to be such a productivity booster tbh.

keefshape ,

Right?!

Landless2029 ,

… I tend to get down votes when I say copilot has improved my work a ton.

Most of my code isn’t ground breaking shit. I gotta write a script for my task. It’s 90% copying with 10% modifications for my use case.

It also does comments for me…

I wrote a script the other day in like 30 min tested working that would’ve been 2 hrs easy.

Hamartiogonic , (edited )
@Hamartiogonic@sopuli.xyz avatar

In my experience, Copilot does a fairly good job when you already know what you’re doing, but can’t be bothered to write the code yourself.

For example, basic stuff like read data from that file, use dplyr, remove these columns, do these calculations, plot the result using ggplot2, label the axes this way, use those colors etc. Copilot gives you the code that does roughly what you want, but you usually need to tweak it a bit it to suit your preferences. Copilot also makes absurd mistakes, but fixing them is fairly easy. If this is the sort of stuff you’re doing, copilot can indeed boost your productivity.

However, if you don’t know how to do something a bit more exotic like principal component analysis, and you ask copilot to do the job for you, expect plenty of trouble. You may end up on a wild goose chase, using the wrong tools, doing unnecessary calculations and all sorts of crazy nonsense. When you know what you’re doing, you can ask a very specific thing. When you don’t, you may end up being too ambiguous in your prompt, which will result copilot leading you down the wrong path.

You can do it this way too, but before implementing a single line of that garbage code, you absolutely have to ask copilot a bunch of questions just to make sure you really understand what you’re doing, what the new functions do, where do you really want to go etc. You’re probably going to have to tweak the code before running it, and that’s why you need to know what you’re doing. That’s the one big area you can’t outsource to copilot just yet.

But is it still faster than reading the documentation and building your own experimental tests? If you spend an hour and get a pile of broken garbage, then certainly not. If you spend a bit more, ask plenty of questions, make sure you know what you’re doing, then maybe it is worth it.

Landless2029 ,

I 100% agree. I especially love when copilot literally just starts making up shit that doesn’t work or doesn’t exist. Like it can’t be wrong. It just freaking guesses… God forbid it can’t admit it doesn’t have enough data to answer the question.

Best part is when you say “that command doesn’t exist” it’s like “I apologize. Here is a real command to accomplish your task”

SMH

Again, to your point, I agree that copilot is amazing if you already know how to write the code you want. We’re smart enough to know that the suggestions will work for our task. It’s definitely not smart enough to replace you

EatATaco ,

Yeah, I was lucky that I snuck into my company’s pilot program for it.

I’m impressed at how often it predicts what I’m about to do. The code almost always needs a slight bit of editing, but it almost always at least shaves a bit of time off of whatever task I was doing.

I no longer go straight to stackoverflow, I always ask the copilot first. Sometimes even just phrasing the question in natural language, something I wouldn’t do it trying to find it via search or stackoverflow, is kind of like rubber duck debugging, and I’ll come up with the answer while writing it out.

Landless2029 ,

My fav thing is two things.

  1. It reuses MY OWN CODE STYLE. So if I ignore a suggestion and setup a try catch in my own quriky way it’ll actually reuse it later on when I’m scripting. This works best when you add comments for the sections you write FIRST. So you comment # create array for x data it’ll do that or try catch for query it’ll give you a suggestion for the next block right away.
  2. DEBUGGING. github copilot can see your terminal and script so it’ll give you a detailed breakdown and suggestions. Blew my mind the first time.
Tangent5280 , in You could say, I am an odd person!

Alright, I have no idea what this means.

rufus , (edited )

The axis aren’t labeled properly. That’s likely why we can’t make sense of the diagrams.

Everyone elses life oscillates over time between positive and negative… OP’s life’s Y is X cubed. And it somehow contains big blue dots on the whole numbers… They consider that odd. And I’d agree.

404 , (edited )

First function is a sine wave, commonly written sin().

Second function is a cubic (“square”?) polynomial.

Joke:

Everyone else’s life: Sin.

My life: Square.

Edit: as pointed out, it’s not really square

rufus ,

It’s not square, though, but cubed. x^2 looks very different. And 2 isn’t an odd number (see title.)

But if the lower diagram was x^2 (and the axis were labelled correctly) I’d say that’s a proper joke 😃

404 ,

Haha yeah it was the only way I could make sense of it…

rufus ,

I like your joke better 😆 However… If the x-axis was time, you’d have to explain the negative part to me. Or stop at least at -9 months…

DreadPotato ,
@DreadPotato@sopuli.xyz avatar

I got “everyone else’s life has ups and downs, mine is just up, up, UP!” from the graphs 🤷‍♂️

AVeryCleverName ,

Same, i thought it was about having a manic episode or something

Kolrami ,

I’m not sure about the top one. He could be saying everyone is living a life of sin (like 402 said).

The bottom one is definitely saying he lives an odd life because that’s literally an odd function. i.e.

f(-x) = -f(x) for all x

mumblerfish ,

From the placement of the axis in the first one that function is odd too.

JoeKrogan , in FLOSS communities right now
@JoeKrogan@lemmy.world avatar

I refuse to use discord.

0x2d ,

i still use it since it’s very useful to join technical communities and such

but, i use it with aliucord on mobile and vencord on my computer(which blocks all telemetry, has some useful plugins)

GBU_28 ,

I use discord for chatting with friends, and voice chatting for games. Nothing important should happen there

OofN ,

Very well said - opsec is definitely important.

GBU_28 ,

Honestly I think the burden of context rests with the user. This is unfriendly, of course, but this is one of the times you are reminded the world doesn’t care. Nothing is “nice”. Security/privacy/ad intrusion is the individual’s burden.

OofN ,

I’d even argue that most platforms are directly adversarial to a users individual privacy. User data is such a hot commodity these days that it’s even beyond planning your own privacy, but you’re essentially farming out your data for free.

Disclosure: I use Discord and plenty of similar apps, but it’s important to protect yourself.

GBU_28 ,

Very true

EngineerGaming ,
@EngineerGaming@feddit.nl avatar

I’d prefer Mumble for voice chat when gaming.

Randelung ,

Rolling your own ts3 server with old client gang.

uis ,
@uis@lemmy.world avatar

Mumble

Randelung ,

Oooh I forgot about mumble!

LastYearsPumpkin , in Me after I got fired

But rand() is a number between 0-1, so it will never be >10

Basically this is just True = False

Xyre ,

I’m not sure what’s worse. The engineer that thought this would work or the company that doesn’t do code reviews.

perviouslyiner , (edited )

Put it in a package they depend on - nobody reviews those

CodexArcanum ,

Pick a library you already use with many sub-dependencies. Make a new library with your evil code. Name it in line with the step 1 library. Oh hi there “Framework.Microsoft.Extensions.DB.Net.Compatibility” you couldn’t possibly have anything bad going on in you, plus you sound really boring to review, I’m sure it’s fine.

genfood OP , (edited )

The C standard library function int rand(void) returns a pseudo random integer between 0 and RAND_MAX (which should be at least 2^15, depending on the actual implementation).

Depending on the distribution of the pseudo random numbers, it will be true for over > 99% of its applications.

Source: trust me bro, and C++ reference

Furthermore, there is no integer between 0 and 1, but I guess you mean a real number between 0 and 1.

ook_the_librarian ,
@ook_the_librarian@lemmy.world avatar

You’re correct in a lot of languages; Excel comes to mind. Just that’s not how int rand() works in C.

Sorry, I don’t why you’re getting snark and even being accused of using the word “integer”.

Lmaydev , in 5/5 stars

As a side note, I love Winget. It took them long enough to add it but it id so handy.

Anti_Face_Weapon ,

Yes! Why did it take them so long?

allywilson ,

It was handy until I realised it installs to the user profile instead of system-wide. Reverted to chocolatey.

jaschen , in What I want to become Vs What I do

I can’t even build python scripts…

sag OP ,

You can lie on Internet.

jaschen ,

I can’t even lie on the internet. I’m worthless.

nodsocket ,

My python scripts won’t compile… I’m using GCC it keeps giving me errors :(

jaschen ,

My ChatGPT just told me give up and run Windows or get an iphone.

nieceandtows , in Bug Fixing

Just had that happen to me today. Setup logging statements and reran the job, and it ran successfully.

TurtleTourParty ,

I’ve had that happen, the logging statements stopped a race condition. After I removed them it came back…

Hupf ,

Thank you for playing Wing Commander!

xia , in Programming: The Horror Game

With a good eye-tracker and some tweaking, this might be usable…

Aatube ,
@Aatube@kbin.social avatar

...and OLED screens the price of LEDs...

taanegl , in ifn't

I’m just hoping this paves the way to code with Southern dialect


<span style="color:#323232;">iffun is == true
</span><span style="color:#323232;">iffun ain't == false
</span>
timetravel ,

May I introduce you to the joys of and creating your own horrible sub language

frezik ,

That reminds me of an old paper about how to create a compilable C program out of old game ROMs. Decompile to assembly. Implement a bunch of #define statements that implement all the ASM statements. Now compile it to a native binary on whatever platform.

Won’t likely be faster or more accurate than regular emulation methods, but it’s a neat idea considering that the source code on all this stuff was lost a long time ago.

peopleproblems , in The Perfect Solution

oh Jesus

did this come full circle?

we used python to query chatgpt to decide if a number is even or odd and return true or false?

Ephera ,

True or false or null.

Mathematicians didn’t know it yet, but numbers can now be even, odd or neither.

dan ,
@dan@upvote.au avatar

True or false or null.

Ah, yes, a three-state boolean.

lars ,
Natanael ,

Non integers certainly aren’t even or odd, so yes?

Ephera ,

Yeah, I’m chalking that up to Python’s untypedness. I was going to write “integers”, but technically that function takes a “num”, whatever that is.

For all we know, it could be a string, asking ChatGPT to hack the government. Is that even? Probably no. Or None. Or T-Rex. Without reading the entire function, we don’t know that it’s not returning T-Rex.

Thankfully, it doesn’t matter. Just stick the result into an if-else, then False and None will land you in the else-branch. And both True and our Truthiness-Rex will land you in the if-branch. Just as Guido intended.

…this rant brought to you by trauma.

mrkite , in what the hell is happening in ultramarine linux
@mrkite@programming.dev avatar

One of the people reverse engineering the M1 GPU for Asahi Linux is a catgirl vtuber: www.youtube.com/asahilina

gravitas_deficiency , in no.. just no

I want to hate this. I really do. But the problem is… I think I like it.

naonintendois ,

But how do I know if the WHERE clause is AND or OR?

gravitas_deficiency ,

Fair. The constraint nodes should probably exist under an And node.

lorty ,
@lorty@lemmygrad.ml avatar

This needs a bit of work but it could be interesting

cupcakezealot , in no.. just no
@cupcakezealot@lemmy.blahaj.zone avatar

please kindly send all javascript into the sun and explode it

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