r/InternetIsBeautiful • u/dguerre • Sep 19 '16
Learn to code writing a game
http://www.codingame.com11
u/gcruzatto Sep 19 '16
Am I the only one experiencing massive slow downs right now?
→ More replies (2)1
5.7k
u/tsudonihm Sep 19 '16
Gonna bookmark this for the future so I can ignore it forever.
1.6k
u/RINGER4567 Sep 19 '16
why does everyone including myself do this? are we all just identical?
392
u/gelastes Sep 19 '16 edited Sep 19 '16
No. We just live on the brink of a new age of getting shit done and learning stuff. We have too many sweet, sweet information and possibilities and things that would be awesome if we found the time.
On the other hand, the time we have is limited. So we have to choose which opportunity to improve ourselves we take, dismissing others.
Our elders didn't have this problem. When somebody in the 1900s discovered an interesting book, he reddit, because you have to chase every bit of useful info, don't you?
Now we have millions of books, thousands of workshops and a Googolplex of porn on our fingertips. The vast amount of choices makes us brain-blocked, we tend to search for the perfect opportunity instead of actually doing things. (Edit: Or we, like a Butterfly without perseverance, dive into the first blossom of knowledge, but don't care to drink when we meet the first obstacles, because just a hyperlink away the next flower lures us, tempts us with its witty smell.)
If we learn to choose our free education or ebook to read, it doesn't even have to be the best choice, just a sensible one, we will enter the second era of enlightenment.
If we don't... well, there's always another kleenex.
146
u/Super_Zac Sep 19 '16
This is my problem. I'm interested in so many things, and the information is all readily available, but I can never focus on just learning one skill or one hobby. So instead I have approximate knowledge of many things but I'm unhappy because I'm not good or skilled at anything.
→ More replies (12)58
→ More replies (16)12
10
u/GiveMeTheTape Sep 19 '16
I just think there's a tiny millennial hiding in all of us.
→ More replies (5)9
u/trigonomitron Sep 19 '16
I do this with my Pocket account. At least every once in a while I'll go through it and realize that most of the things I saved had sounded like a good project at the time, but after a period of cooling off, no longer interests me.
I'd say about 1% of the things I save get a second look and don't just get checked off. It's like I only pick the best of the best ideas to follow up on.
→ More replies (7)5
u/anonyfool Sep 19 '16
I open interesting links in another tab in firefox and then forget it until firefox eplodes
→ More replies (1)→ More replies (96)22
u/do_u_think_i_care Sep 19 '16
No, you're a special snowflake, just like everyone else.
→ More replies (2)45
u/Sharptrooper Sep 19 '16
All snowflakes are unique, but they're also all snowflakes.
→ More replies (2)199
u/frizbplaya Sep 19 '16
I'll leave it open in a new tab until my browser crashes hard enough to loose it.
76
u/qpaw Sep 19 '16
I do exactly this. And after about a month, if I still have it, I would be like WTF is this tab open for and close it anyways.
→ More replies (4)→ More replies (5)6
u/mujie123 Sep 19 '16
I should start using favourites again. I do exactly this. And then I restore the tabs. -_-
103
Sep 19 '16
Dude this is so me. I collect bookmarks thinking I will one day revisit them, yet all I am doing is collecting more bookmarks. I'm a glorified bookmark collector. Sometimes I organize the bookmarks, because that would just drive me crazy if I didn't. There is too much information in this world to spend time actually learning something. I spend all my time gathering resources. I need to stop and pick a few to utilize fully. Thanks for the therapy session.
15
u/greenebean78 Sep 19 '16
Every now and then I will delete a bookmark when I finally admit that I'll never ever visit that site again
→ More replies (1)→ More replies (3)3
66
Sep 19 '16
If I could just stick with one thing with all the time I spend starting and not completing new things I would be very good at something :)
→ More replies (11)191
25
u/vaahaarms Sep 19 '16
Try Google Keep. You can basically bookmark with a reminder so you're forced to view it and ignore it at a specific later time.
11
Sep 19 '16
It's doable you know, I taught myself game programming online. Took about 3 years to get up to professional level, but I didn't go to college or finish high school. I'm a software engineer now for a pretty cool company. I got the job because I have a few shipped games under my belt, which I did while freelancing. I'm 7 years into my career now. I'll be honest if I was to do it over I'd study something that made me the most amount of money and make games for fun as a hobby
→ More replies (1)5
27
7
5
2
→ More replies (40)2
2
u/gruesome2some Sep 19 '16
So would someone with almost no experience coding be able to play this game?
2
2
u/LeftyEh Sep 19 '16
Am I missing something lol. I'm trying to attempt training #1 (The Descent) in JavaScript. It has me "learning" about loops.. but I've received no instruction at all. Does this website assume that you already have a fundamental understanding of programming?
2
u/Sevatarion Sep 19 '16
I guess it's not for n00bs like me, cos i cant solve the second puzzle. Want to start learning programming, someday (if you read "never" in your head you are right) if i find some really "for dummies" service or site. But i guess this one is just for ppl to improve what they already know. Kinda cool i guess.
→ More replies (1)2
1.9k
u/2StepsFr0mHell Sep 19 '16
Hello, I'm an employee of CodinGame. We just discovered this post was on front page! Thank you!
If you have any question, ask me anything!
243
u/Milleuros Sep 19 '16
What is your target audience? Do you want it to be useful for people with stricly zero coding experience?
534
u/2StepsFr0mHell Sep 19 '16
CodinGame is clearly not a site for beginners. You need to know programming basics to enjoy the platform. It helps you improve your skills.
34
u/Opset Sep 19 '16
Could I try and dumb luck force my way through it with no coding knowledge and manage to osmosis some of it?
I once made a Geocities website for my Sea-Monkeys back in 1998, so my HTML skills may be considered advanced, though.
→ More replies (1)65
u/2StepsFr0mHell Sep 19 '16
Do. Or do not. There is no try.
More seriously, if you're managing your way through HTML, I guess you're not far from having coding knowledge. Give it a try :)
→ More replies (23)→ More replies (73)20
5
u/AllTrumpDoesIsWin Sep 19 '16
I am an experienced coder but wanted to learn Go.
First I downloaded go-ethereum from github, got it built, started looking around to code, then realized that was too advanced for me at this point.
Then I found this CodinGame thing, definitely a better match for me to learn Go.
Three snaps in a Z formation!
→ More replies (7)296
Sep 19 '16
It's me your brother
266
38
→ More replies (1)11
42
u/ColoniseMars Sep 19 '16
When are you going to buy more servers so it doesnt get a hug of death?
66
10
u/P0ck3t Sep 19 '16
Since I'm getting a server error due to probably this traffic, can you please post pictures and or a vid maybe?
I'm curious to see the site :)
15
u/2StepsFr0mHell Sep 19 '16
quite an old video - Spread the word that coding is fun
let me find you recent descriptions
→ More replies (2)9
u/fryman22 Sep 19 '16
What programming language does this teach?
48
u/2StepsFr0mHell Sep 19 '16
It doesn't teach programming languages. Only helps you improve your skills. Not from scratch.
→ More replies (9)9
u/Drusiph Sep 19 '16
How easy is it to learn coding using this game if you've never coded a day in your life?
→ More replies (6)69
16
u/mxmcharbonneau Sep 19 '16
I code in C# (Unity). I want to learn C++. Is CodinGame a good way to do it?
28
u/2StepsFr0mHell Sep 19 '16
you should be able to complete the easy puzzles. After that, you will need to search stuff along the way to resolve challenges.
→ More replies (3)13
u/ituralde_ Sep 19 '16
C++ does a lot of things that C# does not. Learning C++ properly also requires learning how a lot of the things it does work under the hood. I'd strongly recommend looking up proper reference material on this.
If you can stand his writing, Stroustrup's book on it (he's the creator of the language) teaches not only the language and how it actually functions, but it also is a great perspective on the design philosophy. It's hilariously arrogant in its presentation, but it's probably the best way to get a foundation in the language.
Honestly though, I'd take a further step back and start with C. I think the best way to really understand C++ properly is to start with that as a foundation. Again, the creator of C has a fantastic book on it that lacks the arrogance of Stroustrup's book, which I think is the best way to learn C.
For a TL:DR as to why I recommend this, it basically comes down to properly handling memory management, jumps, function overhead, and object handling (specifically when to use and not to use inheritance in C++). If you are ever writing code in C or C++, it should be important enough to do it right; else you shouldn't bother putting up with the frustration of dealing with code on that low of a level. By jumping to these languages, you are going beyond the level of achieving functionality and looking for true speed you don't get from relying on the free convenience of higher-level languages.
Sure, you can write code in C/C++ without learning this stuff, but there's no point if you don't also have the knowledge critical to making good design and implementation decisions.
Hope that makes sense. I can give some examples of why some of this stuff is important if it's not clear.
→ More replies (9)7
Sep 19 '16
This looks fantastic! Any websites you'd recommend for learning the languages required?
→ More replies (1)6
→ More replies (193)2
240
u/NaughtyGaymer Sep 19 '16
I just saw the person a few rows in front of me open this in class...
The world got real weird, man.
60
35
27
u/GtownThor Sep 19 '16
Holy shit, I read your comment and looked up to see if anybody had it open and sure enough the guy in the row Infront of me had it open.
11
2
5
226
Sep 19 '16
If you're a beginner and are new to coding, I suggest https://codecombat.com/ , it's much better and cleaner.
27
17
u/AestheticMemeGod Sep 19 '16
Well this is just better for beginners. The site Op posted is not so much a beginner site.
6
→ More replies (22)3
132
u/Megneous Sep 19 '16
Reminds me of Screeps, a game on Steam where you play by programming all your little robot thingies in javascript.
30
Sep 19 '16
Screeps took weeks of my life away from me last year. I still hadn't accomplished much.
18
u/ozerioss Sep 19 '16
This game looks really interesting, how much javascript do I need to know to get into it ?
→ More replies (3)10
u/MattieShoes Sep 19 '16
Oh my gosh, that looks amazing. Do you have it? What do you think of it?
→ More replies (3)8
8
u/dragon-storyteller Sep 19 '16 edited Sep 19 '16
Damn, that sounds amazing! I absolutely loved Grobots, and while this looks much more primitive, I really dig the MMO aspect. Time to start learning Javascript, I guess.
Edit: Apparently it's subscription based, 9€ per month. Understandable, since they have to run the scripts 24/7, but nine Euro is just too expensive :/
→ More replies (4)5
u/charliex2 Sep 19 '16
if you like games that need to have the actors programmed, take a look at rars(robot auto racing simulator) and TORC, it blew up a long time ago. you code the ai of the race car in c or c++
RARS is pretty simple, i preferred the old 2d version since it was just something for a break/laugh, but TORCS is indepth.
→ More replies (17)2
u/shadow_of_octavian Sep 19 '16
[TIS - 100] (http://store.steampowered.com/app/370360/) is another fun programming puzzle game on steam.
18
u/nuclearfirecracker Sep 19 '16
Some of these challenges are awesome. A really good challenge for anyone with a bit of programming experience.
I was looking for something for my programming students but it's a bit above their level, it was part of the inspiration for me to make something with a lower barrier for entry where you get to program robots in a graphical language like Scratch, it's called Code Rovers.
→ More replies (1)
58
u/kensai01 Sep 19 '16 edited Sep 19 '16
I've used it a lot. It basically is fun up to your knowledge level and then the second you're out of your depth it's friggin impossible. For example, the winner of one of the seek destroy missions used genetic algorithms to solve the optimization problem. It's a far throw from writing a text based contact list or java house store as you would in the first few classes of programming or something. For anything past the Easy ones, you have to have a firm understanding of algorithm design and ALL the data structures.
They have chat windows that connect to IRC so you can talk to people working on the same problem, if you put in the time you WILL solve the problems and gain an understanding of programming like nowhere else because you can get help. However, if you don't have the prerequisite level of coding knowledge it makes the learning curve so much steeper because it's not really aimed at teaching you the basic programming knowledge all coders should have.
7
u/haksli Sep 19 '16
For example, the winner of one of the seek destroy missions used genetic algorithms to solve the optimization problem. It's a far throw from writing a text based contact list or java house store as you would in the first few classes of programming or something.
It is far, but genetic algorithms aren't that difficult to understand or implement.
→ More replies (2)→ More replies (2)2
Sep 19 '16
This is basically similar to CodeWars but with a gaming veneer and it's the same problem. You hit the wall of skill.
9
u/LizardKaboom Sep 19 '16
Ive ended the python codeacademy course, is it a right time?
→ More replies (3)
24
47
7
7
7
u/GroceriesCheckOut Sep 19 '16
This is incredibly fun for code golf. My mountain sort solution:
main(a,b){a=0;b=0;for (int i=0;i<8;i++){int m;scanf("%d",&m);a=a<m?b=i,m:a;}printf("%d\n", idx);}main(0,0);}→ More replies (4)12
u/C9DM Sep 19 '16
As someone with absolutely 0 programming knowledge...what the fuck
→ More replies (2)
7
26
u/Matrix_V Sep 19 '16
For folks who want to learn to code, I recommend starting where I did: https://www.codecademy.com/.
Currently a third-year IT student.
4
u/PokemanFTW Sep 19 '16
About where did this leave you off? Beginning of a fundamentals class or in the middle of intro?
→ More replies (1)13
0
Sep 19 '16
[deleted]
→ More replies (1)10
u/MatthewMob Sep 19 '16
You're missing nothing. The paid version of code academy simply gives you access to quizzes and recaps of what you've learnt.
The free version includes all the actual learning of the languages.
→ More replies (2)
6
6
6
4
4
1
1
6
u/eloital Sep 19 '16
I just registered on reddit. Wait. How do I use it? Do people respond to me? Am I commenting inappropriately?....I'm so lonely
→ More replies (2)
3
u/therealsix Sep 19 '16
So...this is the code I learned from this site: "Network error : status 503 Service Temporarily Unavailable"
Guess that's not code though...
→ More replies (2)
3
3
u/Epimetheus123 Sep 19 '16
Are there any sites for intermediate programmers?
2
Sep 20 '16
Depends on what you wanna do, but once you reach intermediate, experience is what worked best for me, push yourself with little projects that you don't know how to do yet and you will learn better that way.
→ More replies (1)2
3
u/cp_trixie Sep 19 '16
Haven't coded anything since Choose Your Own Adventure stories on our Commodore 64 (yes, I'm old)... this might be fun to check out!
2
u/big65 Sep 19 '16
Haven't coded since I got a TRS-80 in 76 and made my name cascade across the screen.
→ More replies (1)
4
2
2
2
u/Groecliuqir Sep 19 '16
When I discovered FL Studio and was like 15, i fell in love with it even though I knew nothing about mixing music. Years passed and I took my time to educate myself and now I'm confident that not only I know my art but also how how everything about sound, acoustics and mixing music works. I think its the same with this, you won't be doing much for years to pass, if you are not willing to pay money for someone to teach you how to do it. You are going to discover and then learn - with trial and error. So, if you really want to know how to program a game - sign up for curses. If you just wanna mess around, go ahead, but (like everything in life) if you don't open a book and educate yourself, you won't go very far...
→ More replies (4)2
u/Dudeba Sep 19 '16 edited Sep 19 '16
Thx for sharing this experience. Its very inspiring. Same thing happend to me
→ More replies (1)
2
Sep 19 '16
I've had a few years now of off and on coding practice. I have a pretty decent grasp on quite a few languages but I've mainly used websites that gave challenges and practice projects like this one. The thing is I just don't know what programs I need to develop my own projects and tools. Like I just want to know how companies develop their own tools and interfaces. I've used visual studio but it's not fully customizable, it's just a framework for Windows themed applications and not built from the ground up. Like if I wanted to build an app from scratch or a game engine. What program do I program this in? I think that's the current hurdle in progressing my experience is removing the dependency on previous made environments for my code. Any tips or suggestions?
2
u/switch201 Sep 19 '16
You will mostly likely always hit a point where you are using someone else's code or technology as a foundation for what you wanna do. Like for example, you want to design a phone app, well more likely than not you will want to use the Android SDK if you want it to be on Android, and at that point might has well use Android studio, which is an IDE for making Android apps.
Essentially you don't want to have to reinvent the wheel if you don't have to
2
u/DeltaPositionReady Sep 19 '16
Unity.
Suprisingly easy, as long as you are willing to watch hours of YouTube tutorials, become a frequent member of stackoverflow and are willing to endure nights of reiterating the same variable/function over and over and then finding out that a toggle does the same thing- you'll be fine.
2
u/TheBlehBleh Sep 19 '16
How low level can you go before you go insane? For drawing you can use C++ with either OpenGL or DirectX, but if you don't need all of the 3D goodness you might opt to work with Windows GDI or use the drawing functionality in Linux's Xlib. Once the drawing API is chosen you'll need to handle the platform specific way of creating a window and setting up the event loop to handle things like mouse and keyboard input. There are also libraries that make creating windows / handling input feel more platform independent.
Most of the time you don't need to drop this low level, and if you do the first thing you want to do is abstract it so you're not caught up in implementation details. Nonetheless you need the performance of OpenGL/DirectX if you're making a game engine. Another use case is if your GUI is highly complex like Blender's, which handles cross platform window creation / event handling using its own library GHOST, then does its drawing directly through OpenGL.
For the average line of business software you're better off with a high level GUI library like WPF or GTK or Qt
2
u/dillydadally Sep 19 '16
Unless you're working for a game studio, you should NEVER create your own tools. You should never create your entire engine from scratch. Even triple A game studios usually don't do this. They'll license tools or use a legacy one and improve upon it. The thing is, most of the tools are created by specialists in that field. Triple A game studios hire people specifically for this purpose. As an indie game designer, you want to focus on making games, not learning the intricate skills needed to make game tools. The cost and time requirement goes up astronomically if you create your own tools and usually, because you're someone who wants to specialize in game programming rather than game engine programming, the result won't be near as good as what's already available.
Even more important, by now there are some incredible tools available for free. Both Unity and Unreal are now free and better than anything you could ever hope to create yourself in 10 years. I recommend both (unity is easier to get into though). Even if your looking to do something different there's probably a great game engine and tools for that. For example, if you want to make an html5 game, there's tons of great free tools, like Phaser. Don't be afraid to use what's there because I guarantee it's better than anything you could ever create. Even if you're doing something really weird, there's probably a free open source engine out there you can build off of. If you really want to learn how to create tools for whatever reason, download an open source tool to see how it works and dive into its code.
2
2
2
u/cerealsmok3r Sep 19 '16
Looks pretty difficult and I'm learning coding through gaming. It would not take the command that I wrote (in my own style) so I was not sure what I was doing wrong.
2
2
2
2
2
2
2
u/ALobpreis Sep 19 '16
This reminded me of CodeHunt, a game of trying to write the best code to get each output.
2
u/pascal_wager Sep 19 '16
Never even heard of this, but will give it a shot first since CodinGame is reddit-bombed..
2
2
u/HonestRepairMan Sep 19 '16
I like the idea of all the new coding games, but it seems most of them have some sort of time-factor involved. To be honest, I gotta just sit and look at something for a while before I can dive in.
2
2
2
2
2
2
2
Sep 19 '16
I love this site - any other "Grand Master" Codingamers here? I busted my ass for about three weeks to make it into the top 500. I am a professional developer, but I have learned a bunch of things through the puzzles and competitions.
As a result of googling things while working on Codingame projects, Google invited me to foo.bar, which is a totally non-graphical, completely not-hand-holdy version of Codingame that Google uses to recruit developers.
2
u/PM_ME_UR_REKT_PANTY Sep 19 '16
Reminds me of a game I played 20 some years ago called Omega. You worked for a defence contractor and it was you job to program the AI in tanks. It taught me how to program in basic years and years ago.
2
2
u/raucon Sep 19 '16
I'm sure there are many different choices but which programming language should I start with? Ideally something versatile, that won't be totally obsolete in the near future.
My only experience with coding would be making my own programs on my TI-86 calculator to cheat on math tests.
2
u/booleanhooligan Sep 19 '16
I tried learning javascript this year but it was terribly uninteresting.. hopefully this gets me up to speed, thanks
2
u/LoL_Razzer Sep 19 '16
I literally JUST started using the Beginning Programming with C for Dummies. I just made it to page 81 and I'm learning about output and input. I'm so happy someone linked this website because it is a little helpful in showing me how programming impacts the game.
2
2
u/_Jolly_ Sep 19 '16
How do you get the tutorial back? And how do you do the tutorial. It told me to copy and past it then gave me an error screen. How is that a tutorial.
2
u/Chadwich Sep 19 '16
"Something is wrong. Try again..." "Something is wrong. Try again..." "Something is wrong. Try again..."
Apparently this isn't the best thing to learn coding on.
2
u/DopeAnon Sep 19 '16 edited Nov 16 '24
unwritten wrench engine caption zonked familiar station expansion brave homeless
This post was mass deleted and anonymized with Redact
2
2
2
2
2
u/yorkshirehire Sep 19 '16
So is this site legit, aside from being initially really cool and appealing? How much of it does the user "create", how rigid is it?
2
u/AquaeyesTardis Sep 20 '16
If people like this, there's a game on steam called 'Screeps' - it's a multiplayer RTS game where you program your units yourself. There's resource management, battles, etc. You can subscribe for more CPU time, but you really don't need to, and it takes the fun out of optimizing your code.
2
2
u/fakae Sep 20 '16
as someone who knows nothing about coding but is interested, I just spent about 15 minutes on this and understand NOTHING. the GUI is very confusing...no idea what/where to click. :/ guess my coding skillz will have to be acquired elsewhere
2
2
3
u/Gnonthgol Sep 19 '16
Looks like a pretty cool concept. Have been thinking of something like this for a time and it looks more awesome then I imagined. However why do I have to sign in to play? It looks like a pretty cool game without any of the benefits of signing in. You can not even complete the tutorial without creating an account. What about all the people who just want to try out programming and are not willing to sign in to random websites?
→ More replies (1)
3
u/deapool Sep 19 '16
I love CodinGame, even my company is hosting a "CodinHub" on september 28 in Paris! A "CodinHub" is a kind of meetup where you can talk about Hypersonic! (next CodinGame), it's fun and everyone can register. https://www.google.com/maps/d/u/0/embed?mid=1RhQIyRq7pRT3j1cC0bArTY8UPHk& --> Choose "Murex" in Paris on the map (or send me a pm on reddit).
3
2
u/linksoon Sep 19 '16
If you like this then you'll probably like Else Heart.Break() I won't spoil it, i've already said too much. Enjoy
2
u/Giacomand Sep 19 '16
Or if you hate yourself, check out TIS-100.
It's actually pretty fun if you understand it
2
u/theyellowpants Sep 19 '16
I thought of this idea when learning code back in college like 15 years ago cause I hated it
I should get on designing something more user friendly than this
→ More replies (2)
2
2
266
u/scubnard Sep 19 '16
Has anyone here used this? How easy is it for someone who has never coded to jump in on this?