Man Spends ENTIRE Life In A Crappy Code Base | Prime Reacts

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 100

  • @jarvenpaajani8105
    @jarvenpaajani8105 ปีที่แล้ว +18

    I worked on 15 year old code base for about two years. The initial 10 years was by the first guy, next couple of years second guy and i was third person to ever touch the code. Pretty unusual project i think. First guy was worried about memory and used global variables for everything, and second guy tried to refactor things and was a bit of an architecture astronaut and did things for "future extendability" leaving tons of dead code. Everything was so tightly coupled that you couldn't isolate or identify source of bugs. This was grand example of spagetti code. This was great learning experience with all of the anti examples. Global variables with multiple reads and multiple writes were common things. I feel bit anxious just thinking about the project. I just couldn't make anything work without a full exhaustive debug session. It took me months to do anything. Now i use rust and i couldn't be happier

  • @mascot4950
    @mascot4950 ปีที่แล้ว +71

    I started working in my current codebase in 1998. Its origins dates to sometime in the 80s. Not gonna lie, it feels pretty familiar and comfortable by now. Granted, the frontend has changed a number of times over the decades, but all the logic is in the database so the frontend is more a matter of configuration than programming (creating the actual frontend framework and tooling isn't my department).

    • @82TheKnocKY
      @82TheKnocKY ปีที่แล้ว +4

      Please tell me the logic isn't actually in the database in the form of stored sql procedures.

    • @mascot4950
      @mascot4950 ปีที่แล้ว

      @@82TheKnocKYPL/SQL all the way, baby.

    • @augiedb
      @augiedb ปีที่แล้ว

      @@82TheKnocKY Of course it is. It's how InfoSec taught everyone to do it for security's sake!

    • @nclanceman
      @nclanceman ปีที่แล้ว +7

      @@82TheKnocKY That's gotta be the only way to improve on JDSL.
      No wait, that'd actually make JDSL run faster I think.

    • @mauro--1521
      @mauro--1521 ปีที่แล้ว

      @@82TheKnocKY some of my company's web page functionalities are stored as jsons in a database. I looked at it and said "there's no way this is right, lol". But then you think again and you're like "oh, you can add functionality to the page (say, buttons with stuff in them) by just coding in simple SQL", and now I don't know what to think

  • @pjpodx
    @pjpodx ปีที่แล้ว +4

    Man Spends ENTIRE Life In A Crappy Code Base and now young dev will rewrite everything in RUST ???

  • @abhisekde6841
    @abhisekde6841 ปีที่แล้ว +209

    i feel scammed by clicking on this video

    • @GetushaHD
      @GetushaHD ปีที่แล้ว +4

      I feel the same for every video.

    • @Gohealt
      @Gohealt ปีที่แล้ว +7

      What are you talking about?? You always learn something from primeagen

    • @coldestbeer
      @coldestbeer ปีที่แล้ว

      ​@@Gohealtthe name

    • @ColinTimmins
      @ColinTimmins ปีที่แล้ว

      @@GohealtIf you aren’t learning, then you’re laughing… =]
      Hella funny… 😊

    • @novedekne
      @novedekne ปีที่แล้ว +1

      I feel scammed by reading your comment

  • @JonathanTheZombie
    @JonathanTheZombie ปีที่แล้ว +44

    He was also the maintainer of right pad

    • @rarogcmex
      @rarogcmex ปีที่แล้ว

      O'rly? Seriously?

    • @flynn3649
      @flynn3649 ปีที่แล้ว +2

      I'm not sure if you're joking or not, but the controversy was with left pad, not right pad.

    • @JonathanTheZombie
      @JonathanTheZombie ปีที่แล้ว +4

      @@flynn3649 that’s the joke

    • @JonathanTheZombie
      @JonathanTheZombie ปีที่แล้ว +2

      @@rarogcmex yes, absolutely serious

  • @dmh20002
    @dmh20002 ปีที่แล้ว +26

    In the defense world, it’s not unusual to stay on a single product line for 10, 20, even 30 years. Many programs take 10 years to first release and then they last 20 years or more. There’s pros and cons.

    • @byronservies4043
      @byronservies4043 ปีที่แล้ว +4

      Oh, ADA, I hardly knew ye.
      More seriously, yeah. Been there. It's why all of my hobbies involve creating tangible things in relatively short amounts of time.

  • @wernersmidt3298
    @wernersmidt3298 ปีที่แล้ว +36

    My life:
    #DO NOT MODIFY THIS CODE
    ....200 lines later
    # I *TOLD* YOU NOT TO MODIFY THIS! WELL DONE, YOUR WARNINGS ARE PROPHECIES

    • @adama7752
      @adama7752 ปีที่แล้ว +6

      My favorite is the comment:
      The same but a tick mark for how many times it's been tried

  • @headlights-go-up
    @headlights-go-up ปีที่แล้ว +9

    the war & peace of wingdings is my new favorite metaphor

  • @TehKarmalizer
    @TehKarmalizer ปีที่แล้ว +5

    I’m a year into working with a decades old codebase. I also feel like a “member of the team”, but I figure in another year I’ll be almost indispensable and they won’t be able to fire me.

  • @axelfoley133
    @axelfoley133 ปีที่แล้ว +10

    "The War and Peace of wingdings" sounds bloody horrifying... Like I'd rather face off against John Wick. At least that'd be over quickly.

    • @ThePrimeTimeagen
      @ThePrimeTimeagen  ปีที่แล้ว +7

      Death by John Wick much nicer than death by The War and Peace of Wingdings

  • @browny99
    @browny99 ปีที่แล้ว +22

    "adult salmon cat mix"
    ah yes, the blended up cats I feed my salmons for lunch

    • @lethicanthus
      @lethicanthus ปีที่แล้ว +4

      I've just been sitting here wondering wtf a salmon-cat is...

    • @adama7752
      @adama7752 ปีที่แล้ว +1

      "There are making Human animal hybrids!"

  • @HiMyNameWaffy
    @HiMyNameWaffy ปีที่แล้ว +15

    When you find stupid code and it was yourself 1 year ago T_T

  • @MCasterAnd
    @MCasterAnd ปีที่แล้ว +7

    This was scarily familiar. I currently work in IT, maintaining a 35 year old software that is still actively developed.
    The database part of it consists of more than 700 tables and over 11,000 columns, all well documented (and none of these are a result of automated table/column generation; everything has a purpose and was created by a developer at some point). I have no idea how many rows but we must be up in the billions by now.
    I have no idea what will happen when the old devs retire. Creating a replacement software is next to impossible. It just does so many things.

    • @alan5506
      @alan5506 ปีที่แล้ว +1

      Damn, why is it so big?

    • @MindBlowerWTF
      @MindBlowerWTF ปีที่แล้ว +4

      @@alan5506 what, you are going to release another product that does one small thing? No, you add it as a feature - do this 10000x times.

    • @alan5506
      @alan5506 ปีที่แล้ว

      @@MindBlowerWTF I have never used such a complex software.
      Quite frankly, I believe most software is way more convoluted then they need to be. Why? Because simple is hard. It is easier to keep tacking stuff as you need it than to figure out a small but expressive set of operations. You generally only have a much better idea how to abstract things when you have a bunch of repetition everywhere.
      Is his software well made? I have no idea. But that's why I am asking.
      Take vim for example. It has no business being as big as it is. Or python, which is another monster.
      But of course everything takes time. Perhaps it just doesn't make sense to spend time to pay off technical debt and make the project leaner. Or it just doesn't suit short term goals.
      Also, why the condescending attitude?

    • @TigerAlert
      @TigerAlert ปีที่แล้ว +2

      The old devs needs to write as much documentation as possible before they retire and needs to be a priority.

  • @porky1118
    @porky1118 ปีที่แล้ว

    0:20 When I got into my first job, I took over some codebase.
    Most of the things my predecessor did seemed stupid, and I still think, they were stupid, but some really weren't that stupid.

  • @Jasonlhy
    @Jasonlhy ปีที่แล้ว +15

    I faced a codebase with 20 years of history in C++ and the codebase keeps changing for new features and new platform … One my of colleagues wrote majority of the code, when I faced some issue due to historical reason that he exactly know why and what needs to be changed. 😅

  • @Jmcgee1125
    @Jmcgee1125 ปีที่แล้ว

    3:21 I've seen it, and holy moly. It's like you could see the gears turning... if they ever did.

  • @chrishabgood8900
    @chrishabgood8900 ปีที่แล้ว +18

    35 yrs, hundreds of lines of code. Did he work 1 day a week?

    • @ridass.7137
      @ridass.7137 ปีที่แล้ว +3

      most of the code was deleted

    • @cryodawn
      @cryodawn ปีที่แล้ว

      That's like 5 minute a week man

    • @ra2enjoyer708
      @ra2enjoyer708 ปีที่แล้ว +8

      In bad enough codebase riddled with indirect references even changing one line can be a gamble.

    • @BboyKeny
      @BboyKeny ปีที่แล้ว +1

      I imagine that it's basically all custom bit encodings and data transformations to display wierd custom sensors to some display.
      But might as wel be some crappy hacked together medical platform.

    • @TheNewton
      @TheNewton ปีที่แล้ว +1

      Keywords: medical software.
      So large testing and acceptance process.
      Making a single line changes is a business process unto itself, ADDING lines an enterprise.
      Your laughing , every line he wrote was a monumental task of rigor and your laughing, your laughing!

  • @AlekseyFilippovHuzzah
    @AlekseyFilippovHuzzah ปีที่แล้ว +4

    Hahaha! I've been working on that kind of project myself. I think it was legacy from the start (DOA, lol). The codebase is large and even the traversing is pretty time-consuming.
    Those guys made their own CMS engine which I believe is an achievement on its own. The extensibility probably was a point but it's implementation is poor.
    Since some management have changed we're more open to transit to some solid and tested and documented platform.

  • @porky1118
    @porky1118 ปีที่แล้ว +2

    3:20 Writing code with AI is probably around as good as letting an intern program, who just copy pastes stackoverflow without knowing what that code does.
    Oh, I hate when people just copy paste code. I like to copy paste code, but at least I do some basic things like doing an auto formatting, rename the variable names to make more sense, change everything to fit my coding style, maybe introduce intermediate variables to make it more understandable if too much is done in one calculation (or remove intermediate variables if every small step has a variable), and remove all comments.

  • @tylermfdurden
    @tylermfdurden ปีที่แล้ว +2

    oof that hurt.
    5 years at my company and I almost understand most of the code-base of our million lines of garbage code.

    • @HrHaakon
      @HrHaakon ปีที่แล้ว +1

      Just a million? Let the dick waving contest begin!
      Nah, just kidding. But big projects are a special kind of thing.

  • @lucasa8710
    @lucasa8710 ปีที่แล้ว +2

    the only way to get a short video (less then 40min) from The Prime

  • @Rundik
    @Rundik ปีที่แล้ว +1

    Why dumpster diving is bad? How else would you find new revolitionary js libraries on npm?

  • @paherbst524
    @paherbst524 ปีที่แล้ว

    Heck, lots of people I work with have spent most of their career in the same code base. That's what happens when you work on a production program with loooong legs.

  • @taraskuzyk8985
    @taraskuzyk8985 ปีที่แล้ว +5

    wtf I always shower with you on and I just assumed my iPad died. you left my zoomer brain without stimulus for a whole 4 minutes. baitagen

    • @robrick9361
      @robrick9361 ปีที่แล้ว

      Actually your ipad's mic stopped earlier than it should have.
      I had to shut it off cause it was messing with the camera and my view of your scrumptious bare ass.

  • @TheNewton
    @TheNewton ปีที่แล้ว +1

    Hundreds of lines of code?
    Keywords: medical software.
    So large testing and acceptance process, mothership levels of bureaucracy.
    Making a single line changes is a business process unto itself, ADDING a line? That's an enterprise.
    Are you laughing? Every line he wrote was a monumental task of rigor and your laughing, your laughing!

  • @soumen_pradhan
    @soumen_pradhan ปีที่แล้ว +11

    Junior devs without projects are getting hired ?

  • @riemervdzee
    @riemervdzee ปีที่แล้ว +3

    I first assumed this was about Bill Gates in the shitty Windows code

  • @phobosmoon4643
    @phobosmoon4643 ปีที่แล้ว

    3:12 The head of IT @ cisco said the same thing in interview with David Bombal cpl weeks ago. 5x more tech jobs.

  • @artvram
    @artvram ปีที่แล้ว +1

    I'm not sure if I feel better or worse after this

  • @thegeniusfool
    @thegeniusfool ปีที่แล้ว +1

    Since we are all equally apt? Yeah?
    I know how much senior developers having worked in two languages over some 12 years believe that to be true.

    • @TheKastellan
      @TheKastellan ปีที่แล้ว

      Your comment seems to be missing context XD.
      Unfortunately, I dont read minds so you sound like an idiot.

  • @CritterPop
    @CritterPop ปีที่แล้ว

    sounds like a horror movie.. surviving a horror movie

  • @m1natoh1nata
    @m1natoh1nata ปีที่แล้ว

    I dont understand the last sentence, is prime saying writing code with AI is a good thing?
    Im a complete noob in coding, but i love this channel XD.

  • @ESPViper100
    @ESPViper100 ปีที่แล้ว

    Sounds like the creator of Dwarf Fortress

  • @TechBuddy_
    @TechBuddy_ ปีที่แล้ว +6

    A huge let down I'd say I thought this is going to be great article cuz you reacted to it but you baited me into watching this video that had almost nothing to learn 😂

    • @AggressivesnowmaN
      @AggressivesnowmaN ปีที่แล้ว +1

      It was under 4 minutes long. Get over it lol

    • @TechBuddy_
      @TechBuddy_ ปีที่แล้ว

      @@AggressivesnowmaN fair point 😅🤣

    • @AggressivesnowmaN
      @AggressivesnowmaN ปีที่แล้ว +1

      @@TechBuddy_ cheers haha

    • @amitdhaterwal8395
      @amitdhaterwal8395 ปีที่แล้ว +1

      here is your learning -> Don't just write hundreds of line code in your 35 year career, otherwise you will be eating "adult salmon cat mix" :)

    • @TechBuddy_
      @TechBuddy_ ปีที่แล้ว

      @@amitdhaterwal8395 I only eat chicken

  • @vaisakh_km
    @vaisakh_km ปีที่แล้ว

    COBOL works well... Whys should i switch :)

  • @aftalavera
    @aftalavera ปีที่แล้ว +1

    Rust is woke! Camel? That’s a cigarette brand!

  • @SufianBabri
    @SufianBabri ปีที่แล้ว +1

    It's a pretty crappy practice to not write explanation of a hacky thing your code does.
    We should ideally avoid comments unless it's a public API (such as library, web API) but if you know your code is doing something weird, you must write an explanation to avoid wasting the other devs time (which could be you if you visit it after a few months away from it!)

  • @byronservies4043
    @byronservies4043 ปีที่แล้ว

    Linux is now over 30 years old.

  • @stevenhe3462
    @stevenhe3462 ปีที่แล้ว

    Probably not even using automake.

  • @alanhoff89
    @alanhoff89 ปีที่แล้ว

    So you're saying that he didn't jump companies every week bc the new job had a PS4 in the recreation room? CAP

  • @boggledeggnoggler5472
    @boggledeggnoggler5472 ปีที่แล้ว

    typo in the first sentence lol

  • @geomorillo
    @geomorillo ปีที่แล้ว

    I rewrited it and didnt make the stupid thing🤣🤣🤣

  • @erastvandoren
    @erastvandoren ปีที่แล้ว

    If you find out why a stupid thing is there: write a comment.

  • @owenwexler7214
    @owenwexler7214 ปีที่แล้ว

    This is satire….
    right?

  • @arhabersham
    @arhabersham ปีที่แล้ว

    Hilarious!

  • @MayyasNakhli
    @MayyasNakhli ปีที่แล้ว +4

    Love from Syria ❤❤❤❤❤

  • @timmygilbert4102
    @timmygilbert4102 ปีที่แล้ว

    Nah programmer will get hold of ai and will teach it how to deal with silly mistakes, THEN ai wiml replace programmer

  • @Idlecodex
    @Idlecodex ปีที่แล้ว

    🤣😂🥲🙂😐🫤😢😭

  • @nomomcarver
    @nomomcarver ปีที่แล้ว

    hi

  • @WyzrdCat
    @WyzrdCat ปีที่แล้ว

    omfglmfao

  • @quelchx
    @quelchx ปีที่แล้ว

    Is this clickbait?

  • @ahmedaghadi8281
    @ahmedaghadi8281 ปีที่แล้ว +1

    No views

  • @gaddp
    @gaddp ปีที่แล้ว

    beuaitufl

  • @egm5081
    @egm5081 ปีที่แล้ว

    really bored

  • @SpeedingFlare
    @SpeedingFlare ปีที่แล้ว

    First

  • @philadams9254
    @philadams9254 ปีที่แล้ว

    Fist