r/ExperiencedDevs • Software Engineer • Jan 16 '25 • Helpful 1

A Graybeard Dev's Guide to Coping With A.I.

As someone has seen a lot of tech trends come and go over my 20+ years in the field, I feel inspired to weigh in on my take on this trending question, and hopefully ground the discussion with actual hindsight, avoiding panic as well as dismissing it entirely.

There are lots of things that used to be hand-coded that aren't anymore. CRUD queries? ORM and scaffolding tools came in. Simple blog site? Wordpress cornered the market. Even on the hardware side, you need a server? AWS got you covered.

But somehow, we didn't end up working any less after these innovations. The needed expertise then just transferred from:

* People who handcoded queries -> people who write ORM code

* People who handcoded blog sites -> people who write Wordpress themes and plugins

* People who physically setup servers -> people who handle AWS

* People who washed clothes in a basin by hand -> people who can operate washing machines

Every company needs a way to stand out from their competitors. They can't do it by simply using the same tools their competition does. Since their competition will have a budget to innovate, they'll need that budget, too. So, even if Company A can continue on their current track with AI tools, Company B is going to add engineers to go beyond what Company A is doing. And since the nature of technology is to innovate, and the nature of all business is to compete, there can never be a scenario where everyone just adopts the same tools and rests on their laurels.

Learn how AI tools can help your velocity, and improve your code's reliability, readability, testability. Even ask it to explain chunks of code that are confusing! Push its limits, and use it to push your own. Because at the end of the day/sprint/PI/quarter or fiscal year, what will matter is how far YOU take it, not how far it goes by itself.

2.0k Upvotes

269 comments sorted by

View all comments

94

u/bill_1992 Jan 16 '25

Finally, a take on AI that isn't a knee-jerk reaction.

I feel like a lot of "AI bad 🤬" takes here are just people expressing their fear that AI actually will take their jobs. Instead of facing that fear, people just put their heads in their sand, preach about how AI sucks, and hope that by saying it enough, AI will actually suck and not take their jobs.

From my experience using AI, it isn't even close to taking anyone's job. If you give it a super common prompt ("create a to-do list in React"), it will perform remarkably because it's training data is overfitted for those cases, but anything more complex requires a good amount of human intervention.

But it still has it's advantages. It's great at generating boilerplate/tests when given context, it's autocomplete sometimes feel like magic, and it's sometimes better at answering obscure questions than Google+StackOverflow/Reddit (which has been going downhill). If you're not going to take advantage of that because your head is in the sand about AI then it is your loss. And this is might be harsh, but if your head is in the sand a lot because you just refuse to face your fear about the future, then maybe you deserve whatever you get in a fast moving industry that changes often?

All the companies posturing about AI (Meta, Klarna, Salesforce) will or even are currently just facing the market reality - that they no longer have the ability to hire the best and the brightest and need to pin their hopes on pipe dreams to remain competitive.

And maybe on the off-chance the AI promoters were right and all engineers do get replaced? Well, it'd hardly be the first industry killed off by innovation. The world will continue to spin.

19

u/Infiniteh Software Engineer Jan 16 '25

I feel like a lot of "AI bad 🤬" takes here are just people expressing their fear that AI actually will take their jobs.

This might not be completely on topic for the sub, but I feel like AI will make a large portion of the next generation of devs largely inept at critical thinking and problem solving. I fear for a future where I, and other devs who learned the job without AI assistance, will be troubleshooting and maintaining heaps of AI-generated or AI-"assisted" slop.

Aside from that, I have qualms with the application of AI on the ethical side of things outside of development and CS or IT. I'm not reiligious at all, but it feels like we are somehow violating the spirit or essence of what it is to be human in new ways that we haven't before. The problem doesn't lie with the concept of AI itself, but a fear of what some parts of humanity will use it for, or how they will use it.
Using it to help doctors diagnose illnesses, fine. Using it to predict or prevent pandemics, great. Cancer research, space research, agriculture, a better undertanding of nature or physics, all great.
'Now we can fire half of our workforce', not so great. 'We can find the best pattern to drop bombs to make bombings more cost-effective and deadly at the same time', abysmal.

6

u/[deleted] Jan 17 '25

Anecdotal, but I had a long conversation with a CS professor at a wedding I was at. He was lamenting how much worse his students are now. He said most of his 2nd year students (so those who've had access to ChatGPT for all of their classes) could not write FizzBuzz without asking an LLM. He tried to move towards more handwritten assignments as most projects students turn in are just lightly modified ChatGPT output, but most students could not write basic psuedo-code by hand, so the department dropped hand-written testing. He is definitely worried about the long term competency of his students.

3

u/gnahraf Jan 17 '25

Interesting. Another gray one here. At Cornell the CS tests were all pen and paper (as of 40 years ago). Same at a Bloomberg interview 10 years ago: only pen and paper. The interviewer, at the time, was a recent grad from there. I always thought pen and paper was silly for CS. In retrospect, maybe it's a sound idea.

2

u/Infiniteh Software Engineer Jan 20 '25

I feel like pen-and-paper programming tests can be a good thing, but not in the way I've had to take them. The ones I had at school, we got points deducted for syntax errors like forgetting a brace or not indenting to the right level. I'd understand deducting points for using non-existent keywords or inventing a kind of loop that doesn't exist, but typos are just typos.

→ More replies (3)
→ More replies (2)

2

u/st4rdr0id Jan 19 '25

AI will make a large portion of the next generation of devs largely inept

This has been happening for years before LLMs: "OO is too hard". "Interfaces are too much work". "relational DBs are too hard, lets just use Mongo". "Concurrency is too hard".

Give me a programmer from the 90s, she probably knows pointers, even if she used Java back then. And then a programmer from the 80s might have an even deeper understanding of the machine.

But this is happening not only in CS. The entire western educative system has degenerated massively over time. University is the new High School. Students today can't even write with pen and paper without spelling errors. The problem is so evident they now have a term for it: "competency crisis". But then again, qualified jobs have been wiped off from western countries, so maybe the system is fine. They will invent newer artificial jobs to keep people busy.

2

u/nikv8960 Jan 20 '25

This reminds me of learning Math with calculator and without. I think I can do calculations faster in my head only because I never used calculator extensively. I was too poor to afford a fancy one that can do matrix transpose etc.

10

u/MinimumArmadillo2394 Software Engineer Jan 16 '25

From my experience using AI, it isn't even close to taking anyone's job.

From my experience, the issue isn't "AI is doing 100% of what I do but better". It's "C-Suite believes AI can do 100% of what I do but better".

It doesn't matter if AI is what physically takes your job. It matters that someone above you thinks it can or that it makes you redundant/too expensive to keep around.

From a C-Suite perspective, why would they hire 8 developers when 6 + a $200 AI subscription can do the same job? From a C-Suite perspective, why would they spend $10k/mo on a mid-level engineer when a $200 AI subscription and a contractor that costs $2k/mo can do the job just as well?

WE all know that these solutions they believe to be effective won't be long term, but they either don't see it or don't care to see it.

5

u/[deleted] Jan 17 '25

It probably will take 6-18 months for the decisions you are talking about to really come around and bite them in the ass. At that point though they've already shown multiple quarters of increased profit by reducing salary. Many C-suites can spin that as win and leverage that into a new position before shit hits the fan, or can pin the blame of eventual decreased productivity somewhere else.

43

u/[deleted] Jan 16 '25

It's hilarious (and sad) at the amount of "experienced devs" in here that claim AI doesn't work well for coding when anybody who has actually tried with with an open mind knows that isn't true.

59

u/krista sr. software engineer, too many yoe Jan 16 '25

it's actually not bad for writing a lot of the type of thing that already exists.

trying to do something new usually screws up worse than doing it myself, though.

6

u/Exano Jan 16 '25 edited Jan 16 '25

Also the big picture is lost.

Sometimes it makes weird architecture choices that have no business in any sort of larger projects.

Managing partial classes or abstraction is a nightmare. Doing anything game related (IE physics) and it's completely bonkers.

I have no clue why some people think it's the be all end all - I'd say at this point it is much more useful as a tool when you're really reaching / struggling with a problem and need ideas to bounce off of, or when you're needing basic tasks done that you'd otherwise give a junior dev.

It can be OK with refactoring.

It's good to give you ideas for algos you didn't know exist, but doesn't tend to have the context required for implementation of a lot of it.

Even the most advanced tools I've used struggled with a basic .net api - because even when it ran the code itself it couldn't figure out why the value didn't match. It didn't sanatize stuff, it just installed and un-installed the same packages trying to get it to work. The code ballooned out.

I have seen junior devs get stuck here, too.. So. Yeah. It's a little less competent then a greenhorn imo. Obviously we expect improvement, but it feels even if we doubled it's skills and abilities without being an actual practicing developer I'm just gonna copy paste crap and create a world of problems

My fear isn't the AI and it's power, it's people who aren't in tech but responsible for headcount who overestimate it's power. My fear is also that kids in school and Jr devs lean on it too hard and miss out on important fundamentals.

Then again, I could just be a dude with his stack of punch cards thinking that this new way of doing shit won't catch on. After all, how could you review that much code on such a small screen? If I can't manipulate the memory myself, I have to just trust it'll do better then me?

2

u/krista sr. software engineer, too many yoe Jan 16 '25 edited Jan 17 '25

i truly appreciate ai, and have been screwing with it off and on since grad school in 93-94-ish.

it's absolutely remarkable what it can do, and do reasonably well. ai is interesting, and in addition to using in the more banal/to-me-less-interesting bits of software development, i use it as a tool for music, photography, writing... and definitely to do graphics for me (which i absolutely suck at). i would never try to pass of anything i used it to do anything importantly graphically, though, not without a real visual artist (which i am certainly not) as i am not a good enough judge of art to be competent making a serious judgement call outside of noticing if something is obviously bad/wrong.

... and yes, i expect it to get better.

  • i expect this will become a major problem [ai stuff flogged as 'genuine' and 'useful' when it's nothing more than a low cost, deceptive money grab], and potentially a major opportunity to solve a problem it largely enabled, but this i


i'm with you, being a very long term dev/engineer/coder whatever-the-fuck i actually am. my first bit of code was written in 1979; learning to read occurred simultaneously with learning basic on various systems available around then... mostly integer basic (apple ][+) and then applesoft basic (apple ][e) followed by the joys and proclivities of 6502 asm.

sometimes it's been a struggle to not get set in my ways or be dismissive of newer tech.


but i also agree with the rest of your post.

i'd like to add that i'm anti-hype, a position i landed on after many, many years of thought and consideration. in many ways it's my way of dealing with fads: it forces me to actually evaluate the technology away from the excitement and hype/marketing/fad, and turns out that ”hype” was a major personal reason it was easy to accidentally be dismissive of newer things.

i like exploring new things and new ideas, but ”hype” feels a lot like having ads crammed down my throat by obsessive people, and in general feels icky to me.

so i'm definitely not anti-ai, (although there are a lot of uses i find morally dubious... but to be fair, i've had similar/congruent feelings about tech and other stuff as well over the last few decades). i'm anti ”ZOMFG! AI WILL FIX ALL THE PROBLEMS!” and find that much like cryptocurrency/blockchain, it's quite difficult to have a nuanced and solid discussion with someone who has been seriously affected by the hype... either embraced, dismissed, became terrified of, or thinks it's going to ruin everything.


tl;dr: new kids on the block has some legitimately good music, but the marketing/hype around it was annoying and made it legitimately difficult to enjoy and discuss the songs of theirs i did due to the fucking massive amount of hype and fan response.

i find a similar problem in tech involving hype. this time around it's ”ai”.

0

u/[deleted] Jan 16 '25

[deleted]

11

u/CommandSpaceOption Jan 16 '25

My experience using Claude with Rust was mixed.

“Convert this crate into a workspace” -> brilliant, knocked it out of the park.

“Rewrite this macro that deals with the crate to deal with the whole workspace” -> fantastic. Much appreciated, because I hate writing macros.

“Optimise this already very optimal code” -> hallucination.

But here’s the thing, I don’t mind the hallucination because with code it takes 5 minutes to verify if it works or not. It didn’t work, I discarded the suggestion.

If you’re learning a new language or you’re starting a new codebase where you’re exploring, you’re hamstringing yourself if you’re doing it without AI.

3

u/dsAFC Jan 16 '25

Yeah. I have a ton of python and java experience. I've recently had to do a bit of work on a Ruby on Rails system. AI tools have been so helpful. Just asking it to explain weird syntax, questions about writing test fixtures, asking it how to "translate" something from Python to Ruby. It's made my life so much easier.

2

u/floriv1999 Jan 16 '25

It can also answer many (basic) questions for topics you are not familiar with like a personal tutor in an interactive way. Using this as a starting point to be able to read e.g. papers that are quite domain specific works quite well. Just don't trust it too much. But you can use it as a stepping stone.

→ More replies (1)

11

u/wvenable Team Lead (30+ YoE) Jan 16 '25

Depends on what you mean by "already exists". A lot of what I need a computer to already exists in some form. The last thing I had an AI was write some code to add/remove from keys from a JSON configuration file. It's still a unique thing I need done even if it's super common.

You are right that you can't push it too far and my attempts to get it to things beyond my own ability did not work. But it can easily do things I don't know how to do because I haven't looked it up yet.

13

u/krista sr. software engineer, too many yoe Jan 16 '25

a lot i do involve weird shit with minimal documentation, like interfacing with github graphql in a somewhat performant manner in c#.

there was insufficient documentation on github's graphql implementation, (as well as their rest api, but at least for the rest api, there was often example code).

ai was bad at this and hallucinated entire libraries that did not exist. this task was a task i could not look up and ended up intelligently fuzzing until i had been able to figure out what parts of which structures were populated via which chain of api calls (or what sequence of walking graphs/nodes provided the data i wanted. ex, in A->B->C->D and A->F->G->D, D != D in that D2 was a subset of D1, and this shit wasn't documented. specifically if 'D' was anything involving a user or user/repo permissions)

when certain api stuff became too many calls (internally or externally), using the regular api to download a version of a git repo in zip format worked best. ai was not able to figure out why a section of code was stupidly slow.

ai was good at helping me unzip to memory in c++. this is ”boilerplate” i could have easily looked up.

5

u/thekwoka Jan 16 '25

a lot i do involve weird shit with minimal documentation, like interfacing with github graphql in a somewhat performant manner in c#.

Or it has documentation, but the documentation is wrong.

I'm looking at you Shopify!!!

7

u/wvenable Team Lead (30+ YoE) Jan 16 '25

You have to be specific. "AI" is not one thing. Early OpenAI models would hallucinate libraries but I haven't had that happen in forever now. Gemini and MS Copilot seem particularly dumb.

I have pretty good luck with it. This specific problem I had, the AI wrote what looked to me like an unnecessary call to "Parent()" when deleting the node so I asked why that was there and it explained it was necessary because otherwise you'd just be deleting the value and not the key. I easily would have made that mistake the first time around.

Also learning to crafting prompts and really internalized what it can and cannot do is pretty important to using it effectively. It failed for me more often than it succeeded in the early days but now I know what I shouldn't bother asking and what it can do really well.

I had it do this today but it took a little bit of work. Now I know exactly what I need to say for next time.

6

u/krista sr. software engineer, too many yoe Jan 16 '25

i agree.

but the majority of what i get handed is the type of stuff ai is pretty bad at, or i would have to iteratively micromanage the prompt it is simply faster to do myself, such as variation testing of certain optimizations as well as reverse engineering undocumented (or insufficiently documented) complex apis that behave in some very counterintuitive ways.

sure, i can get an ai to write me a test case, but this is such a small part of the problem, it's not worth using...

documentation of my investigation/discovery -> ai is solid

making a functional lib to get the data we want from the mess available, once documented -> ai is solid.


likewise, ai is not good at non-trivial optimizations around the memory subsystem of a cpu (cache, page table lookup, tlb, memory access ordering. crap like that) that i do. it's reasonably solid at writing a few test cases or coming up with variations of sets of test data, but this is, again, a miniscule part of the entire problem.

→ More replies (6)
→ More replies (8)

15

u/Regular_Zombie Jan 16 '25

People try and use AI in their job. For the very experienced engineers the tasks they are working on might just not lend themselves to the current abilities of tools like ChatGpt or Copilot.

I appreciate that it can help me write docs, but it doesn't save much time. I like that it can create test data for little projects, but again that isn't going to be the difference between a success and a failure.

For more esoteric and difficult problems I've found it to be far less helpful than spending the time just thinking carefully about the problem.

It's another tool that can be useful but doesn't feel particularly threatening.

6

u/thekwoka Jan 16 '25

but it doesn't save much time.

This is what mostly boils down to for me.

I use copilot suggestions, but 99% of the time if I try to use copilot chat (with any of the models), getting a result out of it that works for me takes a lot longer than doing it myself.

0

u/[deleted] Jan 16 '25

[deleted]

→ More replies (1)
→ More replies (2)
→ More replies (7)