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.

MrMamiya , in It worked on my system

Ok I’ll do it. I’m here from hot, I’ll admit it. Can you explain this to me in language I’ll understand? I have just a little understanding of programming but decent comprehension skills.

Vamanos ,

Docker containers in programming are reusable environments. Basically instead of manually setting up an operating system environment from scratch - you give your program this extra layer where you specify each and every thing that will be on the environment.

If your program was always tested on windows 10 instead of windows 9 - you basically have a way to guarantee it always has windows 10. If your program always used x version of Linux a boom, guaranteed. It adds some complexity but reduces and removes randomness from the concept of deploying applications you’ve created.

MrMamiya ,

Very nice, added info on how it affects deployment. Thanks!

greenteadrinker ,

LK-99 is a room temperature superconductor. It’s a big deal, because it means that energy can be transferred with 0 loss and it doesn’t require loads of cooling to maintain that property (unlike “traditional superconductors” that need liquid nitrogen and other cooling to have that property). An analogy would be like if you got paid all of your paycheck all the time instead of having taxes taken out. The money you get paid is energy and the loss is taxes

There’s controversy that LK-99 can’t be replicated

Going over to the programming side, sometimes you’ll work on a feature and when others go test it, it doesn’t work. A common excuse heard is “well, it works on my machine”. Docker containers solve that problem by essentially (but not really) making a copy of “my machine” and letting people run the program/feature on that copy

So the joke is, if the korean researchers were able to create it in their lab environment (their machine), why don’t they just make a copy of their lab and let others use it

this is a very gross oversimplification, so feel free to suggest any corrections

eestileib ,

LK-99 is allegedly a room temp superconductor.

I think it’s a mistake that got amplified by fraud at other locations.

newIdentity ,

And not everyone was on board of publishing that paper yet (even tough the research has been going on since 1999 - theirfor LK-99)

ultimate_question ,

Science x Capitalism

ImpossibleRubiksCube ,

I don’t really see what capitalism has to do with this.

WhiskyTangoFoxtrot ,

Don’t you know? Greed was invented in the 18th century.

ImpossibleRubiksCube ,

You’ve totally lost me.

lambda ,
@lambda@programming.dev avatar

Is Korea capitalist?

CurlyChopz ,

Ever heard of “Samsung”

Axium ,

South Korea is capitalist, North Korea is socialist. People often refer to SK as just Korea either as a statement on the legitimacy of the DPRK or simply because South Korea is far more globally relevant.

MrMamiya ,

Excellent, thank you for nailing it!

cipherpunk ,

If you know what a virtual machine is, a docker container is like a virtual machine that has a curated environment for running a specific program.

To get more technical, they are distinct from VMs in that they share the host machine’s kernel, so they are not as isolated as a VM. Docker (the program used to build or deploy Docker containers) has an internal network it manages, mostly automatically, which contributes to the ease of deploying containers and having the curated environment that makes containers work out of the box on whatever host they’re deployed.

So let’s say you wanted to run a Wordle clone website. You could find a “docker-compose” file online, change the configuration parameters to your liking, tell Docker to boot it, and the application and all its dependencies will be downloaded and built into a ready-made server with Wordle, the same as it works on every other machine with Docker.

MrMamiya ,

Thanks this is great and I understand it.

vsis , in Linux Best Practices
@vsis@feddit.cl avatar

Pro tip: Run :(){ :|:& };: to activate the developer mode on Linux.

BlueMagma ,

I have no idea what this does, I will not try it to find out

isVeryLoud ,

Fork bomb

VinnieFarsheds ,
@VinnieFarsheds@lemmy.world avatar

I’ll just use a spoon then for dinner

isVeryLoud ,

Spoon bomb

prole ,

fork bomb

Did someone invite Ritchie over for Christmas dinner?

No? The Bear? Anybody…?

MostlyBlindGamer ,
@MostlyBlindGamer@rblind.com avatar

That episode made me rethink my ability to deal with stress. [shudders]

prole ,

So good though. The whole season is.

Swiggles ,

Define a function called : which runs itself and creates another fork of itself as a background job :&. After the function definition call the function (final :).

It’s easier to understand once you realize that : is a valid identifier. It is a simple mildly obfuscated fork bomb.

cheery_coffee ,

If you do run it, a reboot will fix it

cheery_coffee ,

It’s almost as esoteric as enabling it on Android, but just as likely a 6 year old will do it accidentally

MarekKnapek , in Java
@MarekKnapek@programming.dev avatar

Makes sense, how would you represent floor(1e42) or ceil(1e120) as integer? It would not fit into 32bit (unsigned) or 31bit (signed) integer. Not even into 64bit integer.

natanael ,

BigInt (yeah, not native everywhere)

1rre ,

I feel this is worse than double though because it’s a library type rather than a basic type but I guess ceil and floor are also library functions unlike toInt

abbadon420 , in When your shower uses GitHub more than you

I hate these unrealistic beauty standards

bruhduh , in I am a software developer at PornHub
@bruhduh@lemmy.world avatar

What’s the difference between man on man and fullstack tho?

gnutrino ,

With man-on-man you’re at least consenting to get fucked and they generally use lube.

FuglyDuck ,
@FuglyDuck@lemmy.world avatar

Depends. Man on man is generic.

Full stack is… you know. fullnstack

ICastFist ,
@ICastFist@programming.dev avatar

How big does a stack of man on man have to be in order to be considered fullstack?

FuglyDuck ,
@FuglyDuck@lemmy.world avatar

A full stack of pancakes is 5?

Klear , (edited )

You get more than $600 for fullstack?

sukhmel ,

It depends (mostly on the timeframe)

Lucidlethargy , in Just a dad helping out

It’s fine. It’s just 25 pages, but they want 20 unique designs since those are all primary/landing pages. All on a normal sized screen.

sik0fewl ,

And it must work on mobile.

UnderpantsWeevil , in Googling
@UnderpantsWeevil@lemmy.world avatar

I have multiple people in my IT department who henpeck when they type. If you don’t want him, please send the CV my way.

deus ,

You didn’t have to do us henpeckers like that

whoisearth ,
@whoisearth@lemmy.ca avatar

I will be honest as a late GenX it’s going to be interesting as my cohort retires because we were the last generation to remember before The Internet and grew up to understand the technology not just use it.

If you’re my age or older please make sure you’re teaching your young coworkers how to break things and put them back together without the aid of all the tools and resources they have at their fingertips now. Creativity thrives in adversity. Creativity is at risk when tools like ChatGPT are at their fingertips now.

/rant

Kedly ,

Counterpoint, image gen ai has afforded me far greater time and ability to access my creativity than I’ve ever had before it. Different people can be creative in different ways, and have different Muse’s for their creativity

whoisearth ,
@whoisearth@lemmy.ca avatar

Counter counterpoint. Without the fundamentals you will struggle in understanding your capabilities.

You could be a virtuoso in playing the piano but without understanding how to read and write sheet music you will be hampering your ability to learn other instruments. Note I am not saying you can’t. I’m saying it’s harder.

Kedly ,

Creativity isnt necessarily about skill level though, and while in the past you’ve NEEDED skill in order to fully access your creativity, as technology progresses that becomes less and less true. Different people get different things out of art and creativity, and for me, the final product is a huge part of the payoff for me, and before, for the type of art I like looking at, that would have required a multi year - lifetime investment in order to be able to achieve. Now, my skills in Photoshop alongside Stable Diffusion allow me to collage myself my costume designs in hours, which wasnt even possible for me to achieve previously. Similarly, this tech is likely to snag future people into an art path because they experience the joy of creativity enough that they then decide to learn the skills to bypass the limitations of Generative AI

whoisearth ,
@whoisearth@lemmy.ca avatar

There is of course a difference in that you’re talking about artistic creativity whereas I’m talking about programming creativity.

Your example works great for artistic creativity. On my side, not so much. I am fearful of people coding in python who do not know what they’re coding as an example.

Kedly ,

Yeah thats fair, I guess my example isnt very comparable to what you’re talking about

rekorse ,

Maybe.

It could also cause immense frustration when people realize that all the time they spent creating AI art is essentially wasted when it comes to learning a new skill.

It could give people false expectations about the effort needed to make art. It could flood the internet with AI art to the point where it hides individual artists even more, driving down demand due to over supply.

Also, you dont need to create stunning works to motivate people to create more art, the problem is people not accepting the learning process which involves a hell of a lot of mediocrity and failure along the way. AI tools are not going to improve the average persons perspective, who likely thinks you need to be born with a gift to be an artist.

Kedly ,

Once again, art means different things to different people. The process is important to some, but not to everyone. Being able to access creativity has never had fewer barriers to entry which means more people will find enjoyment in it instead of being put off by the previously inescapable barriers. Further, if your creating art for yourself, it shouldn’t matter if the market gets flooded and visibility gets harder. Those things are only important if you are looking to sell, and, well, welcome to capitalism.

rekorse ,

Creating art for yourself is a fiction. Doing nearly anything for yourself is a fiction. As much as some feel they prefer to be alone, noone lives in a bubble.

When you talk about barriers to entry for art, you really mean high quality art. Sure, perfectionists will be able to outdo their outsized expectations of themselves, briefly. The barriers to making art have been incredibly low for all of human history if you really are talking purely about the cost to begin making art. You and I can start cresting art with our hands right now. How much lower can the barriers be?

It seems to me you would find it easier to work on your perspective that prevents you from enduring the failure required to learn high quality art than to advise we steal all art globally and historically, combine it into a program using the energy of a large nation, and present it to you at your home over the internet.

But like you said, we all have our perspectives on what is important.

Kedly ,

“Creating art for yourself is a fiction. Doing nearly anything for yourself is a fiction. As much as some feel they prefer to be alone, noone lives in a bubble.”

Damn man, your life must suck if you do absolutely nothing for yourself, I dont really have anything else to respond to this with

"When you talk about barriers to entry for art, you really mean high quality art. "

I absolutely do not, most forms of art takes a shitload of hours invested to start producing anything that doesnt look like absolute garbage, the high quality stuff takes YEARS of investment yes, but even passable quality stuff takes a considerable time investment.

“The barriers to making art have been incredibly low for all of human history if you really are talking purely about the cost to begin making art.”

Which costs are you talking about? Because as I just said, the time costs are huge

“It seems to me you would find it easier to work on your perspective that prevents you from enduring the failure required to learn high quality art than to advise we steal all art globally and historically, combine it into a program using the energy of a large nation, and present it to you at your home over the internet.”

Ah there we go, twisting the wording to make the other side look bad morally. Nothing any of you have brought up I would classify as stealing. Thankfully, since I AM producing my art for myself, I could give a rats ass what people like you think since theres nothing you can do to stop me from making my art.

rekorse ,

What you call manipulating words is just a different perspective, neither of us is breaking any laws, and this is absolutely about morals. Your perspective apparently is that none of thus warrants any moral consideration at all. I disagree.

Of course noones trying to stop you, we are talking about why you use something and I wont, thats it. If you only care about what benefits you personally, of course youll butt heads with people who choose to apply a different methodology for what is good or bad. What was your point in even commenting on here, just fear you’d lose your new tool?

SparrowRanjitScaur , (edited )

Get off your high horse old man. Millennials were born into technology, molded by it. We live and breathe it, and also grew up in a world where things most definitely did not just work.

I think you significantly underestimate the ingenuity and problem solving abilities of the younger generations. My Gen Z coworkers are extremely smart and hard working and understand how things work just as well, if not better than older generations.

whoisearth ,
@whoisearth@lemmy.ca avatar

I said nothing about the ingenuity and problem solving. That’s not the concern. I also didn’t take any exception on work ethic or intelligence. You’re putting words in my mouth.

SparrowRanjitScaur ,

I never said that you said those things. You said you were the last generation to understand technology and not just use it, which is quite frankly ridiculous and untrue - especially for anyone with work ethic and intelligence.

rekorse ,

I think they mean that they were the last generation who was alive and learning about how things were built and innovated on, while newer generations won’t have that benefit.

They will be exposed to high level tools instead that automate a lot of the work which will make things easier for them but reduce understanding.

Thus, the newer generations on average will need to purposefully dig back into the past to learn what the older generations learned by just being around while it was happening.

These are just general trends though, its not going to be very practical to try to apply it to any individuals, or the group of people you work with.

chocosoldier ,

edit: replied to wrong user

Aceticon ,

Yeah, the tools are still there to figure out the low level shit, information on it has never been this easy to come by and bright people who are interested will still get there.

However growing up during a time you were forced to figure the low level details of tech out merely to get stuff to work, does mean that if you were into tech back then you definitely became bit of a hacker (in the traditional sense of the word) whilst often what people consider as being into tech now is mainly spending money on shinny toys were everything is already done for you.

Most people who consider themselves as being “into Tech” don’t really understand it to significant depth because they never had to and only the few who actually do want to understand it at that level enough to invest time into learning it do.

I’m pretty sure the same effect happened in the early days vs later days of other tech, such as cars.

rekorse ,

The comparison to cars is interesting, although cars maybe have peaked already and I doubt technology has.

I dont think proprietary information is helping much either. Makes young folk think they need to get a job at Google to work on something real and important.

whoisearth ,
@whoisearth@lemmy.ca avatar

On the nose. Thank you for explaining it far more eloquently than I was able to.

chocosoldier ,

Dude Socrates was convinced that reading and writing would ruin everyone’s memory who grew up with it. Whining about <innovation> somehow handicapping the next generation by making them “too dependent on technology” or whatever and couching it in reasonable-sounding terms is as old as language, and time always makes fools of those who indulge in that sort of masturbatory delusion. You’re just jealous we had cooler toys, own it.

communism ,
@communism@lemmy.ml avatar

I knew a compsci grad who used a physical magnifying glass to read screens

notnotmike , in Read only friday
@notnotmike@programming.dev avatar

CTO of my company was up at 1am this morning in the chats. Pray for the IT department

lemmyvore ,

Who were they talking to.

I blame whoever had their chat open at 1am.

Lightfire228 ,

Most of the time, it’s me

Even medicated, it’s impossible for me to keep a normal sleep schedule

I think of it as compensation for waking up at noon every day

quicksand ,

Just because you’re awake doesn’t mean you need to be working

Aceticon , in Bold Ideas For Funding Open Source Software

Rebrand Github as an MMO were people fight for code dominance.

Clbull , in Mcafee accidentally made users call the devs of SQLite and complain.

John McAfee would be spinning like a rotisserie chicken in his grave. Or at least he would be if McAfee Software hadn’t already turned to shit long before his death.

So the temp files are still identified, but anybody smart enough to figure out the code is also likely smart enough to know that calling the developer will not help get rid of the file.

Don’t underestimate the stupidity of your average person.

ruk_n_rul ,

Was gonna say, this wouldn’t happen on John’s watch. /S

TheSlad , in Looks good to me 👍

In my first programming job, I would actually do code reviews by pausing my own work, pulling their branch and building it locally, then using debug mode to step through every changed or added line of code looking for bugs, unaccounted for edge cases, and code quality issues.

…I dont do that anymore, I now go “looks good to me” even on 10 line reviews.

silasmariner ,

Yeah but I bet you do it sometimes on your own pull requests even after you’ve opened them don’t you?

crossmr , in "Working with Gen AI" by Dandytoon

Gen AI is best used with languages that you don't use that much. I might need a python script once a year or once every 6 months. Yeah I learned it ages ago, but don't have much need to keep up on it. Still remember all the concepts so I can take the time to describe to the AI what I need step by step and verify each iteration. This way if it does make a mistake at some point that it can't get itself out of, you've at least got a script complete to that point.

RestrictedAccount ,

Exactly. I can’t remember syntax for all the languages that I have used over the last 40 years, but AI can get me started with a pretty good start and it takes hours off of the review of code books.

Auzy ,

I actually disagree. I feel it’s best to use for languages you’re good with, because it tends to introduce very subtle bugs which can be very difficult to debug, and code which looks accurate about isn’t. If you’re not totally familiar with the language, it can be even harder

crossmr ,

I test all scripts as I generate them. I also generate them function by function and test. If I'm not getting the expected output it's easy to catch that. I'm not doing super complicated stuff, but for the few I've had to do, it's worked very well. Just because I don't remember perfect syntax because I use it a couple of times a year doesn't mean I won't catch bugs.

RustyNova , in Coomitter be like

NGL I 'm a bit like that. I often do “work” commits so that my working tree is a bit more clean/I can go from working state to working state easily.

But before a PR, I always squash it, and most times it’s just a single commit

DacoTaco ,
@DacoTaco@lemmy.world avatar

Same haha. But i use a combination of commits ( but not pushed ), ammending, fixups and usually clean it up before making a PR or pushing ( and rebase/merge main branch while at it). Its how git should be used…

verstra ,

You are not alone. This is the work git was built for.

There is a bit of benefit if you have code reviewed so separate commits are easier to review instaed of one -900 +1278 commit.

RustyNova ,

I do push often as I’m often switching between two devices. And I do make draft PR so I got an easy git diff that I can live reference with

pineapplelover ,

How do you “squash” it?

veganpizza69 ,
@veganpizza69@lemmy.world avatar

Squashing

The s “squash” command is where we see the true utility of rebase. Squash allows you to specify which commits you want to merge into the previous commits. This is what enables a “clean history.” During rebase playback, Git will execute the specified rebase command for each commit. In the case of squash commits, Git will open your configured text editor and prompt to combine the specified commit messages. This entire process can be visualized as follows:

https://lemmy.world/pictrs/image/c9b3554b-d6a9-4fd0-a612-7d2e3f60d6e9.png

Note that the commits modified with a rebase command have a different ID than either of the original commits. Commits marked with pick will have a new ID if the previous commits have been rewritten.

www.atlassian.com/git/…/rewriting-history

You can also amend for a softer approach, which works better if you don’t push to remote after every commit.

The git commit --amend command is a convenient way to modify the most recent commit. It lets you combine staged changes with the previous commit instead of creating an entirely new commit. It can also be used to simply edit the previous commit message without changing its snapshot. But, amending does not just alter the most recent commit, it replaces it entirely, meaning the amended commit will be a new entity with its own ref. To Git, it will look like a brand new commit, which is visualized with an asterisk (*) in the diagram below.

You can keep amending commits and creating more chunky and meaningful ones in an incremental way. Think of it as converting baby steps into an adult step.

RustyNova ,

My attempt to explain was squashed by this comment

mauzybwy ,

Or if you want to --force commit 😈. Imo if it’s my own working feature branch on a trunk-based roll-forward repo idgaf about rewriting history, and I will do it with wanton abandon.

SparrowRanjitScaur , (edited )

Gitlab has a checkbox for squashing merge requests into a single commit. Not sure if GitHub has that too.

AnarchoSnowPlow , in Such a pain in the sas

“the serial output from my test unit turns into garbage and it happens at completely random times!”

“Did you make sure they were plugged in all the way?”

“WHAT?!?! ARE YOU SUGGESTING I DON’T KNOW WHAT I’M DOING?!?!”

Some time later

“Yeah, it turned out to be the serial connection was loose.”

bitfucker ,

It is worse in HW prototyping where sometimes loose wire is all over the place

AnarchoSnowPlow ,

“Where does this green wire go?”

I appreciate HW engineers and techs. I’m not afraid of datasheets, circuit diagrams, or a mso and they’re always patient enough to explain things to me so I can make the rocks behave. Or at least tell me how to go from diagram to board lol.

mossy_ , in COMEFROM

Guy who worked at my place before me kept using these and GOTO statements all over the place.

His name? Cotton-eyed Joe

match ,
@match@pawb.social avatar

Reference to Cottoneyed Joe considered harmful

mossy_ ,

I almost spat out my drink when I saw this

hakunawazo ,

Thanks for the catchy tune, now the song sticks in my mind again. Last time was long time ago. :)

lseif ,

where did you COMEFROM where did you GO…TO

match ,
@match@pawb.social avatar

where did you COMEFROM, cottonEyedJoe2

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