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.

pewgar_seemsimandroid , in I still don't get buffers

any emacs elitists here?

JoYo ,
@JoYo@lemmy.ml avatar

they have no use for copy buffers, they are still configuring emacs.

xmunk ,

No, but I’m happy to talk to you about our lord and savior nano

whats_all_this_then OP ,

Get out

xmunk ,

Sorry, is that… esc… then : then q and ! or did I get the order wrong? Can’t I just ctrl+o ctrl+x?

Baleine ,
@Baleine@jlai.lu avatar

We be rocking that kill ring !

whats_all_this_then OP ,

Obligatory boo and/or hiss

I’ve also been meaning to give emacs a try but haven’t found the time or energy to figure out how to exit vim

pewgar_seemsimandroid ,

just get QT browser and search it with any search engine

TheOakTree ,

I had to learn emacs for my engineering computation class, up to the point that we were required to present our code in emacs if we had questions to ask during office hours.

I got quite used to it by the end of that course.

Hexarei ,
@Hexarei@programming.dev avatar

What would an operating system need yank registers for? Maybe if you get a good text editor to go with it, like Evil Mode 😉

sping ,

I’m just an emacs … enjoyer (…?) and I just don’t understand the post. I’m pretty sure buffers here refer to something different from emacs buffers as they’re completely unrelated to clipboards. Then from a quick scan of the plug-in mentioned it seems to mimic the clipboard ring emacs has had for many decades (always?).

Basically I have no idea what’s going on here.

cupcakezealot , in AI Suggestions
@cupcakezealot@lemmy.blahaj.zone avatar

wibbly wobbly timey wimey

CompostMaterial , in AI Suggestions

You got it admit, it is a good suggestion. It just wasn’t the right one. But it is trained well enough to correlate left and right together. Since those are very commonly associated together it is certainly a logical choice.

bort ,

. But it is trained well enough to correlate left and right together

eliza could do that 60 years ago

marcos ,

Ah, come-on, why do you think Eliza could do that 60 years ago?

(It couldn’t. It’s at most 40 years old technology, and way more likely just 30. Even though you could program Eliza to do something like this, it would be way too specific for any use.)

bort ,

It’s at most 40 years old technolog

the 60s were 60 years ago

marcos ,

It’s the kind of thing you would see at the 90s.

The 60s had room-sized computers that were busy calculating payroll.

NikkiDimes ,

en.m.wikipedia.org/wiki/ELIZA

You could easily Google these things and educate yourself, but you choose to instead blindly spee your incorrect opinions.

You’re either an idiot or a troll, and frankly, I don’t care which. Just stop.

Matriks404 ,

huh

Morphit ,
@Morphit@feddit.uk avatar

Ah, come-on, why do you think Eliza could do that 60 years ago?

Does that question interest you?

FaceDeer ,
@FaceDeer@fedia.io avatar

Why hasn't it been incorporated into IDEs until now?

nxdefiant ,

Up until now most people hated when shit randomly popped up while they were typing.

The Apple went and made the iPhone and now we have a whole generation that expects it.

FaceDeer ,
@FaceDeer@fedia.io avatar

Within IDEs people go out of their way to install Intellisense so that "shit randomly pops up while they're typing." There are companies whose whole existence depends on people wanting that to happen.

best_username_ever ,

it’s good but it’s wrong

That’s impossible.

FaceDeer ,
@FaceDeer@fedia.io avatar

To the contrary, I see code like that all the time in my career. I've written some.

Tamkish ,

wdym it isn’t the right one? It clearly says time RIGHT

vox , (edited ) in AI Suggestions
@vox@sopuli.xyz avatar

don’t get the negativity towards copilot in other comments.
it’s a really smart autocomplete, and this is exactly what i wanted for the past 5 years.
(yeah it’s not going to replace programmers or whatever people’s exaggerated opinions of it are)

wanna quickly create a wgpu bind group?
let texture_bind_group = <tab> <tab> and it’s smart enough to understand the context and pull in texture and texture sampler that are already defined as local variables.

too lazy to type this obvious thing in?
(like of course the next opcode islet op = self.fetch();) just press tab and move on with your life.

wanna quickly refactor something?
select, ask CP Chat to “replace all if statements with match”, check if it’s correct and click confirm (it will even show git-style diffs, so it’s hard for something unexpected to slip in)

it’s not perfect, and it’s suggestions do not match your intention like 50% of the time but when they do match or your intention is REALLY obvious (like you already wrote a clear and concise variable name and need to complete the value), you’re a single keypress away from completing those 2 lines of code

It’s not a total deal breaker but it’s definitely very useful. (especially for me, because of my very short attention span. unless i can quickly complete a thing I’m currently working on in less than a minute i will forget about the next 10 things I was thinking of doing)

also i don’t believe the price is justified, but it’s free for students so of course I’m gonna use it.

(you just need to verify your student email and upload a photo of your student id on education.github.com, and you get a free gh copilot subscription, gh pro account, priority support and promos on loads of services like heroku etc while you’re a student)

bisby ,

too lazy to type this obvious thing in?

This has been the thing for me. I get really bored and lose focus when doing all the obvious repetitive stuff. And the obvious stuff is the stuff I find copilot does best. For anything that requires thought I’m engaged. Those are the fun parts of the job. It lets me do more of the fun part.

The one major downside that I’ve found is that sometimes I just want to tab complete a long variable/function name, and because of copilot i dont have “old style” tab completion anymore. (I could definitely still handle this myself, but i haven’t)

edit: this all to say that I don’t use copilot to write code that I don’t know how to write, I use copilot to write code that I’ve written 1000 times before and don’t want to write again. Copilot does a good job of looking through all the open files for context to help make sure the suggestions actually fit into the codebase’s pre-existing style.

CrossbarSwitch ,

I ended up making copilots auto complete use ctrl+tab and its been amazing.

MonkderDritte ,

What, you write your stuff always from scratch again?

vox ,
@vox@sopuli.xyz avatar

well I’m using lower-ish-level stuff like wgpu a lot, so there’s a lot of repeated code in my codebase with only small variations, but I can’t really encapsulate it into anything since all of my pipelines are completely different and have different requirements (it’s basically already as encapsulated as it gets without limiting freedom)

MonkderDritte ,

Ah, yeah, situations like this always hurt me somewhere.

evatronic ,

I’ve been using it a lot lately in the day job.

My experience has been it’s close but wrong often.

It shines when I am doing the same thing for 20 variables, but then I should be using a loop instead and copilot won’t go there.

oldfart ,

What’s CP Chat? Im a bit afraid to type that into a search engine but it seems to be what I’m missing in my Copilot-assisted flow. It’s a great autocomplete but sometimes refactoring would be useful too.

vox ,
@vox@sopuli.xyz avatar

Copilot Chat

oldfart ,

Seems so obvious now, thanks

Sotuanduso , in AI Suggestions

I was surprised when I made attackPower and it suggested defensePower next. It was then that it sunk in that the autocomplete was AI.

pyre ,

i mean, “AI” is already a glorified autocomplete

Sotuanduso ,

Well, LLMs are, at least. But also, autocomplete is already AI, so really LLMs are just glorified AI. And that checks out, they are the ones that get all the glory*. Everything else is just spooky algorithms.

*Except for walking robots and stuff like that.

FaceDeer ,
@FaceDeer@fedia.io avatar

I am becoming increasingly convinced that so is the human brain.

pyre ,

then i hope it’s not swiftkey’s

Emmie ,

AI of today is a marketing slogan. Well, same as AI of yesterday. There is so much AI around us but not an ounce of intelligence.

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.

andrew_bidlaw , in AI Suggestions

It knows, the time is right.

pyre ,

when the AI says the time is right it sounds ominous

andrew_bidlaw ,

And then it replaces datetime output with the countdown.

Klear ,

The time is right when there’s no time left.

JATtho , in gut pull

My most common typo is gti <random command> and I’m considering to alias it as rm -rf --no-preserve-root /

flying_sheep ,
@flying_sheep@lemmy.ml avatar
JATtho ,

I was suspicious as heck of this link, but I thank you for being benign.

kamen , in AI Suggestions

The opposite of the opposite of “left” is “wrong”.

Land_Strider ,

Thanks, this solution worked for me.

Edit: What the hell, I’m trying to reply to a parent comment below.

Klear ,

Something went not not left.

xmunk , in They fish(1)'d her out of the sewers last night as she failed to stumble home after a night of binge drinking

Sorry, but do you not want a pack of guys to be piping your mom? Assuming it’s all consensual, most moms enjoy getting piped too!

iAvicenna , in I still don't get buffers
@iAvicenna@lemmy.world avatar

Are they also replacing X with q! ?

cybersandwich , in I still don't get buffers

I can’t tell if ops joke is “intentionally confusing buffers with registers” and everyone is playing along or if people aren’t making the distinction between the two in this thread.

Which is ironic and humorous…potentially by accident.

whats_all_this_then OP ,

I’m an idiot and I think I confused the two haha

My thought process based on when I setup my config: “yank copies to my main ‘buffer’, <leader> yank copies to system clipboard through that special ‘buffer’, and <leader> delete deletes without replacing what’s in my main ‘buffer’. I have multiple clipboards!”

Completely forgot they’re called registers and that buffers are just “where text is” (at least as far as I understand it)

konkonjoja ,

I kind of assumed that his comment was independent of the meme he posted and served more to underline a perceived power that vim has over other editors. In this case a power OP doesn’t even understand/use himself.

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!

remotelove , in Always follow 3-2-1 backup rule

Throttle your posts, for fucks sake.

Sorse , (edited )
@Sorse@discuss.tchncs.de avatar
AnActOfCreation ,
@AnActOfCreation@programming.dev avatar

Make sure to put the word spoiler on the first line after the colons for it to get rendered correctly.

Like this


<span style="color:#323232;">::: spoiler screenshots incase it gets deleted
</span><span style="color:#323232;">Your images here
</span><span style="color:#323232;">:::
</span>

Looks like this

screenshots incase it gets deletedYour images here

Sorse ,
@Sorse@discuss.tchncs.de avatar

Thanks! Didn’t know that

remotelove ,

Yeah, like many other people, I browse /all. Dudes post flooded my feed, basically.

Also, that account should be tagged as a bot. While some people may post this stuff manually, it seems kinda stupid to do so. I have no issues with bots unless they aren’t tagged as such. (I tickles my OCD a little, I suppose.)

Meh, I just blocked OP and all is well.

fckreddit , in Responsive Design Go Brrrr

I am a backend dev, but this shit is why I have utmost respect for frontend devs, also because they know how to center a div.

coffee_poops ,

With flexbox and grid there is no excuse for not knowing how to do that at this point.

Beetschnapps ,

There wasn’t an excuse in the first place. It’s kinda amazing anyone can say centering a div was ever hard, especially if you have a computer science degree.

I mean sure it’s different from say object-oriented programming… but it’s frankly weird in a professional setting hearing grown adults with plenty of experience struggle over basic front-end work.

Miaou ,

Computer science doesn’t have much to do with making websites but ok

coffee_poops ,

Not web sites but certainly web applications.

umbrella ,
@umbrella@lemmy.ml avatar

honestly a lot of the people trying to pass as big pros on the internet are beginners. however its the most common issue with css, so its solution is dead easy to fucking find.

with that said, if i havent been using css in a while ill probably have to look it up.

tiredofsametab ,

<center><table><tr><th>best</th><th>layout</th></tr></table></center>

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