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.

puchaczyk , in Bug fixing ways
amphetaminisiert , in I still don't get buffers

And I still don’t really know how to use registers in vim 😂 I just use yy and paste 🥲

barsquid ,

I only know how to use them with q. I hope that’s a register, otherwise I will look foolish.

suy ,

They are. Registers are just “named boxes” where you can store some text and/or keystrokes. When yanking and pasting, the unnamed register is used if you don’t specify a name (you can still see or edit it explicitly). For recording a macro there is no default register, though. You need to give it a name.

Psaldorn ,
@Psaldorn@lemmy.world avatar

You just do " (listen for next character as register name)

Then, say q,w,e etc, then yy to yank as normal.

So "wyy

To retrieve it you use "wp

To add to it "Wyy

To view them :reg

Remember you can make "w anything, like "x or "p

And each time you yank it gets pushed into the default register history "0 "1 "2 etc

emergencybird ,

I didn’t know about registers, thank you for this!

o_d ,
@o_d@lemmygrad.ml avatar

Great explanation. Thank you!

amphetaminisiert ,

Ok I have to save that 🥲 thanks!

vzq , in Gotta use all those brain cells

I’m always astounded how eager the average software engineer is to trade away actual coding work for busybody overhead crap jobs.

NigelFrobisher ,

Often the only way to progress is to take a role where you spend hours each day edging middle management.

vzq ,

What is “progress”?

dabu ,
@dabu@lemmy.world avatar

Higher salary, usually

kralk ,

The corollary is - I’m surprised how many programmers are opposed to documenting what they’re doing?

vzq ,

That’s not what I meant. You know that.

wizardbeard ,

I’m probably a freak, but I can’t stand working on something complex, being pulled away from it for a week or two, and not being able to pick things back up because it’s not documented well. Especially when I’m the only person to blame.

I also make scripts and programs with the goal to hand them off when I’m done. I’ve got more than enough to keep me busy at work without having to be the only person able to support my projects forevermore. Ultimately I’m still the go to, but I never want to be so critical that I can’t take time off, or that I’m effectively on call 24/7. I want the credit, but the whole point is to reduce responsibility by making shit more efficient and easy.

1984 ,
@1984@lemmy.today avatar

Because they give them nice titles, and young devs want the status of the title. :)

I tried being a manager but I hated everything about it. The dishonesty, the politics, the useless meetings.

I’m back in a development role now and I’m super happy and excited to start the day. Almost no meetings!

SpaceNoodle ,

Guess which one pays better and gives me more free time to work on my own passion projects.

vzq ,

Obviously you do you and you do not owe anyone anything (least of all your employer).

However, something does not sit well with me about the fact that we’ve created a system where the most driven and ambitious people are removed from the production process as quickly as possible.

It says A LOT about what we value as an industry.

pantyhosewimp ,

Yes. I have worked in a financial company and a lot of teams in that particular company were structured with 2 or 3 Americans with no skills other than exposure to internal company info, the kind of stuff that should just be written down in a wiki somewhere. And when real work needs to be done they (metaphorically of course) drag an Indian contractor out of a cage who actually knows what’s going on and how to do anything. And they do it with disdain as if being a contributing member of society is a bad thing.

Just being in a meeting with some of these teams made me feel like I was a Harkonnen from Dune.

SpaceNoodle ,

Oh, you’ve misjudged my drive and ambition.

boredtortoise ,

Would be nice to be paid well to do what’s interesting

Blamemeta ,

No we’re not eager. Paperwork is just part of any job.

puppy , in I still don't get buffers

Buffers are great. Comes very handy when creating macros in vim.

whats_all_this_then OP ,

Do you yank to places outside the regular target when you create macros?

puppy ,

What do you mean by regular target? I am either yanking from the OS buffer or yanking things from 2 different buffers. Or I have 2 macros where they yank from different buffers.

unhinge ,

I think you mean registers not buffers. buffers are file(s) loaded in memory while registers contain text yanked/deleted/last command/last search, etc.

puppy ,

Yeah sorry, I meant registers.

chonglibloodsport ,

What’s annoying about them is that there isn’t a simple way to clear a register which means you have to use both “r and “R in macros.

chahk , in AI Suggestions

Glorified autocomplete. That, and Clippy.

kbin_space_program ,

Clippy was occasionally useful as it could offer shortcuts you didn't necessarily know about.

This is just bad autocomplete

EatATaco ,

I was lucky enough to get in on my company’s beta test for copilot.

When I hear people say it’s bad, all that tells me is that they are either completely ignorant and have never really used it, or they aren’t good at learning how to use new tools.

kbin_space_program , (edited )

The example shown is setting a timer, then copilot suggests timeright value.

Contextually, it is bad autocomplete.

In practice, chatgpt4 is incapable of producing code to my coding standards. Edit: to clarify, its incapable of doing that in a timely enough manner that it saves me any time.

FaceDeer ,
@FaceDeer@fedia.io avatar

The example shown was specifically selected because it's funny, not because it's representative.

The fact that you called the tool "chatgpt4" suggests you're not experienced with copilot. They're not the same thing even if they're using similar LLMs as a component.

kbin_space_program ,

I know its not chatgpt4, I never said it was?

That paragraph is on its own because it is a different topic. In this case I was using my own experience experimenting with chatgpt4 as to why I won't be using it any time soon.

holgersson ,

Autocomplete and Clippy havent translated a script from one language into another for me without major errors yet.

dan ,
@dan@upvote.au avatar

Glorified autocomplete

That’s what I need most of the time, though. I don’t see these AI things as replacing programmers or writing large chunks of code. I just see them as an improvement over the autocompletion/IntelliSense features we’re all using already.

coffee_poops , in AI Suggestions

Should be named timeRemaining, tbf.

Sorse , in White House weighing in on the big issues
@Sorse@discuss.tchncs.de avatar

nano >>>>>>> everything else

Emmie , in AI Suggestions

Ai wIlL eNsLAve huMaNs aNd rUlE tHe wOrLD

AI:

dariusj18 ,

If anything this is a great example of why that could happen. Simple leaps of logic without context.

Emmie , (edited )

I am just making fun of all those AI doomsayers on Reddit. It’s nowhere close enough to be even called such. It’s just a mindless algorithm, a tool. Math operation. Are calculators smart? Well yes from a certain point of view.

Sorse , in My Git Knowledge
@Sorse@discuss.tchncs.de avatar

My git knowledge:

git clone <url>

Wilzax , in My Git Knowledge

So do you guys pronounce it git or jit

d00phy ,

The holy war we deserve.

SpaceCowboy ,
@SpaceCowboy@lemmy.ca avatar

I pronounce it the correct way you silly git!

Wiz ,

Git off my lawn. Git!

m12421k ,

fortunately this one isn’t an acronym. so the pronunciation is obvious. 😊

Wilzax ,

Acronyms are still pronounced like the words they most closely resemble though

shasta ,

But git is not an acronym

madcaesar ,

This guy jits it

ikidd ,
@ikidd@lemmy.world avatar

Is that what we’re going to do tonight, we’re gonna fight?

jenny_ball ,
@jenny_ball@lemmy.world avatar

lol it’s on now!

DaleGribble88 ,
@DaleGribble88@programming.dev avatar
257m ,

Don’t start this. Its not like gif. Git is clearly pronounced like git. There is no possible argument you can make otherwise.

Wilzax ,

Same could be said about gif yet here are

WeLoveCastingSpellz ,

no

RandysGut ,
@RandysGut@lemmy.world avatar

The same as in giraffes giving ginormous gifts

Wiz ,

So, it’s pronounced “jight”?

ohlaph ,

jean, we pronounce it jean.

Sorse ,
@Sorse@discuss.tchncs.de avatar

Yit

RamdomSlaphead , in Bug fixing ways
gravitas_deficiency , in Bug fixing ways

So true it hurts

rtxn , in I still don't get buffers

Gee, X11! How come your mom lets you have THREE clipboards?

whats_all_this_then OP ,

Wait is that an actual thing?

rtxn ,

Yes. X11 replaced X10’s obsolete cut buffers (which can be modified by any process) with state-of-the-art selections. There are three selections in X11: a primary, a secondary, and a clipboard.

In modern desktops, the primary selection is overwritten every time you select some text (including in the terminal), which makes its content very ephemeral. You can paste it with the middle mouse button.

The secondary selection is generally not used, but it’s present in the specification, and you can use xclip -selection secondary to access it. Wayland doesn’t seem to have a secondary selection.

The clipboard selection is what most people understand to be THE clipboard. You have to write to it explicitly (through a keyboard shortcut, API, or CLI tool), and its content persists until it is overwritten, explicitly cleared, or the X server is killed. While the primary and secondary can only contain text, the clipboard can contain many kinds of data.

whats_all_this_then OP ,

Okay I had no.idea. So on Plasma, I’m guessing when I copy anything, it’s writing it both the primary selection, and the clipboard selection and that’s how it stays in the clipboard manager thingy?

rtxn ,

Not exactly. When you select a text and copy it, the two selections will end up containing the same text, but you can write to either selection without affecing the other by using an API, e.g. a website’s “copy to clipboard” button, or xclip/wl-copy.

Clipboard managers with a history feature are an altogether different layer on top of the standard selections. Plasma’s clipboard manager only cares about the clipboard selection, and even then, there are exceptions (e.g. copying a password for KeepassXC doesn’t save it in the history).

stepan ,

Plasma has a setting to synchronize selection and clipboard or something like that.

QuazarOmega ,

In modern desktops, the primary selection is overwritten every time you select some text

( °O°)
You just opened a whole new world for me, it works in Wayland too

JoYo ,
@JoYo@lemmy.ml avatar

then theyre all ignored by x-clip

xD

stepan , in I still don't get buffers

Same thing but reversed with multiple cursors :/

whats_all_this_then OP ,

That’s actually the biggest thing I miss about VSCode

chihiro ,

github.com/mg979/vim-visual-multi

I also missed multiple courses, but I started using vim-visual-multi in my nvim config and it’s been great. There’s a few others I tried that I couldn’t get to work quite right (usually some weird conflict with nvim-cmp) but I’ve had the best success with vim-visual-multi.

whats_all_this_then OP ,

I’m gonma bookmark and try this next time I find the courage to mess around my nvim config. That last none_ls breaking change has made me very hesitant to mess around with things that aren’t just colorschemes ngl.

stepan ,

I also tried github.com/smoka7/multicursors.nvim and the experience was horrible. Then I tried github.com/…/multiple-cursors.nvim and I absolutely love it. It has conflict with cmp, but the README has great tutorial on disabling cmp only when using multiple cursors, and dealing with other plugins to maks them work or disable them in the multicursor mode.

JoYo ,
@JoYo@lemmy.ml avatar

helix has a pretty good mc system in the select mode.

Jumuta ,

search in selection is such a cool workflow

JoYo ,
@JoYo@lemmy.ml avatar

yah ive been swapping to hx wherever i need to do refactoring, it’s too good to miss out.

space-r ename symbol for easymode.

whats_all_this_then OP ,

This feels like something I also do in neovim unless I’m misunderstanding you completely. Is it highlighting text and having yoir search apply just to the highlighted text?

If so, yes it’s great whenever you use it

Jumuta ,

yeah, and helix spawns a cursor at every match

whats_all_this_then OP ,

I’ve been meaning to check helix out for a while now but haven’t found the time :(

pfannkuchen_gesicht ,

huh?

Sotuanduso ,

Same here, but Atom. Maybe I should start using Atom again.

thanatotus ,

FYI atom project is dead. There is a community form available but it was to buggy for me.

Sotuanduso ,

I know it’s dead. I still have it, and it still does all I want from an IDE.

drmoose , in Bug fixing ways

Where’s the pact with the devil and can it teach me rust and what do I need to pay. Asking for a friend.

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