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.

tsonfeir , in The difference
@tsonfeir@lemm.ee avatar

Now do “full stack” developer

Jakylla ,
@Jakylla@sh.itjust.works avatar

BAM! I got that div centered on this display!

tsonfeir ,
@tsonfeir@lemm.ee avatar

Flex or… tables?

Jakylla ,
@Jakylla@sh.itjust.works avatar

Used that alien package with some python library I’ve found on the dark web to be able to use it as css

tsonfeir ,
@tsonfeir@lemm.ee avatar

No malicious dependencies, right? ……right?

XTornado ,

Css grid.

tsonfeir ,
@tsonfeir@lemm.ee avatar

Real developers use <pre> and white spaces. 😎</pre>

Kodemystic ,
@Kodemystic@lemmy.kodemystic.dev avatar

yup grid all the way

Hundun ,

“I deployed an edge compute environment on this thing, so it can run out SSR backend-for-frontend, but we now have a left-pad issue in our supply chain”

Zeth0s , in Always commit

I never push as last thing in the evening. I want to sleep over it and revise in the morning. --amend crew unite

Michal ,

What if while you sleep over it your laptop gets stolen or damaged? I’d rather push every small change than sit on it.

Zeth0s ,

I would lose max 3 hrs of work that I already know how to re do. I can live with that. I don’t want to publish too much unfinished/unpolished work. There is always the chance someone might need the branch.

Even if drafts under development, I like to publish something that reaches the standard of my “best” me, not my “Friday evening” me

explodicle ,

Same here. At least for me, the hard part is figuring out how to do it.

Michal ,

Why not? Do you push directly to master?

Zeth0s ,

Because someone else might need to work on something on or from my branches. And I don’t want garbage in my history. There are cases I might not be able to squash merge, so all my history will be in the project history. I want each commit to be clean. It is not a lot of effort, and forces me to increase code quality, because I review my code more often.

Rules for all projects I manage: never rebase published branches and always publish clean code (even implementation is unfinished).

From experience following these simple rules make the whole project management easier and more effective

darklamer ,
@darklamer@lemmy.dbzer0.com avatar

Don’t you have continuous backups of your work laptop!?

Michal ,

On one occasion i had to take over a task from a colleague while he was on his day off. He did not push his changes. I am sure he had backups but when i asked him to push his changes he had to drive home to do it.

I’d rather company IP stays on its git server.

Anticorp ,

You should be pushing feature branches as you work on them, so if you have a crash or something, your work isn’t lost. Builds should be triggered from pull requests on the main branch, if triggered by anything. You should never push directly to main. At least that’s my preference.

Zeth0s , (edited )

Our ci/cd pipelines build also feature branches. I do push often, clean code. I don’t push when I am tired enough that I can’t trust my judgment that the code I am pushing is over my personal quality threshold. I add meaningful, concise commit messages. These are my rules.

TheManuz ,

I make WIP branches only for that purpose, so I can push half done work and rework it the day after.

This means a lot of history changes, but only in the WIP branch.

When history is clean, I rebase the feature branch.

Is this a good practice? I never found a better way to backup partial code.

superkret , in Easy peasy

Sir, I don’t understand. Who needs a sysadmin in the cloud anyway? All you gotta do is push a button, sir.

sj_zero , in Imagine

I mean... I already use ubuntu, so...

pineapplelover ,

Wicked self burn

caseyweederman ,

Those are rare.

Phen , in Which side are you? Javascript or Typescript

Typescript may have a million problems that make getting into it annoyingly hard and even seem pointless, but once it’s settled in your project and used well… Damn is it fucking good.

And I’m saying that even though I had to disable intellisense and most of those advanced features because the project I work for is too large and typescript would easily use over 20GB of RAM and get my computer to freeze.

But if you’re trying to use it like a traditional typed language, you’ll only see the bad side of it and you’ll certainly hate it.

DeriHunter ,

Tell me you’re a dinosaur without telling my you’re a dinosaur

avonarret1 ,

Telling me you have nothing to contribute without telling you have nothing to contribute.

yukichigai , in This one goes out to the sysadmins in the crowd.
@yukichigai@kbin.social avatar

Bonus if the vendor refuses to provide any further support until your department signs off on the resource expansion.

In a just world that's when you drop the vendor. In a just world.

very_well_lost ,

cough Oracle cough

Labonnie ,

Then we’d probably have to drop each and every vendor…😩

TootSweet , in I love all my statements equally. (I don't care for GOTO)

“Documentation considered harmful” - my coworkers probably.

railsdev ,

iT’s SeLF dOcUmenTiNg 🥴

UnRelatedBurner ,

facts

TheYear2525 ,

<span style="color:#323232;">bool ticket2387_ac3 = true; // TODO
</span><span style="color:#323232;">if (!ticket2387_ac3) return;
</span>
funkless_eck ,

ticket is too exposed, what if they reverse engineer the name? just use t2387ac3 instead it saves time

redcalcium ,

It perfectly makes sense if you think like me.

– a deranged programmer

QuazarOmega ,

– a deranged programmer

Aren’t we all?

docAvid ,

Using “self documenting” as a blanket excuse to not document things that need it is inexcusable, yes, but I’d rather work on code written by somebody who seriously thinks about how to make it clean and self documenting, and then documents whatever still needs it as well, than on code written by somebody who doesn’t make that effort, but documents heavily. And as for people who claim they’re documenting everything, when the documentation is function fooTheBar() // foos the bar, they can eat a bag of docs.

railsdev ,

100% agree. Sometimes I start a comment and realize I’ve either explained exactly what it’s doing and delete it or just update my variables to be more concise.

My job doesn’t like when I document the parameters and return type/value of methods. I think that that is really important in a dynamic language like Ruby and sets expectations that the method should ONLY return that type.

hairyballs ,

My coworkers do document the code:


<span style="color:#323232;">/// Returns a list of foos, given a bar. 
</span><span style="color:#323232;">fn get_foos_from_bar(bar: Bar)
</span>
elouboub , in More the merrier
@elouboub@kbin.social avatar

Also "selfdocumenting code" writers who are forced to document their code.

ImpossibleRubiksCube ,

Calling code self documenting is like saying that we eat animals because they’re made out of meat.

elouboub ,
@elouboub@kbin.social avatar

Defo. It's bogus

MattTheProgrammer ,
@MattTheProgrammer@kbin.social avatar

You don't want to over-comment though, otherwise people will just start ignoring all of them.

JoYo ,
@JoYo@lemmy.ml avatar

in my experience all comments are ignored.

clobubba , in No Scrum - Parody of TLC "No Scrubs"

deleted_by_author

  • Loading...
  • victron ,
    @victron@programming.dev avatar

    I actually laughed, I sing like shit

    WarmSoda , in data secured

    Documents folder: obviously where video game files should go…

    ivanafterall ,
    @ivanafterall@kbin.social avatar

    Some of them, anyways!

    WarmSoda ,

    I can’t stand when games do it. Just put the files in a designated folder where the game is installed dammit!

    ivanafterall ,
    @ivanafterall@kbin.social avatar

    I'll meet you halfway: I created a new folder in the hidden folder %AppData% --> .NameofPublisher --> GameName

    WarmSoda ,

    …make it stop…

    gandalf_der_12te ,

    That actually makes sense!

    NotAnonymousAtAll ,

    Please don’t mix executables and data created by applications, even if the application happens to be a game. Those are supposed to be separate. That being said, “Documents” is obviously the wrong place for save game files.

    Jerkface ,

    In C:\Program Files? Or C:\Program Files (x86)?

    elint ,

    C:\Program Files\ unless your program is 20+ years old and you still haven’t written a version for modern-day systems. 32-bit is dead.

    Jerkface ,

    Let’s take a look at the old ssd…

    C:\Program Files (x86)\Epic Games
    C:\Program Files (x86)\GOG Galaxy
    C:\Program Files (x86)\Hearthstone
    C:\Program Files (x86)\Steam\

    etcetera

    famousringo ,

    We’re walking about Windows, here. If 32-bit ever dies on Windows, it will be lovingly stuffed and placed on the mantle like a pet whose owner can’t admit it’s gone.

    Potatos_are_not_friends ,

    Documents/games

    Or

    Documents/My Games

    Or

    Document/[Game Name]

    WarmSoda ,

    Or

    Gamefolder/Documents/

    Why can’t they do that?

    neocamel ,

    Dude fucking iRacing…

    Arnaught ,
    @Arnaught@kbin.social avatar

    Hey, some games don't even bother with the documents folder! They just dump their saves right in your home folder!

    Xylight , in Shit Happens
    @Xylight@lemmy.xylight.dev avatar

    Honestly I get more angry when it’s my own site because then I have to fix it :P

    MCForTheBest ,

    On the contrary I get less angry when it’s my own site because I usually have at least some idea of what could have gone wrong

    Boinketh ,

    It depends on how badly you need to use the site. If you need it and it’s your site, it’s a lot better because you can fix it. If you don’t need it, you still have to fix it if it’s yours, but you can just walk away if it isn’t.

    msage , in Account Required, 2FA, Contract Signed In Blood... to see a PDF.

    No Drake pls

    tja ,
    @tja@sh.itjust.works avatar

    Wie schon letztens geklaut:

    text

    DarkenLM ,

    What has happened with drake? I've seen this message pop up in some memes, but don't understand why.

    TheOctonaut ,

    Well apart from how tired the “this thing is bad, this thing is good” meme format is, I think there are credible allegations of grooming?

    Adalast ,

    Plus all the political stuff. The man is patantly off his rocker.

    Cube6392 ,

    I’m in a position to call him a groomer. I feel comfortable saying straight up he’s a sex pest. There’s credible allegations all over the place. What I can’t speak to, and I have to implore you to look into, is that many black people in America consider him a cultural appropriator based on his adoption of vernacular and accent that aren’t his own.

    DarkenLM ,

    I've been trying to stay away from social media, and I've been very much OOTL. But I've researched about this meanwhile, and holy shit, this was not in my bingo card.

    sigmaklimgrindset ,

    He’s a certified pedophile (wop wop wop wop wop)

    Cube6392 ,

    That really struck a chord. It was probably A Minor

    ByteOnBikes ,

    Actress Millie Bobby Brown, aka Eleven from Stranger Things, revealed when she was still a minor that Drake and her used to text each other. Particularly concerning advice about Drake’s similar experience being a child actor.

    In 2018, Drake reportedly dated, then 18 year old model, Bella Harris. However there are posts of them in intimate positions as old as 2016, where she would’ve been 16 years old.

    www.reddit.com/r/OutOfTheLoop/…/l0ikqdf/

    DarkenLM ,

    Holy shit. Thanks for sharing that information, I've been trying to stay away from social media, and I've been very much OOTL.

    CodeBlooded , in Quantum Lock suspends sales due to developers losing access to source code
    @CodeBlooded@programming.dev avatar

    So, basically, “we started learning Git and accidentally blew away the only copy of the code base we had!” 😂

    I’ve watched new developers delete 2 weeks worth of development by misunderstanding Git🤦‍♂️

    Aatube OP ,

    No, they lost the code and couldn't get it back because they didn't use Git or upload it.

    samus7070 ,

    The reflog is your friend in situations like that.

    tourist , in Give your JS codebase what it deserves!
    @tourist@lemmy.world avatar

    why install this when my coworkers will do it anyway

    skbo ,

    Let’s automate EVERYTHING!

    amenji , in Bold Ideas For Funding Open Source Software

    Literally buy me a coffee and deliver it straight to my house.

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