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.

sleepyTonia , in c/unixsocks for more
@sleepyTonia@programming.dev avatar

… I’m a little sad this isn’t an actual community.
Edit: Nevermind, found it~ (Scroll down)

Randelung , in c/unixsocks for more

You see, because of the stark absence of women, we kinda had to make our own.

cordlesslamp ,

Can’t argue with that logic. Where do I sign up?

BilboBargains , in Senior dev be like...

Do you have excess creative energy?

Pour it into discussion that achieves nothing of value.

nxdefiant ,

Have you considered writing your own projects that you have to hide from your employers, and be careful with whom you discuss, so as to avoid the legal complications of the company owning your work?

tatterdemalion , in Untagging images from AWS ECR (without deleting be like
@tatterdemalion@programming.dev avatar

AWS CLI is trash compared to gcloud in general.

deegeese ,

The Wal-Mart of cloud providers.

reverendsteveii , in Senior dev be like...

not my experience at all across 3 separate companies. Ime senior engineers are the highest level that still spends most of the day heads down most days, and that’s why I’m gonna stick it out at this level as long as I can.

neuracnu , in Senior dev be like...
@neuracnu@lemmy.blahaj.zone avatar

No wonder I can’t find a TPM job anywhere. The senior devs are doing all my work.

Shadowedcross , in gut pull

This kills the computer.

zqwzzle , in gut pull

If you ever want to bullshit a junior, use the git man page generator

PlexSheep , in Untagging images from AWS ECR (without deleting be like

What is untag?

ruffsl OP ,
@ruffsl@programming.dev avatar

Tagging an image is simply associating a string value to an image pushed to a container registry, as a human readable identifier. Unlike an image ID or image digest sha, an image tag is only loosely associated, and can be remapped later to another image in the same registry repo, e.g latest. Untagging is simply removing the tag from the registry, but not necessarily the associated image itself.

PlexSheep ,

So like tags in git, and deleting tags in git. Got it.

Ephera , in I still don't get buffers

Nevermind simply having an OS-level clipboard manager…

mp3 ,
@mp3@lemmy.ca avatar

Win+V works decently enough for me.

jnk ,

Same for plasma, global clipboard is just more convenient

whats_all_this_then OP ,

Global clipboard is chef’s kiss. Back when I was on Ubuntu/Gnome, I had to install CopyQ but having one come with the OS is great

BastingChemina ,

Global clipboard synced with the smartphone thanks to KDE connect !

pineapplelover ,

I think windows+v syncs to microsoft servers or something. I remember when I was running chris titus tech’s debloat script it removed that functionality.

whats_all_this_then OP ,

Holy crap I think that may be why I never used it. Fuck how much Windows likes to calls home

Sotuanduso ,

I googled it, there is an option to sync it to your Microsoft account, but I can’t say whether that’s on by default when you turn on clipboard history because I skipped adding a Microsoft account. But if it is, you can turn it off in Settings -> System -> Clipboard.

xmunk ,

An excellent option to have when one of the major use cases for clipboards is as an intermediary for password managers.

I hope they eventually get sued into the fucking ground.

Aux ,

Password managers should mark their clipboard data as sensitive and clean it up. Use a proper password manager and there won’t be issues.

whats_all_this_then OP ,

I’m don’t know why but I’ve never used windows clipboard manager, which is weird because I go out of my way to make sure I have one when I’m on linux

MrScottyTay ,

There is for windows, and it’s further improved if you get power toys too

riot ,
@riot@lemmy.world avatar

I took a look through my power toys settings, but couldn’t find anything there that had to do with the win+v clipboard history. Google hasn’t been any help either. What is it that I’m overlooking? How does powertoys improve the clipboard history feature?

MrScottyTay ,

I’m currently not on my windows pc at the moment but it could be that it’s functionality might actually be native to win 11? I don’t realise use it myself I just remember seeing it when originally getting powertoys and thinking that was cool

riot ,
@riot@lemmy.world avatar

The Clipboard History is indeed a part of Windows 10. But I was wondering how PowerToys enhanced the functionality of it.

MrScottyTay ,

I’ve probably completely misremembered it and maybe learned of it the same time i learned about and installed powertoys. My bad.

whats_all_this_then OP ,

Nah that’d be too intuitive

In all seriousness though, I kinda appreciate moving things around in my editor without losing that one snipet I copied for later

marcos ,

Application specific buffers are the first thing I disable on emacs. The OS one isn’t just integrated with every other normal piece of software, it’s also more powerful and easier to use.

… at least on my Linux, YMMV.

PlexSheep ,

The os buffer is just another buffer that I can yank into.

Cwilliams ,

Or the KDE System tray…

Ephera ,

Ah, that is what I meant with OS-level clipboard manager (in fact, that is precisely what I thought of).

Cwilliams ,

Oh, I gotcha now

pewpew ,
@pewpew@feddit.it avatar

Windows also has it, but it’s disabled by default for some reason

Aux ,

It’s not disabled.

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.

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.

JoYo , in I still don't get buffers
@JoYo@lemmy.ml avatar

ive never had to think about clipboard buffers until i used a modal editor.

now i spend %60 of my time trying to figure out where the copied symbol went.

evatronic ,

I don’t have the name handy, but there’s at least one plugin for vim that shows buffer previews in a popup. I’ve got it mapped to leader-sb (for “show buffer”).

JoYo ,
@JoYo@lemmy.ml avatar

yah, helix has that in the info bar oob.

im just not thinking about that when im copying shit, i just want to copy paste like it’s 1999.

whats_all_this_then OP ,

Telescope?

whats_all_this_then OP ,

So far I haven’t been brave enough for that feature. It’s either “that main place yank goes”, “system clipboard”, or “that place that makes it disappear” for me

unhinge ,

You can see all registers in use with :registers, to paste from a register say "2 in insert mode use key combination <ctrl-r>2 or in normal mode "2p. You can check out more in :help registers. Unnamed register or “” is the system clipboard I think. To copy texts in a register you can prepend yank (/delete/cut, etc.) with that register "_ (for black hole register[^black_hole]) This is for neovim. Have keybinds for them and there saved you a plugin :D

[^black_hole]: Text yanked in this register is gone, i.e. it’s not saved in any register.

tsonfeir , in AI Suggestions
@tsonfeir@lemm.ee avatar

Just…. Type it?

How lazy are we becoming?

humorlessrepost ,

This wasn’t made for programmers. It was made for middle management who think the reason the ticket is taking so long is because the devs can’t type more words per minute.

FooBarrington ,

Guess I’m not a programmer, because this feature has been a real god-send in my recent projects.

EatATaco ,

The other poster is either speaking from a place of ignorance, as they’ve never really used it, of they just aren’t smart enough to learn how to use a new tool.

As much as middle management sucks, devs blaming management for their own inability to learn is almost on the same level.

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

i mean i still think tab/auto completion is good to save time.

the problem is when people become reliant on it and just have it write entire chucks of code without going through it and checking it or changing it after the baseline is done.

fossit ,

Then that wouldn’t exactly be a time saver, but rather time-consuming? Paradox

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

i mean finishing a variable declare with a tab is pretty convenient.

as is autocompleting an html5 structure.

GammaGames ,

Yeah, usually it’s pretty good autocomplete. Definitely makes my coding faster (and highlighting a chunk of SQL and asking it to modify it in plain English is magic)

tsonfeir ,
@tsonfeir@lemm.ee avatar

Autocomplete is fine, but do we need “AI” to figure out left and right?

And I agree, chunks of code are bad.

tiefling , (edited )

Stuff like this is really useful when variable names are annoying, or when you have to repeat the same monotonous pattern over a large batch of code.

My favorite use of AI in code so far has been refactoring deprecated feature flags. “Replace enableXYZFeatureFlag with true and optimize the code”. Bam, 1-2 hours’ worth of crunch work solved in minutes.

Kache ,

If it takes 1+ hours of work to remove a feature flag branch in an area of code, I wouldn’t trust the correctness of anything the AI writes and would be super skeptical about anything the humans had written.

tiefling ,

It takes a long time because it hits a lot of files, not because it’s logically complex. Also, that’s why unit and integration tests exist.

BurningnnTree ,

Can you please describe how you do this? I thought Github Copilot can only make changes to the currently open tab? It’s been a few months since I’ve used it, and I’ve only used the Visual Studio version, which I think isn’t as good as the Visual Studio Code version. Has Copilot already gotten to the point where you can tell it to make changes to an entire codebase?

tiefling ,

I do go file by file, but I just copy and paste the same query into each. It also gives me a chance to do a quick review before moving on. It’s still a manual process but it’s a HELL of a lot faster than manually refactoring.

(I can’t give too many more details though since I use proprietary software that isn’t public facing)

Oinks ,
@Oinks@lemmy.blahaj.zone avatar

You could say that about any kind of autocomplete. Why would people install snippet plugins into their vim/emacs? Sure you can just type everything by hand but it’s just more convenient.

Personally I find these kinds of inline AI suggestions make a more convincing use case than trying to prompt engineer a Chat based LLM and diverting your attention to phrasing specifics instead of the actual problem space.

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