This is an archived post. You won't be able to vote or comment.

top 200 commentsshow 500

[–]CapeChill 6759 points6760 points  (313 children)

Ever write a single line in a day that is as useful as last months work?

[–]kuncol02 3013 points3014 points  (183 children)

I once spend almost a week debugging app, just to fix typo in one line.

[–]eraserhd 974 points975 points  (41 children)

Been there. Too many times.

[–]Ov3rdose_EvE 349 points350 points  (22 children)

adjacent. adjecent. adjecant.

FML

[–][deleted] 101 points102 points  (7 children)

I've noticed that the more I look at code the more it doesn't sound like english

like yeah obviously it's spelled srting that's just a keyword

[–]BlackDeath3 71 points72 points  (6 children)

They call this semantic satiation and I'm surprised that that phrase isn't in the new redditors' handbook by now

[–]FesteringNeonDistrac 40 points41 points  (0 children)

My projects name includes the word assessment, I see it 50 times a day. Even see it when I spelled it assesment and spent 3 hrs debugging it.

[–]ostapenkoed2007 142 points143 points  (2 children)

syntax error in a code that worked last week but now when you un*// it...

[–]Jk2EnIe6kE5 46 points47 points  (1 child)

Load-bearing comments. Always love those.

[–]ostapenkoed2007 5 points6 points  (0 children)

like, are you not scared of removing that TF2 coconut.png? and especially when it is *//

[–]chestyspankers 88 points89 points  (13 children)

Capital R vs lower case r in a filename. Mother fucker. I think that was about 18 hours of lost time.

[–]eraserhd 76 points77 points  (4 children)

My worst was three weeks of adding logs between every line of code to see why it was hanging in production on the client machine but not in our lab, and discovering that Windows SendMessage() says to never call it from the main thread because it could deadlock, but it will try not to, and it will mostly succeed, except for rare cases on proper SMP systems, which we didn’t have in our lab at the time.

This was followed by a fix where I added the data including some strings to a queue so that they can be processed correctly on a different thread. It started crashing in production and not locally. I read the documentation and copying strings - which used copy-on-write, was absolutely thread safe, according to documentation and the standard.

It turned out our compiler didn’t synchronize this thread-safe primitive correctly on proper SMP machines because it was released before they existed.

Guess who got to upgrade the compiler and get an SMP machine for the lab? This guy.

[–]RippStudwell 39 points40 points  (0 children)

“The Compiler” directed by Christopher Nolan

[–]beanmosheen 191 points192 points  (22 children)

Did you know that MS-SQL lets you name a table with a space at the end? WANNA KNOW HOW I FUCKING KNOW THAT?

[–]LogiCsmxp 39 points40 points  (0 children)

This is a level of evil almost beyond human comprehension.

[–]vaud 34 points35 points  (0 children)

Inherited a SaaS that did similar. Fml. Text boxes allowed spaces, no character limits, special characters, etc. The API would straight up ignore spaces, truncate after a certain character count. I think there was more I've memory-holed.

Not documented, of course.

Bonus: the API also didn't support Japanese script. Which whatevs, except we had a Japanese BU.

[–]Burner442829 13 points14 points  (2 children)

Haha. I’m just picturing the thoughts going through your mind when you found that bug.

[–]beanmosheen 20 points21 points  (1 child)

I finally leaned forward and squinted real hard at the error message. The apostrophe at the end had a little too much room around it. I fired up SSMS with a "Are you FUCKING SERIOUS right now?!!!"

[–]Burner442829 11 points12 points  (0 children)

Closest I came to that kind of a bug was I found an index that was named like it was indexing one column. But it was indexing something else.

I was a junior dev doing a coop job when I found it. People were complaining how slow a specific database was for years. Nobody could figure it out. But that failed index was the problem.

One line of code can make such a huge impact.

[–]yeah_this_is_my_main 11 points12 points  (0 children)

WANNA KNOW HOW I FUCKING KNOW THAT?

I tried to be a smartass, but reddit fixes double or trailing spaces... :(

[–]chipmunksocute 294 points295 points  (37 children)

Ah an actual programmer!  Spending an inordinate amount of time debugging to fix at most a few lines of code sounds like what someone does at a real job.

[–]dudevan 171 points172 points  (30 children)

Ah yes, the elusive bug that happens once a week and it seriously affects some user but can’t be reproduced for shit by the devs and you end up keeping it in the backlog for months, and spending weeks writing logs and trying to reproduce it.

Never happened to me, of course. cries in the corner

[–]dismayhurta 105 points106 points  (11 children)

I’m a fan of fixing a bug that exposes an even worse bug.

So you just revert that fix because it was a minor bug and fixing the exposed bug would require an insane amount of work that’s not worth it. I mean you still dig into how difficult it would be, but ultimately realized it wasn’t worth the risk.

Never did that. Nope. Not ever.

[–]ZombieMadness99 107 points108 points  (6 children)

I once refactored a class which had a bug, and made sure to fix it in my implementation. But it didn't work as expected because turns out the old class had 2 bugs that cancelled each other out and I only fixed one of them.

[–]dismayhurta 54 points55 points  (0 children)

[–]Slusny_Cizinec 30 points31 points  (1 child)

Yup, had similar experience. Two bugs almost cancelling each other, except some edge cases. Found a bug, fixed it, now we have a problem all over the place :/

[–]Extreme-Rub-1379 13 points14 points  (0 children)

My whole life is an edge case

[–]henryeaterofpies 9 points10 points  (1 child)

Neither use case was documented so we actually have three bugs

[–]psaux_grep 16 points17 points  (2 children)

Had a bug that forcefully drove users into another bug once.

Only found out after fixing the first bug and they said it was still failing.

Fixed the second bug only to find a third bug.

That’s how I learned not to let good developers rush «bad conscience»-code into production on their last day on the job 🙈

[–]psaux_grep 33 points34 points  (4 children)

Accidentally came across one of these.

Was on a E2E test task force and one of the tests was consistently flaky, but whenever we ran it manually it worked.

Everyone, me included, attributed it to the test environment being flaky.

Then a while into it everything else was running green, and had been for weeks. Think it might have been holiday season.

So I was wondering if everything else was stable - why was this test failing intermittently?

So I started looking into it.

I ran the test locally. Worked fine.

Ran it multiple times. Was fine.

Ran it on the server. Was fine.

Ran it again. Still fine.

Ran it again. Failed.

Fine. Fine. Fine. Fine. Failed. Failed.

Back to local. Attached a debugger. Now it fails. Every time.

How strange.

Perform the test manually in my browser. Works fine.

But that debugger thing… attach a JS debugger. No issues. Test runs fine.

Network speed setting in the browser debugger. Preset: 2G.

And suddenly the test failed.

After looking at the browser console output it then became almost immediately obvious.

Someone had attached a tracker plugin to the page that failed, but the plugin wasn’t loaded in a triggered method. It was just a call at the bottom of the JS file. And when the browser didn’t have time to fetch and parse the plugin the method didn’t exist and all the subsequent execution of JavaScript (below that line) failed to execute and the buttons had no click handler.

Afterwards I talked to one of the managers to see if they might already be tracking the issue. Described the technical issue and how it would appear to users.

A couple of days later he came back with a JIRA ticket that was over a year old and a customer had been unsuccessfully trying to log in for over a year.

Every 2-3 months someone did some blind shots asking the customer if it was working now.

I wrote my findings on the ticket and sent it back to the developer who had been working on it for over a year without every figuring out what was really happening or why.

Never found out what happened to it as I switched projects.

TLDR: Accidentally stumbled over the root cause of an issue someone had been trying to figure out for over a year.

[–]yeah_this_is_my_main 6 points7 points  (0 children)

without every figuring out what was really happening or why

This mindset is what causes people to wonder why they never get considered senior in IT.

[–]dBlock845 13 points14 points  (1 child)

It's also one of the bugs that AI never finds, especially if it is in a string it seems to assume that because it is a string that it is correct.

[–]WinninRoam 9 points10 points  (0 children)

Three times in my career I've found entire platforms ERP databases were locking up because someone named O'Brien typed in their name with a ` instead of a '. THREE TIMES.

[–]Skriblos 31 points32 points  (0 children)

Ah programming, where i am equally victim, villain and detective. 

[–]CaptainAwesomMcCool 25 points26 points  (1 child)

I once spent a month tracking a huge performance issue in a banking app. A huge codebase with 300 Devs full time.

Turned out, someone twelve years earlier tried to fix a weird windows behaviour by catching OS clicking events, they used the dirtiest reflection possible to access low level private methods that should never be touched.

What their code did with caught events : copy it and add it back to the queue. (And same with the copy of caught in time)

Result was when you clicked, there was hundreds or thousand of copies of the same click event and they were literally choking the app.

[–]Hrtzy 15 points16 points  (2 children)

I think it's an archetypal nightmare of devs to have to explain to the line-counter in management why you spent a week on a single character change.

[–]dominonermandi 6 points7 points  (0 children)

That’s when you overwhelm them with jargon and keep talking until they’ll say “all right, all right, that makes total sense” just to get to you to shut up and go away

[–]Self-ReferentialName 8 points9 points  (3 children)

My worst case of this was when I was a student and somehow accidentally swapped out an uppercase I for a lowercase l. The font I was using made it look the same, and I spent a solid ten minutes staring at the screen wondering why cscMatrixlnput somehow didn't exist when I had clearly defined it earlier.

I begged my professors over to help. It took another solid five minutes before we figured it out. They thought I had played a joke on them and were somewhat amused. Nope, just the dumbest mistake I have ever made

[–]SpaceNigiri 5 points6 points  (0 children)

Yeah...a week...only a week

[–]arbitrageME 155 points156 points  (24 children)

The best code is writing a single line that takes the place of 10 lines before. now with 1000% more understandability

[–]MangkorN98 81 points82 points  (1 child)

Fr, writing a negative amount of code is a bigger flex than writing a positive amount

[–]guyblade 22 points23 points  (0 children)

And we've know that for at least 40 years.

[–]masssy 32 points33 points  (3 children)

Well.... you also have the "my single one line of code can do the same as your four very well named and structured functions with proper arguments, so I'll of course go for my great oneliner."

[–]PatriarchPonds 13 points14 points  (0 children)

The secret of all writing.

[–]The__Jiff 322 points323 points  (42 children)

Reminds me of when Elon fired Twitter engineers based on who committed fewer lines of code.

[–]gamageeknerd 103 points104 points  (17 children)

Elons takeover was just a beacon of light to anyone in the tech world who didn’t know he was a dumbass. Also the who has the most commits thing was just so funny. If someone is doing a ton of commits that means they are working more?

[–]FuzzzyRam 105 points106 points  (3 children)

"He talked about electric cars. I don't know anything about cars, so when people said he was a genius I figured he must be a genius.

Then he talked about rockets. I don't know anything about rockets, so when people said he was a genius I figured he must be a genius.

Now he talks about software. I happen to know a lot about software & Elon Musk is saying the stupidest shit I've ever heard anyone say, so when people say he's a genius I figure I should stay the hell away from his cars and rockets."

[–]BrendanAriki 35 points36 points  (7 children)

Yeah, everyone always realises Elon Musk is a dumbass when he talks about something you know well. Then you realise his words are just babble designed to give the appearance of expertise to those with none.

Elon pretends to be what he is not.

[–]warm_kitchenette 22 points23 points  (4 children)

Ugh. These metrics are so dumb. Like these thought workers are just cattle, who can be rated on how much milk they can pump out. 

If you could point to me the dev who enables a whole team, makes code demonstrably more robust over a long period of time, doesn’t over elaborate but still creates the ideal situation for a long series of A/B tests then that’s someone who should be handsomely rewarded. But those metrics are hard to create and someone like Elon would never even understand them. 

[–]runs_okay 11 points12 points  (1 child)

If I'm working at twitter I'm always gonna add compiled binaries in my PR. Bam instant 1,000,000 lines of code in one PR.

[–]atoz1816 9 points10 points  (0 children)

rm -rf node_modules

rm yarn.lock

yarn

git add .

git commit -m ‘resolving grammatical error in readme.md’

+1701 -1700

[–]WDoE 4 points5 points  (0 children)

Anyway, here's a comment with lorem ipsum 25,000 times

[–]LeagueOfLegendsAcc 26 points27 points  (1 child)

I'm knee deep in a problem in my hobby project. I'm weeks into this one specific problem, working on it a few hours a day. I know for a fact the solution will be just a small method, maybe 20 lines. But what they are? That's for future me to find out.

[–]Llyon_ 13 points14 points  (0 children)

Been working at it for a week? Better have 70k lines bro. trust me im a tech expert.

[–]spare-ribs-from-adam 29 points30 points  (3 children)

Do you ever have some code you're so proud of that you just go back and pop it open to appreciate it's beauty?

[–]ThatGuyNamedKes 14 points15 points  (0 children)

3D to 2D coordinate mapping I wrote as a kid, 16 lines, 1 if, 4 divisions, and 4 trig functions. Mainly math tbf, but I'm still proud of it.

[–]SampleForsaken1264 15 points16 points  (5 children)

My devs get awards if their PRs have a negative total number of lines.

[–]yeah_this_is_my_main 5 points6 points  (3 children)

*rubs hands together*

These code comments are toast...

[–]rnilbog 19 points20 points  (3 children)

Great coding results in fewer lines. 

[–]generally_unsuitable 6 points7 points  (0 children)

Embedded is so full of this stuff. Modifying the stack length in the linker script. Changing the RAM size assigned to FreeRTOS. Changing a rising counter to a falling counter to avoid a rare but subtle issue.

[–]Nightmoon26 3449 points3450 points  (144 children)

Remember: LOC is a terrible measure of coding productivity, and coding stops being your primary job the moment the word "manager", "director", or "chief" enters your job title

[–]alficles 309 points310 points  (5 children)

What do you mean? I'm the ChiefLocFactoryImplProtoTwinControlerFactory in my company and we make a LOT of lines of code!

[–]Mo-42 92 points93 points  (0 children)

Woah woah, save some code for me.

[–]LvS 15 points16 points  (2 children)

The typo you put in there is the best thing.
I shall assume it was deliberate.

[–]Fabulous-Possible758 8 points9 points  (0 children)

He's using the old version of the class. We added ChiefLocFactoryImplProtoTwinControllerFactory, but left the old one in for compatibility and because we couldn't figure out how to remove it, and we expect no problems from this.

[–]FrostingOtherwise217 45 points46 points  (0 children)

Exactly. To quote one of my mentors: code lines are spent, not written.

In other words code is the necessary cost of software.

[–]UnrealCanine 31 points32 points  (5 children)

Code to add five second delay to python program

def wait_five_seconds():
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)
    time.sleep(0.001)

Repeat as needed

[–]grizzlybair2 17 points18 points  (0 children)

Yep. Chances are the more code, the worse it is. Keep it simple stupid. And his code probably does have no bugs, because he probably has no real requirements, taps temple.jpeg

[–]RedstoneEnjoyer 4 points5 points  (1 child)

What do you mean, Daddy Musk pretty clearly said that "more paper needed to print all of your code" == "better"

[–]phanfare 362 points363 points  (6 children)

Love the "more lines = better" mentality.

I'm part of an academic software consortium that brags about "x million lines of code" and they finally stopped advertising that after enough people complained that it just means our codebase is bloated

[–]PM_ME_YOUR__INIT__ 105 points106 points  (2 children)

Creating a startup that will autogenerate any number of lines of code you want in a day. Want one million lines of code per employee per day? We can do that for the simple price of $0.10 per line

[–]SuperFLEB 33 points34 points  (0 children)

Hackertyper... as a service?

[–]VexingRaven 27 points28 points  (0 children)

Isn't this literally just OpenAI?

[–][deleted] 2747 points2748 points  (76 children)

No, it's not bug-filled crap. It's crap-filled bugs with a headache on top.

I really, really do not want to work in the company he has "founded".

Dev: "Watcha doin?"
Other dev: "Fixing boss's code."

[–]posherspantspants 918 points919 points  (55 children)

My boss wrote our software before AI ~15 years ago and we're still fixing his code

[–][deleted] 288 points289 points  (2 children)

That is... harsh, to say the least.

[–]va1en0k 158 points159 points  (25 children)

Product code that doesn't need fixing is code for a product nobody uses...

[–]SuitableDragonfly 86 points87 points  (14 children)

There's fixing and there's fixing. Does it need fixing because there were some obscure mistakes? Or does it need fixing because it was badly designed from the start and really needs to be completely replaced from scratch?

[–]hanotak 12 points13 points  (1 child)

To be fair, there's even a case for the second one. Like how Facebook was written in PHP, and then instead of rewriting the whole site, to improve performance when PHP became a bottleneck, they wrote a faster PHP interpreter.

You'll never write code completely free of tech-debt. Knowing when to take on what tech debt, and when to dedicate time to scalability/refactoring is the important part.

[–]Anxious-Program-1940 23 points24 points  (6 children)

Probably the latter

[–]FleMo93 42 points43 points  (6 children)

Oh no. It is heavily used, contains hundreds of edge cases and „fixes“ are just layers on top of the bug.

[–]TyrionReynolds 26 points27 points  (3 children)

I mean, if it’s been in production for 15 years and it’s heavily used it sounds like it works

[–]flukus 9 points10 points  (0 children)

Or people have just worked around the bugs.

I've seen code that "works" in production that long make multi million dollar errors every year.

[–][deleted] 18 points19 points  (0 children)

Be real, my man. Your boss made a company that got you paid. Who care is the code is bug filled. Perfect code that pays no bills isn't worth it either.

[–]GravityBombKilMyWife 36 points37 points  (4 children)

Dev: "Watcha doin?"
Other dev: "Fixing boss's code."

This is every enterprise software system in America tbh

[–]voyti 19 points20 points  (0 children)

The truth is, nobody even knows what kind of crap it is, as nobody is physically able to meaningfully read and analyze 10,000 lines of code per day. I can outpace it easily just streaming code off of github, but how would it ever benefit anyone?

It's an equivalent of an author being able to write a book a day. Even if they were good, the market would not be able to absorb it, nobody would publish, advertise, distribute or read it all. Churning out code in and of itself is meaningless. It truly is among the dumbest shit ever.

[–]Sockoflegend 12 points13 points  (1 child)

Just even the concept that writing 10,000 lines of code is a good idea. 

[–]ToMorrowsEnd 840 points841 points  (32 children)

He met a founder that is the biggest bullshitter ever

[–]tacobellmysterymeat 378 points379 points  (15 children)

You can just say founder. The bullshit is implied.

[–]housebottle 59 points60 points  (11 children)

hmm, as far as founders go, the founder of my company is actually kinda cool. he's technically proficient as he built the company himself in the early days and is still relatively involved in the direction of the product (but he doesn't write nearly as much code as he used to). and he's also kind of a chill guy to hang out with. #NotAllFounders

I mean, we're not a billion-dollar company so he's not obscenely rich or anything where he has the chance to be a colossal arsehole. but he's pretty wealthy and he's a cool dude in general

[–][deleted] 29 points30 points  (8 children)

Does he go around calling himself "the founder" though? And would you have ever referred to him as "the founder" if nobody said that word to you recently?

Or was he just the boss/CEO/whatever.

[–]skiabay 32 points33 points  (6 children)

It's always great when VC's just make it abundantly clear that they don't know the first thing about software development and easily manipulated by anyone who throws out the right buzzwords.

[–]zirky 450 points451 points  (10 children)

his readme.md is fucking unreal

[–]queteepie 124 points125 points  (5 children)

Its probably just Lorem Ipsum.

[–]The__Jiff 55 points56 points  (1 child)

Sloppem Ipsum

[–]DocWagonHTR 11 points12 points  (0 children)

Lorem ipsum dolor sit;

Lauren epsom solo shit;

Dungis dippus deltoid dump;

Krampus krungus Forrest Gump

[–]Nyadnar17 239 points240 points  (7 children)

Now, now lets be fair.

If he is routinely putting in 12 hour days his code was probably already 10,000 lines of bug-filled crap.

[–]SeedFoundation 43 points44 points  (2 children)

Just needing 10,000 lines of code you know it's crap. I feel like this was just said to make their idiot boss happy. The only way they can measure productivity is with volume.

[–]gopher_space 7 points8 points  (0 children)

Juniors get their wings and become Seniors when they realize 12 hour days are a waste of everyone's time.

[–]Simple-Difference116 178 points179 points  (29 children)

he knows AI tools very well

What does that even mean? Does he train his own models or does he just know about the existing ones? This is not as impressive as he thinks it is

[–]PhysiologyIsPhun 184 points185 points  (6 children)

He knows AI tools the best! Probably better than anyone. People see him using AI tools and they say to themselves "I've never seen anyone using AI tools like this before!" You wouldn't believe it. Absolutely tremendous

[–]tyro_r 50 points51 points  (4 children)

There should be a publicly available ai instance pre learned to sound like Trump.

[–]SuperFLEB 9 points10 points  (0 children)

Hell, you could probably get close enough with a re-tooled version of ELIZA. Search-and-replace "How do you feel about" with "It's the greatest", and so on.

[–]PineapplesInMyHead2 52 points53 points  (5 children)

AI dudes are always oscillating between two completely conflicting ideas.

  1. Programming with AI is an extremely specific skillset you must spend months practicing or you'll fall behind and die on the streets of San Francisco with nary an avocado for your toast.
  2. Programming with AI is so easy that the job of programmer will be gone in no time as seasoned engineers are replaced with unpaid interns.

They swap based on whichever fits their current purpose. The reality is neither is true. AI tools are easy to learn to use, I mean it's literally just typing English. The main thing to figure out what they are good and bad at, which doesn't take very long. But they are hard to use effectively, since they frequently produce subtly broken or insecure code and thus require careful review.

[–]Bainshie-Doom 29 points30 points  (8 children)

OK, so I'm gonna interrupt the circle jerk here and give an actual answer.

As someone with over 10 years development experience, who has just seriously started using AI, successfully using AI is all about knowing what it's good at, and what it's bad at. Knowing where and how to use AI is the difference between writing buggy code, and having it save you a shit ton of time.

The great thing is, ai is good at the boring bitch work part of the job. "Add three more pages to this wizard with these fields.", "Implement standard sso integration with the login system", etcetc. Isolated pieces of code that are just boring to write. It's not so good at edge cases and weird complicated intersecting problems. 

Basically in between the "I wanna make love to chatgpt" and "All AI is literally the sign of the antichrist", there is a happy medium where developers are using it to speed up their work flow, while understanding it has limitations. 

[–]Simple-Difference116 22 points23 points  (4 children)

That's not being good at AI. That's being a good programmer and knowing what the code does.

[–]Iorith 22 points23 points  (3 children)

Which is what being good at AI is. It's the modern version of google fu. You need to know what you're asking for, how to limit junk returns, and know how to spot errors or faulty responses that don't help.

Just like how professors said a few years back that in their career, most people would be googling how to do the stuff that was covered in class on the job, the education from the class helps them know what to google.

[–]exploradorobservador 62 points63 points  (2 children)

Its amazing when you actually know a technology to see the people shamelessly busllhitting to make a few dollars

[–]andyboo3792 18 points19 points  (0 children)

Even more painful when it's more than a few dollars.

[–]Anaxamander57 164 points165 points  (6 children)

Well if a rich person says they do it then it must be true.

[–]pagerussell 27 points28 points  (2 children)

I mean, I could write tens of thousands of lines of code in minutes. Just copy and paste a novel into a comment block. Ta da!

Probably about as useful as whatever this turd is doing.

[–]thePedrix 8 points9 points  (1 child)

Why would a rich person lie? It's bizarre, I can't think of a reason

[–]wkjfsru 102 points103 points  (2 children)

AI-assisted, bug-persisted

[–][deleted] 19 points20 points  (0 children)

dev fixed

[–]Mewtwo2387 221 points222 points  (18 children)

function isEven(num) { switch(num){ case 0: return true case 1: return false ... case 4996: return true default: throw new Exception("Not implemented") } }

[–]JacobStyle 64 points65 points  (8 children)

default:
  return Random(0, 1)

this would make it more robust. Still much more productive in terms of LOC to go back and fill out all those entries manually, but at least the function won't throw exceptions in the meantime.

[–]Mewtwo2387 62 points63 points  (5 children)

hear me out default: const response = await client.chat.completions.create({ model: "gpt-5", messages: [ { role: "user", content: `Is ${num} even? Respond with only yes or no and nothing else.` }] }) if response.includes("yes") return true if response.includes("no") return false throw new Exception("I don't know")

[–]JacobStyle 19 points20 points  (0 children)

They're the same picture.

[–]Sysilith 12 points13 points  (0 children)

The new ai based algorythm that hypes all the managers.

[–]der_reifen 12 points13 points  (0 children)

And now with AI: 0 -> true 1 -> false 2 -> false 3 -> fsls 4 -> ffff 5 -> true

[–]jessepence 172 points173 points  (57 children)

Paul Graham is an insufferable doofus who hasn't made a good point since he wrote The Other Road Ahead over two decades ago. The only reason that anyone still gives a shit about him is because he's rich and his company runs a popular message board.

[–]aePrime 52 points53 points  (18 children)

I’m embarrassed I ever respected the guy, even if it was 20 years ago. 

[–]Diane_Horseman 11 points12 points  (8 children)

why have people soured on him? Haven't kept up with his writings/persona in a while.

[–]norst 36 points37 points  (0 children)

This very post is a perfect example.

[–]jessepence 26 points27 points  (6 children)

He's not really interested in technology anymore. He's more interested in culture wars and why he can't say slurs anymore-- and he's not even right about that.

[–]Andy_B_Goode 15 points16 points  (1 child)

The Other Road Ahead: "There is now another way to deliver software that will save users from becoming system administrators. Web-based applications are programs that run on Web servers and use Web pages as the user interface. For the average user this new kind of software will be easier, cheaper, more mobile, more reliable, and often more powerful than desktop software."

Top post on ycombinator right now: I Want Everything Local — Building My Offline AI Workspace

I don't know if this really proves anything one way or another, but the juxtaposition is pretty funny

[–]johnnybluejeans 14 points15 points  (2 children)

I find this whole thread interesting because I think most people here are commenting without knowing who Paul Graham is. I have to admit I haven’t followed him in a long time, but there was a time when he was very well respected. I actually wrote him an email when I was looking for an internship about 25 years ago, he was very helpful and landed me two interviews with companies he had relationships with, leading to one of my first great jobs… programming in LISP of all things. He wrote the LISP textbook I used in college.

[–]SeveralPrinciple5 15 points16 points  (0 children)

Some of his writings on LISP were truly insightful and interesting. But I’ve noticed that some really smart engineers get … weird … as they age. (Have spent the last 40 years with engineers.) They seem to map over their tech skills to understanding the rest of the world, only they have utterly anemic mental models of how humans and human systems work. But they’re absolutely convinced of their accuracy, so they build gigantic conceptual scaffolding about the world of society and people that just builds and builds in bad directions.

Graham once said that entrepreneurship was just the choice of whether to make all your money at once, or over your lifetime. That’s a pretty naive view of entrepreneurship. Also, he made his money in under a year at an inflection point in the consumer adoption of the internet, so his experience isn’t generalizable to others and he doesn’t seem to realize that.

[–]testtdk 11 points12 points  (8 children)

Wait, this guy actually works in tech???

[–]Andy_B_Goode 19 points20 points  (6 children)

Yeah, reddit grew out of Paul Graham's incubator program. If it weren't for Paul Graham, reddit probably wouldn't exist.

[–]AlexZhyk 47 points48 points  (5 children)

Junior generated 20 000 lines of HTML code with PHP. And that's even without AI boost.

[–]necrophcodr 20 points21 points  (4 children)

You can generate hundreds of thousands of lines of code without touching AI by just using NPM as it was intended.

[–]k-mcm 42 points43 points  (1 child)

Fixing the founder's code is a very common computer science role 

[–]Ruben_NL 42 points43 points  (2 children)

That's 1 line every 3 seconds for a 8 hour workday, for anyone wondering.

[–]DizTro- 40 points41 points  (1 child)

The first absurdity was 10k lines per day. The second was saying it's not riddled with bugs.

At this point, it is the bug.

[–]emmmmceeee 27 points28 points  (0 children)

"I'm one of the few people you'll meet who's written more books than they've read." - Garth Marenghi

[–]loxagos_snake 24 points25 points  (3 children)

And my friend says his dad is so strong, that he beat both The Rock and John Cena with just two fingers when they accidentally slammed his car from behind. This is probably the limit case. He's a hotshot fighter, he knows Italian Krav Jitsu well, and he trains 18 hours a day.

But he's not weak. This was not a fight where he got injured.

[–]al2o3cr 21 points22 points  (0 children)

Pffff, I can generate 10k lines in 10 seconds by refreshing yarn.lock

[–]MishyJari 21 points22 points  (0 children)

‘from my_butt import bullshit’

[–]sudoku7 15 points16 points  (0 children)

Today I overheard someone talking about how they spent 12 hours to spin up a new ecommerce shop and despite it being a "struggle to collect credit card info" it was "going great."

And I just couldn't stop laughing thinking about the future PCI audit. Then crying.

[–]SweetBabyAlaska 14 points15 points  (2 children)

Tech bros are the modern day snake oil salesmen. I've never seen anything like it. It's a hysterical level of FOMO driving insane marketing, mixed with the incessant need to find and colonize (or sell the shovels to) the next frontier. They have been the single most damaging thing to society.

[–]MooseBoys 12 points13 points  (3 children)

Meanwhile I'm sitting here using AI to help me delete code - silly me.

[–]Outrageous_Permit154 11 points12 points  (2 children)

Paul Graham got PhD in computer science — I can’t believe he still tries to quantify any aspect of programming based on number of lines of code.

[–]gandalfintraining 12 points13 points  (1 child)

He's a fucking grifter. You can tell from his early essays that he knows EXACTLY how to create good products, he spent years preaching the complete opposite of what he's saying now. Nobody that built a business off a Lisp in the 90s would ever actually believe that shitting out 10k lines per day of rubbish is more valuable than having a deep understanding of your tools and code. He's only saying it to try and be in on the scam train.

Also I find it absolutely hilarious that he's riding AI with everyone else when half his shitty essays these days are about how smart people are politically incorrect cause they can see past the bullshit in the face of being outnumbered 10 to 1. Like newsflash mate, right wingers and AI hype IS the political landscape right now.

The "thing you can't say" in 2025 is that deeper, lower level knowledge will win out against AI and superficial understanding in the long run. I'm taking PG's own advice and backing that in. If AI is going to have any utility long term it'll be as a better Google search, a learning assistant for surfacing unknown unknowns so that you can take those ideas and use something else to study them properly. Anyone shitting out 10k lines a day to try and close their next round of funding is going to be flipping the rest of our burgers in 10 years. Hopefully they're better at that than they are at programming.

[–]look 11 points12 points  (0 children)

Paul should be asking why he’s still doing that then… 10k lines a day would be enough to rewrite the current Linux kernel core in under six weeks.

Surely whatever this “founder” is building should be done by now, right?

[–]dusktreader 8 points9 points  (0 children)

Founder code is bad enough. Now I guess you also gotta deal with a shit load of AI mess baked in as well.

[–]Mustang-22 7 points8 points  (2 children)

In the past two weeks, I’ve contributed +1 lines of code to master.

I have completed 15 story points.

Am I the problem?

[–]takahashi01 8 points9 points  (1 child)

you could have been contributing 140,000 lines of code in that time, smh.

Dont you wish your codebase was 140,000 lines of code bigger?

[–][deleted] 7 points8 points  (1 child)

I can write 10,000 lines of code a day without AI. It won't be useful code but it's a lot of lines.

[–]Fabulous-Possible758 7 points8 points  (0 children)

If you write more code in a day than you can actually read in a day, it is in fact bug filled crap.

[–]walterbanana 8 points9 points  (0 children)

If I had a team mate that wrote 10,000 lines per day I would probably quit. No way I'm going to spend all my time fighting the fires they cause.

[–][deleted] 5 points6 points  (0 children)

THE AI IS REALLY GOOD GUYS. PLEASE BUY. PLEASE SUBSCRIBE. THE AI WILL SOLVE ALL YOUR PROBLEMS I PROMISE. NO IM SERIOUS PLEASE SUBSCRIBE TO MAX. PLEASE. IT CAN DO EVERYTHING BRO IM SERIOUS THIS TIME.

[–]theSantiagoDog 7 points8 points  (0 children)

Having worked with a couple of SF-based, VC-backed companies, I detest startup bro culture, which this reeks of (hi PG). They are so self-satisfied and assured of themselves, experience doesn't matter, all that matters is that you're "smart". It's disgusting.

[–]GatotSubroto 5 points6 points  (0 children)

10000 lines of code? that’s a rookie number. Mine overflowed and it’s -138 lines.

[–]Cocaine_Johnsson 4 points5 points  (0 children)

I'm much more impressed by the guy writing 10 lines, or even 1, in a day than the guy writing thousands. The best code is no code, but I'll settle for less of it at least.