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.

rufus , in New language

And one of them is Java?

BeigeAgenda ,
@BeigeAgenda@lemmy.ca avatar

Yes Java, Scala, Kotlin, Jython and Perl

jaybone ,

Whatever you do in perl, I can do in PL/SQL.

BeigeAgenda ,
@BeigeAgenda@lemmy.ca avatar

I would rather use pgsql or tsql instead of PL/SQL, mostly because of oracle.

tinyVoltron ,
@tinyVoltron@lemmy.world avatar

What about Groovy?

BeigeAgenda ,
@BeigeAgenda@lemmy.ca avatar

Forgot about that one, even if I just worked on a Jenkins script 🙄

whoisearth ,
@whoisearth@lemmy.ca avatar

Of course Perl is in there lol

sirleonelle , in Rebase Supremacy

I’ll go one further: use git rebase --interactive

natecox ,
@natecox@programming.dev avatar

I remember learning about how to use this back in the day and what a game changer it was for my workflow.

Today I like to do all of the commits as I’m working. Maybe dozens or more as I chug along, marking off waypoints rather than logging actual changes. When I’m done a quick interactive rebase cleans up the history to meaningful commits quite nicely.

The fun part is that I will work with people sometimes who both swear that “rewriting history” is evil and should never be done, but also tell me how useful my commit logs are and want to know how I take such good notes as I go.

magic_lobster_party ,

At my company we just use a squash policy in gitlab. Every merge request becomes a single commit to the main branch. Super easy to read the commit log because all commits are descriptive instead of a bunch of “fix MR comments” or “fix pipeline errors”.

Another advice: git reset [commit-id] followed with a git commit -a is a quick way to squash all your commits.

bort ,

Another advice …quick way to squash all your commits

in your IDE select the commits you want to squash. Then rightclick. Then “squash”. All done.

thesmokingman ,

I am still mystified by IDE VCS tools. It’s usually faster for me to do a quick CLI shuffle than use the IDE.

bort ,

I use like 3 of the git-feature from intellij (out of 100 or so). But these 3 features save me a lot of time.

(the other 2 being the 3-way-merge-view and the commit-view where I can select changes for staging)

swordsmanluke ,

Argh. I hate that argument.

Yes - “Rewriting history” is a Bad Thing - but o argue that’s only on ‘main’ (or other shared branches). You should (IMHO) absolutely rewrite your local history pre-push for exactly the reasons you state.

If you rewrite main’s history and force your changes everybody else is gonna have conflicts. Also - history is important for certain debugging and investigation. Don’t be that guy.

Before you push though… rebasing your work to be easily digestible and have a single(ish) focus per commit is so helpful.

  • review is easier since concerns aren’t mixed
  • If a commit needs to be reverted it limits the collateral damage
  • history is easier to follow because the commits tell a story

I use a stacked commit tool to help automate rebasing on upstream commits, but you can do it all with git pretty easily.

Anyway. Good on you; Keep the faith; etc etc. :)

thesmokingman ,

The only other time rewriting history might be bad is when you’re working on a shared branch, which is the point of not rewriting main. If you are working solo on a branch, its history is only what you merge into main so it doesn’t fucking matter at all. If you’re not working solo, maybe you need to adopt a similar process or look at how you’re not working solo. The only time I touch another dev’s branch is at the PR stage and only for quick corrections or missing knowledge so it doesn’t matter if they rebased before or honestly rebase after before the final merge.

sping ,

Even better, master creating fixup and squash commits and maintain logical commits as you work with git rebase -i --autosquash

dejected_warp_core ,

This is really the only sane way to do it. I have run into some wonkyness with the commit history of the target branch commits not resembling git log, but that’s usually for commits outside of what I’m trying to merge.

Edit: squashing commits down this way also helps reduce problems with replaying commit history on the actual rebase. In most cases you don’t need all your “microcommits” in the history, and fewer commits just takes less time to reconcile.

magic_lobster_party , in Should it just be called JASM?

JAVA: Just Another Version of Assembly

BlackRoseAmongThorns , in Three monitors, and i feel insulted

I had my PC built for me while all i had to do was specify parts, tried to get fans with no light just to avoid this, got the almost exact model but with lights.

Now if i use my PC at night my room glows pink (not for any particular reason besides it being the most dominant in my rainbow led fans)

Username ,

It’s not even controllable RGB? Just shitty rainbow all the time?

BlackRoseAmongThorns ,

There’s an extra device which is required to control them, yes i already tried the bios.

Basically yes, rainbow, at least it’s not rotating and is just a static rainbow circle.

RonSijm , in Rebase Supremacy
@RonSijm@programming.dev avatar

Rebasing is for noobs.


<span style="color:#323232;">git reset head~42
</span><span style="color:#323232;">git push -f
</span>
shield_gengar ,
@shield_gengar@sh.itjust.works avatar

Holy shit

Tja , in Hilarious

Reason 5: she doesn’t exist and you’re bad at cropping

xmunk , in Probably the wrong meme format

I’ll be chilling over in PHP. Let me know when you’re ready for a real language.

onlinepersona OP ,

The language of “as long as it works” champions 💪

Anti Commercial AI thingyCC BY-NC-SA 4.0

AVincentInSpace , in I expect normies to use words like 'algorithm' to refer to 'AI', which is in reality, a mathematical optimization PAC model --- but is this guy not supposed to be epitome of tech meritocracy?

Why am I not surprised that someone who unironically quotes Ben Shapiro thinks of Elon “My Dad Owns An Emerald Mine” Musk as a shining example of capitalist meritocracy

AVincentInSpace , in I expect normies to use words like 'algorithm' to refer to 'AI', which is in reality, a mathematical optimization PAC model --- but is this guy not supposed to be epitome of tech meritocracy?

the people who do that probably don’t even know that the ‘AI LE BAD’ is the same technology that is giving them precious views.

This fact is at best useless and at worst deliberately misleading.

The microcontroller inside my microwave oven that counts down seconds and shows me the time is a computer. It can execute instructions, do math, and emulate a universal Turing machine (or would be able to if it was connected to infinite memory). The Pleiades supercomputer at NASA is a computer. It, too, can execute instructions, do math, and emulate a universal Turing machine, albeit much more quickly. These two computers do such vastly different jobs and differ by so much in computational ability that referring to them using the same term is almost meaningless. Just because predicting what a user will click on and generating an image from a text prompt are both done using convolutional neural networks does not mean that the people who rally against the latter while relying on the former for an income stream are hypocrites. Good grief, you might as well accuse someone watching cat videos on their PC of warmongering because computers are also used for missile guidance.

JeffreyOrange , in Life Hack

the adjectives on the tip options are so weird lol What a shitty system to even exist

Obi ,
@Obi@sopuli.xyz avatar

I want to know what it says under 30%.

snowsuit2654 ,
@snowsuit2654@lemmy.blahaj.zone avatar

bazinga

samus12345 ,
@samus12345@lemmy.world avatar

“Best Service Ever!”

LeroyJenkins ,

“Scammed”

evranch ,

“I’m drunk”

Kolrami , (edited )
Obi ,
@Obi@sopuli.xyz avatar

Thank you, my curiosity is now fully satisfied!

TheGiantKorean , in Life Hack
@TheGiantKorean@lemmy.world avatar

Does this actually even work any more? I figured most things protected against it nowadays.

CmdrKeen ,
@CmdrKeen@lemmy.today avatar

I highly doubt it, most frameworks do indeed automatically prevent it these days. Still funny though.

jnk , in I expect normies to use words like 'algorithm' to refer to 'AI', which is in reality, a mathematical optimization PAC model --- but is this guy not supposed to be epitome of tech meritocracy?

He’s just an entrepreneur who really wants to play the Tony Stark role but doesn’t really know much more than the average tech hobbyist, so now he’s doing a bad-mediocre job at both things.

JoYo , in Rebase Supremacy
@JoYo@lemmy.ml avatar

Anyone mind explaining to me how git rebase is worth the effort?

git merge has it’s own issues but I just don’t see any benefit to rebase over it.

Aux ,

Well, rebase allows you to resolve the same conflict ten times in a row instead of doing it once. How cool is that?

jjjalljs ,

Squash your branch first

rapist1 ,

Doesn’t this defeat the purpose, may as well merge then no?

jjjalljs ,

Do not merge your unfinished stuff into main.

I don’t like merging main into my branch because I don’t understand git, and I feel like that can make a confusing history.

expr ,

Nope, you just need to do it once: git-scm.com/book/en/v2/Git-Tools-Rerere.

Aux ,

Why would I ruin all the fun?

Jesus_666 ,

I use interactive rebases to clean up the history of messy branches so they can be reviewed commit by commit, with each commit representing one logical unit or type of change.

Mind you, getting those wrong is a quick way to making commits disappear into nothingness. Still useful if you’re careful. (Or you can just create a second temporary branch you can fall back onto of you need up your first once.)

bamboo ,

This 100%. I hate getting added to a PR for review with testing commits in the history, and I’m expected to clean those up before merging into main.

Zangoose ,

I feel like squash and merge on GitHub/GitLab is nicer for that anyway though, it makes the main branch so much cleaner automatically

dejected_warp_core ,

If you’re using “trunk-based development” (everything is a PR branch or in main), this works great.

If you’re using GitFlow, it can make PRs between the major prod/dev/staging branches super messy. It would be nice if GitHub would let you define which merge strategies are allowed per-branch, but that’s not a thing (AFAIK). So you’re probably better off not squashing in this situation.

bitcrafter ,

The way I structure my commits, it is usually (but not always) easier and more reliable for me to replay my commits one at a time on top of the main branch and see how each relatively small change needs to be adapted in isolation–running the full test suite at each step to verify that my changes were correct–than to be presented with a slew of changes all at once that result from marrying all of my changes with all of the changes made to the main branch at once. So I generally start by attempting a rebase and fall back to a merge if that ends up creating more problems than it solves.

muad_dibber ,
@muad_dibber@lemmygrad.ml avatar

Only before you collaborate with anyone else. After that, don’t ever use rebase, or they’ll get an error, and will have to overwrite their local history with the one you’ve rewritten.

Jakylla , in Hilarious
@Jakylla@sh.itjust.works avatar

Twitter PR review

RagnarokOnline , in Life Hack

Now if I could only bypass the float only input field…

Maalus ,

F12 lol. The only issue with a dev console helping would be serverside checking

grue ,

How do you press F12 on a touchscreen interface?

trxxruraxvr ,
RagnarokOnline ,

So I have to bluetooth my mobile device to the restaurant’s point of sale app?

smeg ,

You could probably also try peeling off the outer plastic of the device so you can access the USB port and plug in an external keyboard, but the person holding it might notice

affiliate ,

you could also bring a regular keyboard and try to plug it in when the cashier isn’t looking. i’m sure that will go over well

Zehzin ,
@Zehzin@lemmy.world avatar

Based username

RagnarokOnline ,

Always nice to meet a fellow adventurer. See you in South Pront 👍

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