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.

psivchaz , in My Git Knowledge

All these comments and no one is going to point out that this is invalid?

The git stage and git commit don’t have any terminator, so it’s all one “command” and will fail. Then there’s a single & between git commit and git push, so it would run in parallel, so it would also fail.

Also, don’t git stage . people. Or at least do a git status before to make sure you didn’t stage file-with-all-the-production-secrets

SpaceCowboy ,
@SpaceCowboy@lemmy.ca avatar

Pffft… all of my api keys are open source. Having more eyes on them will make them more secure!

themusicman ,

The comma and ampersand are plain English, not one big command

Ohi , in My Git Knowledge

Aye, most of my 10 year career in web dev is pretty much those commands. However, some advanced git concepts are worth diving into. Stuff like git bisect that can narrow down the exact commit that broke your app is an absolute life saver. Knowing how to git cherry-pick is also a git skill professionals should be comfortable doing. Migrating work from one branch to another without merging the entire branch is pretty common.

chicken , in My Git Knowledge

If you happen to forget the -m though, you may also need to have mastered exiting vim

jxk ,

Me as an Emacs user, who omits -m on purpose to practice quitting vi in case I really need it

PotatoesFall ,

you’re an emacs user who has vi set up as the default editor on your system?

(You can change it altering the $EDITOR env var)

jxk ,

I only use $EDITOR to launch vi from git. Emacs runs as a single process and is always open.

Wiz ,

Shift-Z Shift-Z to quit vi. Let’s keep it simple, people!

JATtho ,

The day I configured git to use Geany for commit messages with a separate config specifically tuned for this, it improved my life by 300%


<span style="color:#323232;">~$ cat ~/bin/gitedit
</span><span style="color:#323232;">#!/bin/sh
</span><span style="color:#323232;">exec /usr/bin/geany -i -s -t -c ~/.config/gitgeany $@
</span>

Then in git config: git config --global core.editor “gitedit”

Trollception ,

What developer uses Linux in professional work? Maybe for on the side stuff but I haven’t seen any corporate Linux machines.

aodhsishaj ,

Hello, I use a linux machine for dev work and all the servers and containers I touch are linux, all managed through gitlab CI/CD.

git scm is my daily driver and I use it for not taking and documentation as well as active python development.

atx_aquarian ,
@atx_aquarian@lemmy.world avatar

Macs are basically BSD, and Windows has WSL.

Trollception ,

But Mac or WSL are not Linux.

Solemn ,

Everywhere I’ve worked, you have a Windows/Mac for emails, and then either use WSL, develop on console in Mac since it’s Linux, or most commonly have a dedicated Linux box or workstation.

I’m starting to see people using VSCode more these days though.

Trollception ,

I thought Mac was unix which is similar but different from Linux?

Solemn ,

I think someone else said what it actually is in another comment. It’s functionally identical 90℅ of the time for me anyway,and I use CLI and vim on it.

Ephera ,

They’re both UNIX-like, i.e. they both implement the POSIX specification and are therefore in many ways compatible.

But yeah, modern macOS is more directly derived from the original UNIX operating system.
Linux was instead implemented from scratch to be compatible with UNIX.

Ephera ,

The entire IT ecosystem is built around Linux, because it’s so prevalent in servers, containers, budget hardware and the open-source community.

Yes, many companies don’t understand that and expect their devs to be productive on Windows. But in my experience, that’s an uphill battle.

In my company, we get very little IT support, if we decide to order a Linux laptop and we still have significantly less trouble with getting things set up to start coding.
Not to mention the productivity boost from having all the relevant technologies natively available + being able to script whatever you want.

RobertoOberto ,

Everyone at Mentor Graphics did before it got gobbled up by Siemens in 2017. I don’t know if they still do.

1984 , in Beginner developer moment
@1984@lemmy.today avatar

I love the pic of all engines the most. :)

Would probably use all fuel in 10 minutes, and be way too heavy to even take off.

Kissaki ,

be way too heavy to even take off

maybe the engines would take off by themselves

ProfessorProteus ,
@ProfessorProteus@lemmy.world avatar

This is just off the top of my head from a bit of experience in KSP, but depending on the thrust-to-weight ratio of the engines, it would probably be able to take off, but you’re right, it wouldn’t win any fuel economy awards.

Actually I doubt any material could stand that kind of wing loading, and the aerodynamics would probably be all kinds of fucked. Pretty apt analogy for a beginner developer.

ytg , in My Git Knowledge

Every once in a while, you can refresh your memory by reading the man page.

Or if, like me, you use Emacs, Magit exposes everything quite clearly.

MisterFrog , in Tinder to ban web developers who use 'engineer' in their bio
@MisterFrog@lemmy.world avatar

As a non-software engineer, feels weird that they’re making this distinction.

I don’t have much to do with engines either.

I take engineer to mean: designs stuff that does some task, involving SOME kind of calculation.

Visual designer: not an engineer

Piping designer: not an engineer (although this one felt weird, that’s what the piping designer corrected me to say, so)

Chemical engineer: ya

Mechanical engineer: yeah

Software engineer: totally different flavour, but still yeah

Language is what we want it to be.

Web designers presumably still need to script things, I reckon that counts 👍

cali_ash , in Tinder to ban web developers who use 'engineer' in their bio

While backend- and other types of software developers seem to be unaffected

What if you write backend code for web application?

sfxrlz , in Ohh shit....

Jokes on you. I’ve been a drug addict before starting to code

anders , in Ohh shit....

@devilish666 lol :D

FabledAepitaph , in Tinder to ban web developers who use 'engineer' in their bio

I perused the comments and didn’t see anyone mention this. The term “engineer” is regulated by every state in the US. I doubt they had Tinder in mind, but calling yourself an “engineer” without having a Professional Engineer license is illegal, at least when it comes to offering professional engineering services. It’s a protected title so that schools and bridges don’t get built by scammers–at least that was the intention. I can legally call myself an Engineer!

Just go get your license, and you should be golden lol.

samus12345 , in My Git Knowledge
@samus12345@lemmy.world avatar

Seeing Peter Griffin labelled as “HR”, I automatically pronounce the R as “Ah” in my head.

go_go_gadget , in My Git Knowledge

Woah look at mr. fancy pants with his git push arguments.

thirteene ,

I use this in my bash profile in case anyone else finds it helpful. Usage is:

gao fixing a typo


<span style="color:#323232;">function gao() {
</span><span style="color:#323232;">    git add .
</span><span style="color:#323232;">    git commit -a -m "$*"
</span><span style="color:#323232;">    git push origin `git rev-parse --abbrev-ref HEAD`
</span><span style="color:#323232;">}
</span>
NegativeLookBehind , in I'm not messy, I'm just efficient
@NegativeLookBehind@lemmy.world avatar

But the pile now has to be sorted upon access, and depending on the query (such as trying to find matching socks), this will likely become wildly inefficient.

dunz ,
@dunz@feddit.nu avatar

That’s why I only own black socks, and just wear jeans, t-shirt and hoodie/shirt

mosiacmango ,

I worked with a guy who had 5 sets of the same work clothes. Wore the same outfit everyday, and yes it was all black head to toe.

I never did verify if he actually had 5 sets of clothes or just liked washing one pair everyday, but he never stank so whichever it was worked out.

Riven ,

I have 4 pairs of the same kacki shorts that I use for work. It’s comfy.

trk ,
@trk@aussie.zone avatar

I’ve got work “uniforms”, and weekend “uniforms”. Probably 7 or 8 changes of each, but all the work clothes are identical and all the weekend clothes are identical.

I look ageless in photos cause I always have the same stuff on, and getting dressed is so easy. Probably no good for people who care about fashion though. Glad I don’t tbh, shits expensive and wasteful.

John_McMurray ,

he probably had 25. Ive maybe 6 of one shirt, 5 of another, three or four of a few others, 15 pairs of pants. All the shirts are black, gray, black in a different material, or gray in a a different material. Pants are all black or blue. Jackets all black. 100 pairs of the same sock. I can dress in the dark and everything matches.

DreadPotato ,
@DreadPotato@sopuli.xyz avatar

That’s a ridiculous amount of clothes! 15 pairs of pants…WTF!?

I have 5 t-shirts for private use, 2 for work, 3 shirts, 2 pairs of pants and maybe 10 pairs of socks…

John_McMurray ,

They pile up over time if you buy quality clothes and stay the same size. maybe 5 are in “Oil change and mechanical work” condition now.

Sabata11792 ,
@Sabata11792@kbin.social avatar

I got 5 pairs of the same black cargo pants, and an unknown amount of black hoodies and shirts. I have to be sure to throw in a non default shirt every other day so people think I'm normal. I just think black is good enough and give off the vibe of dead inside. I don't want to be misleading.

agent_flounder ,
@agent_flounder@lemmy.world avatar

We are twins.

Valmond ,

O(4)

sloppy_diffuser ,

5x work shirts, 5x work pants, bagged/black t-shirts and fisherman pants for home, all black socks. L1 cache is the drier. L2 is the shelf next to the drier. There is nothing beyond L2.

dunz ,
@dunz@feddit.nu avatar

I just wear band-shirts, black Levis 501 jeans and hoodies/plaid shirts. Cargo shorts in the summer, idgaf if I’m fashionable. I like the way I dress, so does my SO 😃

Rinn ,

…wait, you just throw socks onto the pile without putting matching pairs together beforehand? I’ve learned that an alternate universe exists, and I’m not okay with it.

NegativeLookBehind ,
@NegativeLookBehind@lemmy.world avatar

You half-ass the folding of your clothes and then throw them into a pile anyway?

Revan343 ,

I roll the ankles together when I take them off, then wash them like that. They usually come out of the dryer still together

NegativeLookBehind ,
@NegativeLookBehind@lemmy.world avatar

That’s a good idea!

FooBarrington ,

“Sorted upon access”? When adding to the pile, I make sure I can still see a piece of every article of clothing. Random access is only grabbing and yanking.

Adding is O(n log n), removing is O(1)

DrRatso , (edited )

You could either have socks already in pairs at drying time (we hangdry so we do this, just hang them together and when taking off, fold one into the other, they will not separate accidentally). Alternatively you could have all the same socks and not care.

Alternatively, you can just not care if yours socks match. I only care for my business socks because a) they all have silly designs and b) My line of work calls for a slight bit of professionalism in appearance, so I try to style my hair, clean up my facial hair and at least have matching socks, goofy as they might be. Thank god I don’t have to wear a suit.

Marcbmann , in My Git Knowledge

I think HR is just ill equipped for technical interviews, but they try to conduct them regardless.

Was denied a position because HR felt my experience “lacked depth” which I still can’t understand 3 years later.

Did the same role at a larger company. Had more responsibility than they were giving me. Developed my own tools for job automation. Grew their business from nothing to half a mil a month. Experienced all stages of growth and realized massive success.

After that interview I kept getting technical interviews and getting passed on because I was too senior for the position

Ephera , in My Git Knowledge

Well, if anyone wants to learn more about Git, I can recommend this: ohmygit.org

JustAnotherRando ,

Another good one, entirely browser based, is learngitbranching.js.org

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