1225
all 50 comments
sorted by: hot top controversial new old
[-] bappity@lemmy.world 117 points 10 months ago

what programming is REALLY like:

[-] MasterNerd@lemm.ee 41 points 10 months ago* (last edited 10 months ago)

:q

Wait I forgot to write out

:wq

Shit I need sudo privileges

:q! 🥲

[-] bappity@lemmy.world 18 points 10 months ago

making a load of edits then FINDING OUT YOU WEREN'T SUDO AAAARGHHHHHHH

[-] icydefiance@lemm.ee 19 points 10 months ago

:w !sudo tee %

Of course that's impossible to remember, but you can just google "vim sudo save" or something like that to find it.

[-] thepianistfroggollum@lemmynsfw.com 5 points 10 months ago

They make mouse pads with all of the shortcuts on them.

[-] uranibaba@lemmy.world 2 points 10 months ago
[-] gandalf_der_12te@feddit.de 4 points 10 months ago

nano tells you upfront when you're editing a file that you can't write to.

[-] icydefiance@lemm.ee 3 points 10 months ago

I don't think so, but you can always write the file somewhere else and then sudo mv it back.

[-] uranibaba@lemmy.world 2 points 10 months ago

Thats really smart

[-] _stevo_@lemmy.ml 2 points 10 months ago

Why oh why doesn't it put a small banner like nano on opening, you must wait until saving.

[-] PreviouslyAmused@lemmy.ml 2 points 10 months ago

Bam! Got it one!

Well done.

[-] MasterNerd@lemm.ee 2 points 10 months ago
[-] zerotime@feddit.de 12 points 10 months ago* (last edited 10 months ago)

That's why I use nano.

[-] DocMcStuffin@lemmy.world 11 points 10 months ago

You never have to exit vim when you make it your only editor.

[-] bleistift2@feddit.de 74 points 10 months ago

It’s incredibly how much of the work gets done while staring out the window thinking about nothing at all related to the task at hand.

[-] NocturnalMorning@lemmy.world 45 points 10 months ago

Definitely solved a problem or two while I was sleeping.

[-] Zaphod@discuss.tchncs.de 20 points 10 months ago

Since you spent your sleep being productive, should that count as overtime?

[-] NocturnalMorning@lemmy.world 4 points 10 months ago

Maybe, but did it? Absolutely not.

[-] theneverfox@pawb.social 5 points 10 months ago

When I was working on my last big project, every morning I started to be between dreaming and waking up in the code world, chasing through the flows of data from various perspectives.

I didn't get the same "aha!" Moments that sneak up on you, but it did help me understand the system I built

[-] TheOSINTguy@sh.itjust.works 28 points 10 months ago

I thought it was copy and pasting from stack overflow

[-] MeatsOfRage@lemmy.world 24 points 10 months ago* (last edited 10 months ago)

Now a days it's:

  • Open ChatGPT
  • Paste code
  • "Can you just fix this for me?"
[-] virku@lemmy.world 11 points 10 months ago

ChatGPT has taught me so much basic programming I should have learned years ago. Don't know if I'll remember any of it since Ill just end up pasting my almost working stuff into ChatGPT again once I'm stuck.

[-] VantaBrandon@lemmy.world 7 points 10 months ago

^^^ How skynet was born, ChatGPT injecting subroutines copied by lackadaisical programmers copying and pasting without checking

[-] virku@lemmy.world 2 points 10 months ago* (last edited 10 months ago)

Oh I'm reading and making sure I understand everything. I usually write the suggestions into my code myself to try to get it into my fingers. But it is usually basic stuff I haven't done very often I struggle with. Like building a JSON as an object by adding each part step by step and serializing every input properly, instead of just building the JSON string by hand.

[-] ChiefSinner@lemm.ee 6 points 10 months ago

Chatgpt is good for code reviews. I wouldn't trust it for making code though.

[-] pirat@lemmy.world 4 points 10 months ago* (last edited 10 months ago)

Are there any other LLM interfaces or co-pilot programming tools you'd recommend over ChatGPT, or wouldn't you trust LLMs in general?

As I see it, since we can keep iterating, reviewing, rewriting prompts, and even use ~~tools~~ frameworks like autogen to let multiple LLMs interact to solve a problem on our behalf, your take is somehow only diggin' the surface.

[-] ChiefSinner@lemm.ee 2 points 10 months ago* (last edited 10 months ago)

Mostly, its my own personal choice / preference.

When I see chatgpt spun up code, sometimes its rock solid. Sometimes it uses weird logic that is hard to follow. I prefer it to review my code, rather than review its.

I'm kind of partial to how military concepts use cases for ai. Like anything that can do damage or complex tasks must be done by a human. Mediocre tasks, I can see a use for it.

Like for instance, write a code to automate scheduling jobs to backup multiple systems using this fileset to backup or skip I'd feel OK to let ai do. They should all be basically the same. But to script code that is critical to infrastructure and/or complex I feel it is not the right tool to use.

Edit: all LLMs are basically the same imo. The github one might have access to more code though, idk never used it. If it does look at private repos, then I'd say it would be better, but honestly I think they're about the same.

[-] pirat@lemmy.world 2 points 10 months ago

Don't you think it's just a question of time before it's becoming good enough or better than us at some of these tasks? I do. With better training data, more parameters, better quantization, and now even memory management with memGPT, I see some very interesting evolutions becoming possible.

To me, saying "all LLMs are the same", sounds like saying "all humans are the same", to which I strongly disagree. Different people are good at different things. Otherwise, there'd be no need to hire any specialized workers.

Military usecases is a big ethical discussion. Autonomous drones sound pretty scary, at least as long as the technologies are not fully understood. Many people would probably agree that humans should always stay in control when serious damage could be done. However, many are ok with self-driving cars etc. There are many answers to be found in this regard, but I'm not sure this thread is the place to find them... However, I'd still like to hear if you have any thoughts to add on autonomous machines.

[-] _dev_null@lemmy.zxcvn.xyz 1 points 10 months ago

I see some very interesting evolutions becoming possible

It's funny to me to think about LLMs training on LLM-generated input. Sort of like a photo copy of a photo copy (reminder to self: watch Multiplicity this weekend). Would seem like it'd reach some Kentucky level of generational inbreeding, but at a much much faster rate.

So how to stop LLM inbreeding? I think there's computer scientists that have already written entire theses/dissertations on detecting AI generated stuff. My understanding is it's getting more difficult, depending on the medium - generated text formats are generally harder to detect than imagery... for now.

[-] KSPAtlas@sopuli.xyz 3 points 10 months ago

In my experience, it tends to have difficulties with restrictions, and will attempt to use the normal method for things no matter what

[-] Xirup@lemmy.dbzer0.com 5 points 10 months ago* (last edited 10 months ago)

Should I feel bad if I feel referenced?

Edit: No. Not really, and neither does anyone else reading this. It's stupid to feel bad about what an absolute stranger says on the internet.

[-] Contend6248@feddit.de 5 points 10 months ago

If that's literally all you do, then yes. If not, you just know your tools.

[-] Xirup@lemmy.dbzer0.com 2 points 10 months ago* (last edited 10 months ago)

Not so, I code by myself and when I have a problem I ask ChatGPT but I do not say "do everything for me".

[-] Touching_Grass@lemmy.world 0 points 10 months ago

Look at John Henry over here

[-] Xirup@lemmy.dbzer0.com 1 points 10 months ago
[-] _dev_null@lemmy.zxcvn.xyz 1 points 10 months ago

I'm actually impressed how aptly that reference applies.

The legend of John Henry is that he beat a steam engine at the task of drilling through a mountain. John and his assistant (a shaker) had the advantage of being able to finely tune how the steel driver was placed, struck, and chips of rock moved out of the way. Contrast that with how the steam engine drill just rotely brute-force drilled, but got clogged by the resulting rock chips and could drill no more.

So the moral is the humans beat out the machine due to being able to finesse the situation, even though intuitively a machine should have been able to prevail due to its superior raw strength.

[-] enki@lemm.ee 6 points 10 months ago

Eventually, but it starts with Googling and trying a bunch of other example code and failing miserably.

[-] thepianistfroggollum@lemmynsfw.com 3 points 10 months ago

Don't forget rewriting the entire thing a few times until you find a library that actually does what you need it to.

[-] ChiefSinner@lemm.ee 0 points 10 months ago
[-] kubica@kbin.social 19 points 10 months ago

Does changing all coding styles in a project based on my mood count for something?

[-] NocturnalMorning@lemmy.world 9 points 10 months ago

Every time I try to do that they catch in a review, so I never get away with it except on personal projects where I decide every other day to change up where I'm keeping all the code.

[-] VantaBrandon@lemmy.world 15 points 10 months ago
[-] shasta@lemm.ee 1 points 10 months ago

Look at this absolutely spoiled chad with a half wall. What I wouldn't do to be dpat in the face. Oh you don't know how good you have it. Oh to br crucified!

[-] aluminium@lemmy.world 11 points 10 months ago

Depends, java the top picture because its dummy verbose!

[-] DeathWearsANecktie@lemm.ee 6 points 10 months ago

Is that the "I want to be a terrorist" kid?

[-] SnipingNinja@slrpnk.net 4 points 10 months ago
[-] Viking_Hippie@lemmy.world 4 points 10 months ago

Por que no los dos?

[-] ChiefSinner@lemm.ee 3 points 10 months ago

More like google searches and a lot of CTL+c and CTL+v

this post was submitted on 20 Oct 2023
1225 points (98.6% liked)

Lemmy Shitpost

25864 readers
3912 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 1 year ago
MODERATORS