I found the first code I ever wrote

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 114

  • @TheCherno
    @TheCherno  19 днів тому +43

    Happy Holidays everyone! 🎄
    Hope you enjoyed Mrs Cherno guest starring in this one ❤
    Also don't forget to try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/TheCherno . You’ll also get 20% off an annual premium subscription.

    • @gksculpture
      @gksculpture 19 днів тому

      I’m seeking for a mentorship

    • @scoty3434
      @scoty3434 18 днів тому +3

      Men good afternoon, i'm just wonder if one day You are going to react to the mark cerny presentation about the Playstation 5 PRO ? Like You DID with the Road of the PS5 video years ago because cerny mentioned a Lot of things about the limitations of the PS5 PRO, the artificial inteligence,the creation of PSSR and the colaboration than Sony is creating with AMD about AMETHYST i think was he s name based on machine learning and what THIS Could mean for the PS6 and so on in the future now than PS5 PRO is gonna be very important for PS6 , cerny said a Lot of interesting stuff in that video , clearly that video deserves a reaction from You

    • @Undead34
      @Undead34 18 днів тому +4

      Mrs. Cherno is an excellent gamer. She caught you twice, even though you're the creator of the game.

  • @ssssssssssama
    @ssssssssssama 18 днів тому +126

    I dont know why you popped up on my YT feed today. But years ago, when I was a Civil Engineering graduate with no money and a poorly paying job and decided I wanted to try and become a game developer, I was scouring YT for a free C++ crash course and stumbled upon your C++ series. I have gone through multiple SDE roles since then, game developer, front-end, iOS dev and now a game dev again and being incredible happy. I just wanted to give my thanks to you. Just top notch stuff

    • @deeeparka
      @deeeparka 18 днів тому +4

      Nice. what kind of games do you work on

    • @ssssssssssama
      @ssssssssssama 18 днів тому +7

      @@deeeparka Nothing too fancy. Developed a carrom game and a pool game in my first job. Today, I'm working on a poker game.

    • @JosephRussellStapleton
      @JosephRussellStapleton 15 днів тому

      @@ssssssssssama Do you regret going to college for civil engineering? Do you use any of what you learned in that when making games?

    • @ssssssssssama
      @ssssssssssama 15 днів тому +1

      @JosephRussellStapleton kind of regret it. But it gave me a solid foundation in math.

    • @deeeparka
      @deeeparka 15 днів тому +1

      @@ssssssssssamadamn ur reply inspired me today. Growing up I loved playing games, but I wasn’t very good at cs back then, so I pursued physics. Now, my passion for game dev has led me to teach myself a lot, and I can honestly say that the math I learned in my physics classes has been incredibly helpful.

  • @SergeyBerengard
    @SergeyBerengard 19 днів тому +52

    Cherno: So you have these squares and abilities and that's how you play.
    Mrs. Cherno: Is that what you do here all day??

  • @rileyhawksworth8362
    @rileyhawksworth8362 19 днів тому +30

    It's impressive how far people can go from their first bit of code. My first recorded code is a class in python that helps manage save files.

  • @tinygorillacake
    @tinygorillacake 18 днів тому +6

    I never thought I'd see a Cherno video of him roasting his wife! No one is safe.

  • @RC-1290
    @RC-1290 18 днів тому +39

    The first code I wrote was on a TI-86 calculator, and someone stole it 😭

    • @jan_the_man
      @jan_the_man 18 днів тому +2

      I remember writing oregon trail and google dinosaur game on my TI-84 on mine during math class, real programmers use TI BASIC 😅

    • @iani_2020
      @iani_2020 18 днів тому +1

      He must be millionaire by now.

    • @Windeycastle
      @Windeycastle 18 днів тому +1

      Yes, I also started on the TI-84!
      Wrote the algorithm of Euclides that we saw in maths class in TI BASIC.

    • @Logboy2000
      @Logboy2000 18 днів тому

      I do this all the time in math class. Don’t forget emulating links awakening for the gameboy as well.

  • @jorgeturu4713
    @jorgeturu4713 18 днів тому +8

    I would love to see the game remade and use that as a foundation for videos explaining state machine and all those topics in C++ . I loved the video... i felt the same way when i checked my old code projects! Happy Holidays for you sir!

  • @amandawhen
    @amandawhen 19 днів тому +12

    the first line of code i ever wrote was print("Hello World") but for real, looking at old programs i made it feels incredible that they ended up working at all with how convoluted the thought process was

    • @mmj-video-logs
      @mmj-video-logs 17 днів тому

      The first line of code everyone writes is "Hello, World!" The video should have had a more fitting title, like "I Found My Beginner Programs."

    • @anon_y_mousse
      @anon_y_mousse 14 днів тому

      @@mmj-video-logs When I got started I didn't have the internet, books or any tutorials. My first lines were modifying QBasic programs on the school computers, making the snakes in Nibbles grow longer or having bigger explosions in Gorilla. Past that I wrote a 2D adventure game and a whole bunch I can't even remember now. Unfortunately all of my code from those days is long gone, but I only wrote a "Hello, World!" program sometime around my fifth programming language.

  • @mage3690
    @mage3690 18 днів тому +4

    My first line of code was written in either C++ or BASIC -- or quite possibly a BASIC-derived turtle graphics language, I can't quite remember the timeline of things from when I was 8-12. My father was very much into teaching us kids programming, he thought it was the future of work, probably.
    My first _saved_ line of code is in Bash (bashrc is love, bashrc is life), and the first "application" I did was in C: a very small UNIX-like interactive shell. That taught me to love string manipulation in C, as odd as that may sound to people used to "real" languages with "functional" (as in "functional oriented programming") string manipulation interfaces. I just love using the functions defined in string. h to just do the thing in a stupid simple, stupid obvious way.

    • @anon_y_mousse
      @anon_y_mousse 14 днів тому

      Personally, I've always felt that C is the best for string manipulation. Although, I also wrote a library to make it easier to do, because the standard library functions aren't enough, not to mention tying in an arena allocator to make things more efficient.

  • @ZettaiKatsu2013
    @ZettaiKatsu2013 17 днів тому +2

    It's amazing to see how the same person can handle the concepts of Applet, Display, Graphics, Render, Canvas, Resource, and at the same time come with terrible design for I/O management. I am in admiration. Happy Holidays

  • @miezekatze3536
    @miezekatze3536 19 днів тому +4

    15:34 it's called after the class is first referenced and then loaded, the same with static {} blocks

  • @craftydoeseverything
    @craftydoeseverything 18 днів тому +4

    I am very very interested in seeing you make a newer version of this game in C++, I would definitely watch that

  • @hanfman1951
    @hanfman1951 18 днів тому +5

    yes that is a good idea to combine it to your series. You'll get it done and have fun will doing it!

  • @vcv6560
    @vcv6560 18 днів тому +1

    This was great, everyone has an origin story and bringing a guest star a nice touch. I first Java exposure was Swing (1.2), and on a 300MHz P2 very slow. Almost like early visual basic.
    So much has changed I'd have to start over, and yes applets were all the rage.
    Happy holidays to the Churno family.

  • @4dillusions
    @4dillusions 16 днів тому

    It's good that you mentioned the developmental phase where it's essential for someone to solve problems independently, without the internet or AI. This reminds me of the time when we were coding on 8-bit machines, and even books were scarce, let alone the internet. Back then, there were already visual tools like Game Maker and SEUCK, but those who truly wanted to become programmers had to dive deep into the details, often figuring things out entirely on their own without any external help. Soon, or so the predictions say, the time will come when programs will no longer be developed by programmers but by prompters using AI exclusively. I'm curious to see how they will solve problems, debug, and handle similar challenges.

  • @andyzaft8827
    @andyzaft8827 18 днів тому +1

    It's always fun to look at your own code from years ago. I found some floppies from when I had my first XT without a hard drive and stuff I made using those with Borland's excellent TUIs was wild. But as you said, it was also very interesting to see how my brain worked without all the internet resources at our fingertips. I created all kinds of data structures and program flows that look messed up today, still, it worked, so I solved the problems, just probably not in the most elegant way. This is why I think it's better to go through AOC every year without using any other tools than the base list of language built-ins and just come up with solutions with the bare minimum, makes that grey matter do some actual thinking for a change :)

    • @anon_y_mousse
      @anon_y_mousse 14 днів тому

      Doing exercises is good. Do you use C when you do them or C++ or maybe some other language?

    • @andyzaft8827
      @andyzaft8827 13 днів тому +1

      I actually been doing aoc in a different language every year, it's kinda fun to learn the basics this way.

    • @anon_y_mousse
      @anon_y_mousse 13 днів тому

      @@andyzaft8827 That's a good technique too. I've also seen some videos where people use a different language each day.

  • @urugulu1656
    @urugulu1656 18 днів тому

    the segment with your SO was really adorable (seems like a nice enough person so good on ya)

  • @C0D3-0R-D13
    @C0D3-0R-D13 18 днів тому

    Im following ur C++ tutorial and it's really helpful even all these years later, thank you so much again

  • @NoodleFlame
    @NoodleFlame 18 днів тому

    The first code I ever wrote was when I was 8 years old, I made a simple text based input calculator in QBasic. That was in 1992, the code is long gone. I then made an ascii based dungeon crawler, I do remember having to hand code the collision for every location and possible movement direction.. I discovered arrays in the help files shortly after finishing that, that would have solved some headaches 🤣

  • @AK-vx4dy
    @AK-vx4dy 18 днів тому +1

    Lucky guy, my first code was in era that code must be worth spending 10 minutes in other eyes to save it on tape ;)
    Maybe i have some code which never saw CPU or keyboard not leaving notebook (if mouses weren't hungry) when my passion(obsession?) was strong but i have no access to computer.
    I probably have first code to which i was forced to return and read again because it found second buyer/customer, it was brtual lesson about value of modules, small procedures, and using tabs to properly format code.

  • @gksculpture
    @gksculpture 19 днів тому +1

    Merry Christmas to you mr and mrs cherno❤🎄

  • @sohankaushik7
    @sohankaushik7 19 днів тому +3

    Merry Christmas, cherno

  • @Dustyy01
    @Dustyy01 17 днів тому +1

    Please reimplement it in Hazel with actual multiplayer, would be really cool!

  • @burakssen
    @burakssen 19 днів тому +11

    We expect game play with baby cherno as well.

  • @LifeOfMohammed
    @LifeOfMohammed 18 днів тому

    I have been following you for years Cherno, I am from the Java life, It would be awesome to see more Java videos or a game development tutorials on more crazy things like 3D and Multiplayer and stuff!

  • @ZettaiKatsu2013
    @ZettaiKatsu2013 17 днів тому

    38:30 Yes .. I've met the same phenomenon of spreading in many workplaces.

  • @yassine-sa
    @yassine-sa 18 днів тому +4

    7:52 kotlin is the new cool java

    • @SoDamnMetal
      @SoDamnMetal 18 днів тому

      And C# is the better Java

    • @yassine-sa
      @yassine-sa 18 днів тому

      @SoDamnMetal from what I know they're very similar. Kotlin is in a different league DX wise

  • @lengors7327
    @lengors7327 18 днів тому +4

    Yes, java has improved since java 6/7. Since then:
    - streams
    - virtual threads
    - structured concurrency
    - records
    - modules
    - switch expressions
    - pattern matching
    - sealed interfaces/classes
    - var reserved type name (i.e. you can do var a = new Foo())
    - many more improvements to the builtin libraries (e.g. added sequenced collections)
    - instance main methods (i.e. main methods don't have to be static anymore)
    - unnamed classes (i.e. you can write method without explicitily declaring a class, combined with previous feature, it means you can write your main just by doing `void main() { ... }` in a file)
    There might be other features that I'm missing, but I think this are the most important ones. I think the major feature that's still missing imo is non-nullable types, but I'm not hopeful it will come in the near future :(

  • @mrthomaschannelearth
    @mrthomaschannelearth 18 днів тому

    I haven't touched eclipse for more that 10 years.. man I'm growing old..

  • @anfay27
    @anfay27 18 днів тому +1

    Yeaaaah let's make it Raytrayced multiplayer C++ game! It will be entertaining and educational. And it's the chance to revive good old raytracing series + cover multiplayer networking.

  • @douglascaskey7302
    @douglascaskey7302 18 днів тому

    For me to find my first code I'd have to go dig out the stack of Fortran punch cards for a program that plotted the ballistic trajectory of an object using the Newton-Raphson iteration method. What would be really fun is to see if I could still read the code printouts for some of the APL programs I wrote at school. 🙂

  • @michael_pio
    @michael_pio 18 днів тому

    34:31 yes very true cherno , while learning programming time we don't need to write perfect code , we should try to solve that problem by our own level of knowledge aka skillset and then ,we can refer which is the better way of doing that same thing, back in days I used to learn in that way and it made me a better programmer too

  • @xopp3r_s
    @xopp3r_s 18 днів тому

    Waiting for this series so hard

  • @mohamedfarag7474
    @mohamedfarag7474 18 днів тому

    7:53 java 23 is doing great now and there are a lot of frame works for the language

  • @luz_reyes_676
    @luz_reyes_676 18 днів тому

    Spme of the first programs I wrote was BASIC 2.5 for the basic stamp microcontroller.
    My grandfather and I wanted to make a remote controlled car. I'd say we were 90% successful

  • @Noriyak1
    @Noriyak1 18 днів тому

    Java uses DirectX and OpenGL, if possible, under the hood. It can also be controlled via system properties. I even managed to render 2D with about 60k fps in Java by using the JDK internal classes, that was sick...

  • @vs.1004
    @vs.1004 19 днів тому

    Thanks for inspiring !! Will try this out

  • @seannolan2120
    @seannolan2120 18 днів тому +7

    I don't remember everything about my old code but I remember I did stupid shit like this:
    bool planet = false;
    bool planett = false;
    bool planettt = false;
    bool planetttt = false;
    bool planettttt = false;

    • @paulrei00
      @paulrei00 18 днів тому +2

      When i was learning Java (J2ME) back in the days i have no idea about arrays and i was creating a variable for each value entry. XD It was a challenge to "iterate" through all this sht

  • @andrasbradacs6016
    @andrasbradacs6016 18 днів тому

    In the past, I had to wait until I was about 14 years old to get to high school, where there was a normal library with professional books on programming. I only found a book about Visual Basic 6.0, I read it a few times over the course of a summer, and then the guy next door downloaded the development environment for me a year later, because the Internet was quite a rare thing at that time. After that, I spent a summer just typing what I read in the book (the library copy almost fell apart by the end). Today's guys don't even know how easy it is for them to gather knowledge...

    • @seannolan2120
      @seannolan2120 18 днів тому

      Indeed. My first reference book was called A Touch Of Applesoft Basic that I just happened to find one day by pure chance, then it was some books from the school library

  • @tullman3craggs102
    @tullman3craggs102 17 днів тому

    instead of the quick brown fox its the public static boolean

  • @simple_classic
    @simple_classic 6 днів тому

    This thing look actually pretty fun!

  • @jasonvonhaartman3325
    @jasonvonhaartman3325 19 днів тому +3

    lucky you, my first programs are in landfill on cassettes :) c64 basic 1984ish

    • @tristancowen5636
      @tristancowen5636 18 днів тому +3

      My dad kept his C64.. he has loads of old cassettes with random games he made when he was bored during the summer lol

  • @j.ysr0
    @j.ysr0 12 днів тому

    hey cherno, tell us about your microsoft visual studio theme.. we love it

  • @kelvinsmith4894
    @kelvinsmith4894 18 днів тому

    This was really good for a first project!

  • @SergeyBerengard
    @SergeyBerengard 19 днів тому

    Merry Christmas, Cherno!!🎄🎁

  • @MTMguy
    @MTMguy 15 днів тому

    I love that idea!

  • @TheRealMangoDev
    @TheRealMangoDev 19 днів тому

    also intellij has a very useful thing which lets u import eclipse projects. u should've just used intellij with that!and to clarify: no plugins needed to do this. intellij supports this kind of stuff natively

  • @cabji
    @cabji 17 днів тому

    11:30 it's good to know that teh Australian schooling system is still failing kids when it comes to IT and programming in 2011 just like it did in the early 1990s when i went to school. Can relate so much to what you said about how you "felt like classes and object and hierarchies were just getting in the way" and how you never had anyone you could ask or talk to about programming stuff. It's like it's completely overlooked in the Australian primary and secondary education system.
    PS: Your hair is out of control.
    PPS: I made a game on an old Sega SC-3000 (I think that's the model) in BASIC back in maybe 1997. It was stick figure fighter men that would step forwards towards each other (2 player game) at a rather slow rate and if you pressed a button it would throw a "punch". You had to be within 1 or 2 steps of each other for a punch to ever have a chance of connecting. If you pushed to move away from your opponent, your character would *slide back* about 20 steps, to evade any risky attack your opponent might be trying to hit you with (yeah, a risky 1-2 step range punch). The worst bit was, if you were player 2 you really had no chance of winning because the code prioritized player 1's input first. I called it "Spastic Fighters".

  • @Cinarbayramic
    @Cinarbayramic 19 днів тому +1

    i thought the first code you ever wrote was that game in java you made a series on remaking

  • @gee_at_ease
    @gee_at_ease 19 днів тому

    Merry Christmas and Happy New Year. 🎉🎄

  • @KeithKazamaFlick
    @KeithKazamaFlick 18 днів тому +1

    yaay mrs cherno

  • @dangkhanhlinh476
    @dangkhanhlinh476 17 днів тому

    Try blogging about travel, I want to know what other shirt designs we have today

  • @LuzuVlogsGamer
    @LuzuVlogsGamer 18 днів тому

    20:29 that made me laugh real good, the way you said it xd
    Comedy comedy = new Comedy();

  • @KeldonA
    @KeldonA 18 днів тому

    Jealous. I lost all of my early code. I started out on a 286 that I gave to a client (as my mum bought us a 333Mhz Cyrix MII). I probably had it on floppy disks for a few years but it never survived long enough to get onto my CD backups.

  • @markusdd5
    @markusdd5 18 днів тому

    can we please halt for a second and appreciate the shirt game in this video.

  • @TimLewicki-s1t
    @TimLewicki-s1t 18 днів тому

    I vote yes for what you said at the end.

  • @Nico-jd3zd
    @Nico-jd3zd 18 днів тому

    hi cherno, my first code was a simple calculator on the console

  • @CreativeOven
    @CreativeOven 16 днів тому

    Games with squares consoles with LEDs and buttons..... Basics are that basic!

  • @FatBoi305
    @FatBoi305 19 днів тому +4

    OK, I just got a brain fart.
    I saw the thumbnail and thought the lady in the picture was the first code you wrote, and I was just staring at the image and pondering about it for a solid 5 minutes, until I though "Mnee, let's just click the video."

  • @btarg1
    @btarg1 18 днів тому

    Java is great, especially newer versions thanks to their increased performance and syntax niceties. Java 21 is absolutely worth using, especially for game dev!

  • @anon_y_mousse
    @anon_y_mousse 14 днів тому

    Wow, that was particularly awful code. Still, you're lucky that you have access to your first bits of code. My first code was written in middle school some 35 or so years ago. At least the first 5 years of my coding journey was done on school computers with no ability to save a copy and keep it. I did print some code listings, but those have long since disappeared. It wasn't until high school that I could write stuff to a floppy disk, but good luck reading any of those now. The earliest stuff I'd have, if it can still be accessed now, was on the ol' Win98 beast.

  • @sammyfromsydney
    @sammyfromsydney 18 днів тому

    I don't agree with everything you say but I love this and I'm very glad you made this video. You may find that the way you've done some of these things meshes with what is standard or what was out there. You've missed the mark telling people to "put away the Internet". I guarantee you that you used references when you built this. When you're starting out you don't even know what is possible. I do however agree you shouldn't just ask AI to pump it out for you and that such lazy coding leads to a lack of development or an atrophy of skills.

  • @Cerzus
    @Cerzus 18 днів тому

    Your idea at the end of the video? Do it!

  • @RoyalGun-9mm
    @RoyalGun-9mm 18 днів тому

    Bro, made this when he was 16 in an English class ☠️ ☠️

  • @alihene2225
    @alihene2225 18 днів тому +4

    My first code was a html file

  • @devoiddude
    @devoiddude 9 днів тому

    Its always been good, its better than C#, its just cool to hate on it, just like how everyone thinks typescript is the best thing ever when its not.

  • @gsestream
    @gsestream 18 днів тому

    lol merry christmas and happy new yar. I pretty much use java se 8 still. mostly java 9. all the class fields are created when the object is created. intellij, what is that. eclipse is better. java graphics is accelerated, if its cached (uploaded) to the GPU. so most of the time it is accelerated, after its "cached". you can force acceleration (immediate mode gpu acceleration) by using VolatileImage etc. if you need to comment (tm), its too complex. lol. like here. self-documenting code is clear in design. freedom suits you, sir. suits you. vulkan ray traced pipeline instead. cause vulkan init shuggers. yep programming your own is less code than the vulkan pipeline init code.

  • @Nostar-s2v
    @Nostar-s2v 3 дні тому

    That so cool kidda remind me of pacman

  • @anoomage
    @anoomage 19 днів тому +1

    Why is the voice terrible robotic french ? I can't watch this ... And no way to switch to original audio :(

    • @TheCherno
      @TheCherno  19 днів тому +8

      Hey, sorry about that UA-cam is pushing out some new features... if you try again it should be in the original English

    • @anoomage
      @anoomage 19 днів тому +4

      ​@@TheChernoyes it is! Thank you and Merry Christmas! 🎄

  • @nomannian
    @nomannian 19 днів тому +1

    this is so cute

  • @TheRealMangoDev
    @TheRealMangoDev 19 днів тому

    java is pretty good rn. Rust is still better tho-
    My first lang was java, so yes..l i may have bias, but i honestly think modern java isnt bad

  • @Undead34
    @Undead34 18 днів тому

    Cherno you should learn Rust, it's fun!

  • @adamrushford
    @adamrushford 17 днів тому

    it's not important stop simping for the crowd

  • @RandomGuyyy
    @RandomGuyyy 18 днів тому

    This is why some of us can't or won't make a game without an engine. So much code and development time for something that looks like a Commodore 64 game? I mean, it's clever and everything but what about the overall end result?

  • @CompSciMathguy
    @CompSciMathguy 19 днів тому +1

    Ray tracing series please

  • @JR_hSN
    @JR_hSN 18 днів тому

    java ❌
    kotlin ✔️

  • @monke2220
    @monke2220 19 днів тому +1

    lol

  • @MePatrick73
    @MePatrick73 14 днів тому

    Java has indeeed become a lot better :p

  • @donalshijan5615
    @donalshijan5615 16 днів тому

    I love cherno, but i have to say , FUUUkc java, i hate it.

  • @quaffie
    @quaffie 19 днів тому +1

    do you have onlifäns?

  • @Heisenberg01-r7c
    @Heisenberg01-r7c 19 днів тому +3

    🇵🇸🇵🇸🇵🇸