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.

Thcdenton , in How I date

My shoes were already off.

Iheartcheese ,
@Iheartcheese@lemmy.world avatar

( ͡° ͜ʖ ͡°)

Knoxvomica ,

LOOK AT MY CROOKED TOES

Iheartcheese ,
@Iheartcheese@lemmy.world avatar

Oh I’m looking

Ephera , in How big is your desk?

Early on in my career, I had to do a project in Python, together with another junior. Neither of us had any clue how to handle Python and he was on Windows, so, if I remember correctly, he had to install some dependencies from Pipenv, others from Conda, and his setup would break every two weeks in novel ways.

Eventually, we became quite good at installing a working setup, but correctly removing the broken setup was a pain. Often times, I thought that just reinstalling the whole OS would be quicker. 🫠

ignotum ,

Every now and then a new hire comes along with a windows pc, every time they decide they want to try to get everything working on windows, after a week they give up.

On linux it’s one pip install and you’re done

WalrusDragonOnABike ,

On linux it’s one pip install and you’re done

Isn’t that how packages/dependencies work on windows as well? Once I got pip updated, I’ve never had any issues with it.

ignotum ,

No clue, all i know is that i never have to do more than that, and noone has managed to get it working on windows 🤷‍♂️

When i started learning programming, everything was always a pain to set up, needed to install weird IDEs from shady websites and they only worked half the time. Then a friend showed me linux where stuff just worked out of the box, just slap some code in a textfile and compile it, i never looked back (was working in c/c++ but from what i’ve seen it’s not much better for python)

OsaErisXero ,

Since some wsl features started coming with windows out of the box python has been pretty trivial to install. It's a far cry from the conda/cygwin nightmare hell scape it used to be

Ephera ,

I believe, it’s because various Python libraries ship with a pre-compiled C/C++/Rust library. That library needs to be compiled for a specific target, and you often only get Linux x86_64 on Pypi, because that’s what most library devs use themselves.

Conda tries to solve that by providing a separate repository, where they do have builds for more targets available, but as a result, they have fewer libraries available in that repo. That’s why we needed to install some via Conda and some via Pipenv/Pypi.

HappyRedditRefugee ,

We have a development system for python on Windows at work, works very well also.

On linux is one pip install, buy maybe first do a venv^^

Aceticon ,

Last time I checked, it was way easier in Windows to have a VM running Linux just for Python, than to get Python to reliably work nativelly in Windows.

neo , in COMEFROM

COMEFROM is my go to function;

jimmy90 , in I Will Fucking Piledrive You if You mention AI Again

this is a fucking masterpiece

Taako_Tuesday , in Who lives in a Pineapple in the Algorithms Library for C? SpongeBob BinaryTreePants!

It definitely wouldn’t be the left image. With legs like those, you could never pull the pants up past the first (or I guess technically last) level of branching. It would either be the big pants or a large number of seperate, smaller pants on each of the lowest branches.

Carnelian ,

They could use pull-away pants that button up the back maybe

Tyoda ,

If the pants are stretchy they could fit one of the lowest (already pantsd) branches in each leg of the jeans, and easily pull it up. You need bigger and stretchier pants as you go up the tree, though.

BassTurd ,

The max size of required pants stretch will be the standard size for the right picture, since each leg already wraps half of the tree. That confirms viability at least, so now I think it’s down to comfort, and does the stretch retract in a restful position, or does stay all loose and cumbersome?

NeatNit ,

are the legs not allowed to be detached even for a moment for maintenance?

lugal ,

Have you ever seen a binary tree grow? Maybe they put the pants on each level while it is the lowest one before the next level grows

umbraroze , in Stop comparing programming languages

JavaScript is powerful

Old joke (yes, you can tell):

“JavaScript: You shoot yourself in the foot. If using Netscape, your arm falls off. If using Internet Explorer, your head explodes.”

bolexforsoup , in Corporate America is Just Office Space in Real Life

“AI” is great for first drafts/seeing a different wording, and automating very tedious crap. For instance, I really like taking proposals I write, dropping them into ChatGPT and saying “write me a 200 word executive summary,” then taking whatever it spits out to start making my own.

“Co-pilot” is a great way of thinking about it. I have no idea if that actual product is any good, but I know when I started thinking of AI tools as kind of a copilot of sorts, it made a lot more sense to me. It illustrates the limitations as well. Though I’d say more it’s more accurately “assistant to the pilot.” If you take me out of the seat, it can’t drive the vehicle and everyone will be upset with the results

Too many companies are falling for the loudest marketing in the room when it comes to AI. They see a shiny, perfectly curated demo and go “huh that seems neat we should do it” regardless of its relevance. They’re looking for shiny features and add-ons. What they should be thinking about is the very tedious, particularly manual tasks that eat up an inordinate amount of their time on a weekly basis. The AI solutions they should be looking for are ones that reduced or eliminate those tasks.

AI can be very useful at saving time. Too many people are using it as a solution in search of a problem. I think the best application for AI involve our day-to-day work, not consumer facing solutions.

ripcord ,
@ripcord@lemmy.world avatar

Yeah on the “assistant” part. An actual copilot would be fully able to fly the plane.

kratoz29 , in Happy 30th birthday to RFC 1631 ("NAT"), the "short term solution" we all rely on

Ah, how to forget the first obstacle in my hobby self hosting projects, the damn CGNAT…

“Just open the wireguard port bruh”

No my friend, I don’t think that is gonna cut it.

(Thankfully Zerotier and Tailscale work for me).

doubletwist ,

I have the same issue (TRIPLE NAT’d! One of which is the CGNAT). Unfortunately I have external family that accesses from media boxes/TVs so those won’t work for me.

Thankfully I was able to get a small VPS server for $2/mo and set up some reverse tunnels with auto-ssh. Seems to be working fairly well so far.

All that said, I longingly look forward to the future when I don’t have to worry about NAT.

CedarMadness ,
@CedarMadness@midwest.social avatar

What’s really crappy is that my ISP which used to give me a public ipv4 and also supported ipv6 2as bought out, and now I’m on cgnat and ipv6 support has disappeared.

Fuck metronet, it’s not even cheap anymore

KillingTimeItself , in Absolute legend

this is the first real 100x developer.

theneverfox , in What it's like to be a developer in 2024
@theneverfox@pawb.social avatar

I feel like I’ve been going crazy, web searching as a developer has become a daily nightmare and all the devs I ask are like “yeah, maybe it’s gotten a bit worse? Haven’t really noticed”

bolexforsoup , (edited ) in What it's like to be a developer in 2024

spoilersdfsaf

bhamlin ,

The S means sales

Scribbd ,

Full for Sales Extraction Optimization

mindbleach ,

E ruined themselves. They push generic garbage on certain keywords, no matter how specific the rest is.

fibojoly , in I still don't get buffers

Y’all haven’t heard of Windows clipboard history? Windows + V will change your life, I tell ya!

dariusj18 ,

Last I checked you have to enable it, which is annoying.

suy ,

Meanwhile, this was a feature on KDE-land since Klipper, which goes back (as far as I know and if I remember well) to KDE 3 or sooner.

dariusj18 ,

There have been third party clipboard managers forever in windows, which is kind of funny because that is almost more like the unix philosophy than expecting the UI system to handle it all.

suy ,

Klipper was entirely a different program, process, etc. that was using the system tray. Nowadays it seems to be a plasmoid in the system tray. How can that be less of a UNIX philosophy than the Windows alternative? Because it’s developed by the same community that makes the shell? That doesn’t make sense to me.

dariusj18 ,

Then it’s not really an apt comparison as the two are comparable. I had assumed based on context we were talking about our of the box functionality from KDE, but if it’s not, then KDE and Windows had equivalent lack of clipboard history without extra tools installed.

capital ,

You use it once, it asks if you want to enable, and you click literally one button.

MHanak ,

To be fair it may be a security concern if someone is copy pasting passwords

dariusj18 ,

I was going to mention that was a potential issue

Mbourgon ,

Yeah, it floors me that it doesn’t look see a high-entropy 8+ character strings and not keep it.

fibojoly ,

Keeping their admin password in the history so they don’t have to alt+tab to their Secret Server webpage? W-who would do such a thing?!

ZILtoid1991 , in The easiest problem

Then you realize your code is undebuggable because half the functions and variables have single-letter names or called foo, bar, baz, etc.

Hazzia ,

Especially when you reuse each of those names for all the scopes you have

ObsidianNebula ,

I have a somewhat related real world story. I had a client that was convinced that tons of people were going to decompile their application and sell their own version of the program, so they insisted that they needed their code obfuscated to protect company secrets and make it harder to reverse engineer. I tried explaining to them that obfuscation wasn’t that big of a deterrent to someone attempting to steal code through reverse engineering and that it would likely cause some issues with debugging, but they were certain they needed it. Sure enough, they then had a real user run into an issue and were surprised to find that their custom logging system was close to useless because the application was outputting random obfuscated letters instead of function and variable names. We did have mapping files, but it took a lot of time to map each log message to make it readable enough to try to understand the user’s issue.

Johanno ,

This is why you obfuscate after you code. Just obfuscate the release build. And logging may at that point be thrown out of the window anyway

ObsidianNebula ,

It was obfuscated only in the release build. The issue is that they have a system to send certain logs to an API so they can refer to them if a user has an issue that needs further investigation. Unfortunately, their target audience is not very tech literate and have a hard time explaining how they got into a situation where they experienced a bug, so the remote logging was a way to allow us to try to retrace the user’s steps. Some of the logs that get sent to the API have JSON values converted from class data, will refer directly to class names, etc, and those logs had the obfuscated names.

Johanno ,

Well then you are fucked.

The question is if nobody else has access to the logs, then obfuscation is stupid

AnarchistArtificer ,

I was learning python as a wee scientist in training, and my variables were beyond dreadful. I tried naming a list “list” and the interpreter told me I couldn’t, so I opted for “listy”. When I needed to name a new list but listy was taken, I’d often resort to “listyy”.

Scientists who work with computers without having much (if any) targeted training on how to code can write the most horrendous programs.

DarkSurferZA , in The easiest problem

Gotten even easier after X became a registered trademark. Now the only choice we have left is i. Or ii if you need more variables

Cethin ,

“j” is what you’re supposed to use if you need another index variable after using “i”.

Bougie_Birdie ,
@Bougie_Birdie@lemmy.blahaj.zone avatar

Okay, say you’ve got four inner loops (a crime on its own, I know), do you use i, j, k, l or i, j, k, ii?

cbazero ,

lIIl, IIIl, lIlI and IllI

DarkSurferZA ,

This is the way

xlash123 ,
@xlash123@sh.itjust.works avatar

To the person who decided I and l should look the same in fonts, I wish you a pleasant eternity in hell.

lars ,

Imagine if your username were iars. Awful.

ben_dover , in Any Volunteers

fuck idea guys. an idea is worth nothing until you actually put the work in

SupraMario ,

I have this idea of how to solve the world’s energy problem…ok ok just hear me out… nuclear fusion…just need some smart science nerd to figure it out. Any volunteers?

nexguy ,
@nexguy@lemmy.world avatar

I’m a rat scientist and want to take advantage of your idea.

mynameisigglepiggle ,

Meta af

veni_vedi_veni ,

I loved The Onion’s parody of TED Talks where an Idea guy is giving a presentation.

tweeks ,

Sharing ideas can definitely be worth something when it leads to something actual original/concrete/useful, but on another level.

Most ideas these “creatives” come up with are neither of those + they are not willing to put in some effort to solidify the idea themselves.

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