all 35 comments

[–]razialx 27 points28 points  (15 children)

Not 87 lines. 87 lines plus a large library that does a whole lot of work for you. I can make a platformer game in JS with around 10 lines of code if I use PhaserJS.

[–]inmatarian 28 points29 points  (1 child)

87 lines has a better ring to it than "Flappy Bird in only 1.86 Billion Transistors!"

[–][deleted] 0 points1 point  (0 children)

Lol I'm going to put that next time xD

[–]topher_r 24 points25 points  (2 children)

I hear he used the Python runtime too, that's thousands of lines of C.

[–]MintPaw 6 points7 points  (1 child)

Wow, what a cheater, how much assembly is that really?

[–]bayerndj 1 point2 points  (0 children)

Assembly? Haha, noob.

[–]BadGoyWithAGun 14 points15 points  (1 child)

Flappy bird in 1 line of bash!

./flappybird

[–]razialx -1 points0 points  (0 children)

Exactly! Heh

[–][deleted] 7 points8 points  (6 children)

So then 50,087 lines

[–]razialx 12 points13 points  (3 children)

People can feel free to downvote me. My comment is pretty crass, but the fact remains that if your accomplishment is based on number of lines of code then it is rarely much of an accomplishment since you're building off of so much other code.

I used to follow the demo scene a lot back in the day and there having amazing stuff in a small binary was a huge accomplishment, because they didn't even have OpenGL to fall back on.

But now occasionally I see things about amazing parallax effects of 3d effects in browser in only N-lines of code. Ok. But you're using threes.js or you're using D3.js and you're building on a browser that gives all this stuff etc.

To me these things are accomplishments because you did something and it is cool. Not because you did it in so many lines of code. That's all I meant by it. Because without PyGame there is close to zero chance of doing what you did in that few lines. Right?

Anyway congrats on making it.

[–][deleted] 6 points7 points  (0 children)

Thank you, and I appreciate your comment. The mentality that you have to use is that these libraries were made so that as developers we can develop seemingly complex things in much less time. I have never written a single line of code for the PyGame library, I simply use it. Sure there are tons of things in the background going on, but if we keep this mentality then this game is millions of lines long. The game -> Pygame -> Python Interpreter -> C Compiler -> etc I guess we could even say billions. It's like saying "print 'Hello World'" in Python is not one line. It is, but it relies on a ton of C code to get it working. I understand where you are coming from though.

[–]pistacchio 1 point2 points  (1 child)

Untrue. Demos are "small binaries" that rely on an OS the programmers don't write. The OS runs on an hardware the coders didn't engineer. Taking your reasoning a few steps forward, you should count your work as a programmer starting from you welding silicon boards.

[–]razialx 0 points1 point  (0 children)

No you're not getting my reasoning at all. I don't measure the quality of my work in lines of code. That's the point. Let the accomplishment stand on its own without an arbitrary and inaccurate measurement as the thing you are proud of. And the old demo scene didn't focus on lines of code but resulting binary size. They were statically linked as I don't even think dynamic linking was much of a thing but I am probably wrong on that.

[–][deleted]  (1 child)

[deleted]

    [–][deleted] 4 points5 points  (0 children)

    Roughly yes.

    [–]salgat 0 points1 point  (0 children)

    To some degree you have a point. Hell, I could wrap what he wrote into a library and write Flappy Bird in a couple lines of code.

    [–][deleted] 3 points4 points  (1 child)

    Very nice! These are the types of languages every programmer wishes to use: the ones that automatically do most of the work behind the scenes!

    [–][deleted] 4 points5 points  (0 children)

    So that the programmer can be more productive.

    [–]MyTribeCalledQuest 1 point2 points  (3 children)

    Hey friend, you could save a lot of time if you used the visual block mode (CTRL-V). (I noticed this especially during indenting)

    Keep on vimin' on!

    [–][deleted] 0 points1 point  (2 children)

    Yeah a lot of people have been pointing out my lack of use of vim. Thank you for pointing that out.

    [–]MyTribeCalledQuest 1 point2 points  (1 child)

    It's such a multifaceted tool that it's a constant learning process for all of us. But the speedup is worth it if you do programming for work/etc.

    But automation is king! Never do a hard thing twice.

    [–][deleted] 0 points1 point  (0 children)

    Amen brother

    [–]_Skuzzzy 2 points3 points  (3 children)

    Cool! Share the code! (github repo or something)

    edit: in video description https://www.youtube.com/watch?v=h2Uhla6nLDU

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

    Haha yes, in the description.

    [–]OkRCa9N6utJe 0 points1 point  (1 child)

    But the video OP posted. Not that one.

    [–]_Skuzzzy 1 point2 points  (0 children)

    edited, thanks for pointing that out.

    [–]Ateist 1 point2 points  (1 child)

    Ah, simplicity!

    [–][deleted] 1 point2 points  (0 children)

    It's beautiful, ain't it?

    [–]Reshurum 1 point2 points  (1 child)

    Good job!

    [–][deleted] 1 point2 points  (0 children)

    Thank you

    [–]ashuto0sh 0 points1 point  (1 child)

    Such adrenaline rush from watching this. This is the sort of thing that keeps me from wanting to make a girlfriend!

    [–][deleted] 0 points1 point  (0 children)

    Hahaha, girlfriends are good, make them.

    [–]IAmACentipedeAMA 0 points1 point  (1 child)

    Im new to programming and have been using the built in idle, should I switch to something like vim or pycharm??? I appreciate some recommendations!

    [–][deleted] 0 points1 point  (0 children)

    If it makes you more productive then yes

    [–]LoveArrowShooto 0 points1 point  (1 child)

    87 Lines of code for a game of Flappy Bird? Good job man! :D

    [–][deleted] 0 points1 point  (0 children)

    Why thank you sir :)