r/learnprogramming • u/FatherOfTheSevenSeas • Sep 12 '20
Code Wars is my favourite resource as a beginner
** Absolutely no affiliation to Code Wars.
Just wanted to say that for me personally this website is doing so much for my learning. Once I had got through the first few months reading books to understand the basic concepts of coding and syntax, this website gives me motivation every day to actually apply that information to problem solving and just.. code, code, code..
I'm not saying it's a substitution for also writing your own projects but the large amount of feedback and solutions which are provided mean that I'm constantly learning how to do things smarter and apply computational thinking to incrementally harder problems.
What do you think, do you get much out of it?
11
204
Sep 12 '20
Have you tried the other ones such as Leetcode and Hackerrank? If so how do you think it compares?
55
u/Onedweezy Sep 12 '20
Codewars has excellent starting levels. Simple stuff like multiplication and so on. I would never reccomended leetcode to an absolute beginner. Codewars is perfect for absolutel beginners.
1
u/menemenetekelvparsin Sep 13 '20
What would you recommend to me, a 3rd semester CS student? I've had 2 classes in Java and a lot of general shit
1
u/HurryStarFox Sep 16 '20
Code Wars allows you to start with more intermediate/advanced stuff right away, and is still great if you already have some experience.
0
Sep 13 '20
i love the reward system and front end design too. also unlike hacker rank which is written in broken english by indian guys, the problems are written by american dudes in codewars (not a jab at indians, just the wording for even the most basic hacker rank problems is literally nonsense. look at the first two c++ problems and tell me if i'm crazy!)
3
u/FatherOfTheSevenSeas Sep 13 '20
Agree, the whole design, ui and japanese martial arts analogy makes it all a nice experience.
130
u/STAY_ROYAL Sep 12 '20 edited Sep 12 '20
(On mobile)
I’ve tried all three.
Leetcode is difficult and easy to get the answers. Getting the answers of course is about my own character, but Code Wars is apparent of this. You need a certain amount of Kata to unlock the answers. So it feels like okay I’ve worked hard enough in the past to get some much needed assistance. Also since the answers aren’t in the discussions like hackerrank or leetcode, now I can solve the problem through pseudocode and see other ways of getting the solution without getting the answer straight away.
This happened to me last night when I was using a loop and if else statement when I could of just used filter().
Code Wars and Hackerrank gives you that dopamine by rewarding you once you complete a problem. Definitely needed after solving something I have no business of understanding.
Regarding problems and complexity.
Leetcode has seem to be the most complex for me so far. I can barely solve their easy problems and I have more than a year of professional experience, though I am a bootcamp grad with no prior coding experience.
Hackerrank is limited, from what I remember they only had a certain amount of problems for each topic.
Code Wars seems to have a ton of problems to solve that aren’t worded in a way to make you seem stupid.
My goal recently was to do leetcode once a day in the morning. I’ve woken up at my computer doing Code Wars this week and I have a job. I love Code Wars and wish I got into it earlier.
2
Sep 13 '20
hacker rank is a fucking terrible resource. the english in the problems are GOD AWFUL and even all the people in the discussion board upvote all the comments ranting about this. half the time it's figuring out what the problem is trying to say. and not to be an asshole, the moment i found out hacker rank was indian (i'm south asian myself) i never used that shit again. the broken english really got annoying
1
Sep 13 '20
I don’t disagree with this statement. Most of the time I have more problems working out what I should be trying to achieve, rather than the problem itself
2
u/FatherOfTheSevenSeas Sep 13 '20
Lol probably good practise for working in the real world tbh..
1
Sep 13 '20
Ha that bad?! I’m merely a hobbyist.
1
u/STAY_ROYAL Sep 13 '20
Definitely lol. Especially with majority of meetings happening over zoom. Oh boy...
7
3
u/longdistamce Sep 13 '20
Personally not a fan of hacker rank. Some test cases in certain languages aren’t fully functional. I also feel their prompts/inputs/results descriptions are very awkwardly worded.
Code wars is nice and I like the challenge but some of the problems get to be a little crazy and no longer focus on core topics of interviews. They can be challenging though.
3
u/Ceofreak Sep 13 '20
Edabits is also great. They have "very easy" challenges that are indeed very easy, but when I just started learning, I found that some of the easy stuff on CodeWars was still too hard for me.
Alao, Edabits has the same concept. You have to unlock a solution with XP points.
Thanks for motivating me to get into doing a challenge a day again!
3
7
u/SlaimeLannister Sep 12 '20
Too much code golf in the solutions. Just read a fundamentals book.
9
u/FatherOfTheSevenSeas Sep 12 '20
Yeh I dont care much for the code golf in general, but given there are usualy dozens of answers you can reflect on answers which suit you. Its the precise and often unfamiliar answers that really help me learn.
6
u/Tex_Betts Sep 12 '20
This is the first time I have ever heard the term "code golf", and I love it.
4
u/AdventurousAddition Sep 12 '20
Then check out this: https://codegolf.stackexchange.com/
1
u/karthik1611 Sep 12 '20
First time hearing about code golf.What does it mean?
2
u/AdventurousAddition Sep 12 '20
The task is to create a program with the fewest characters possible (named after golf as you are trying to get a low score)
2
u/EroAxee Sep 13 '20
Am I the only one who just is completely stumped on basically all the questions? I'm assuming that's because the site seems to assume a pretty solid understanding of the syntax of the languages etc. because the descriptions seem to expect you to know the ins and outs of functions.
2
u/FatherOfTheSevenSeas Sep 13 '20
As somebody who has been learning coding on and off for maybe about a total of 6 months part time (python) I find I am usually able to get through any 8 or 7, generally a 6 (with a lot of time and a not so elegant answer) and occasionally a 5 if Im lucky.
1
u/EroAxee Sep 13 '20
It's probably mostly to do with the fact that the languages I've used have been very specifically made languages, things like GDScript, GML and a the only "real" languages I've done was a tiny bit of Javascript along with some HTML, CSS and Java for minecraft mods.
Not exactly well versed in "normal" languages.
2
u/NefariousSerendipity Sep 13 '20
Also, let me show ya'll w3resource ( this one's for C++. I'm doing the basics and preparing before I go to class in 2 weeks)
1
19
Sep 12 '20
6kyu and I already feel dumb af
1
0
Sep 12 '20
[deleted]
2
u/duquesne419 Sep 12 '20
4 kyu, somehow in the top 5% of the site, can barely read 4 kyu prompts. I can do 6 kyu kata pretty well, but the skill difference when you move to 5 is kinda staggering.
0
Sep 12 '20
[deleted]
3
u/CheTranqui Sep 14 '20
I'm super new to programming.. I've felt this way myself and when looking at the solutions by others I find stuff I didn't know existed.. I then looked into and learned about regular expressions...
Once you finish stuff, learn how others have and acquaint yourself with the key to their solution! Slowly but surely it keeps us learnin'!
1
u/RedDragonWebDesign Oct 03 '20
I completely agree. I learn more from reading the solutions sometimes than solving the problem.
Sometimes I'll write a 50 line solution, and there will be a bunch of 10 line solutions. That tells me there's a library function I need to learn, or my algorithm needs improvement.
2
u/duquesne419 Sep 13 '20
Python mostly, but I've done a little C and JS as well. Heard on the brute force. It's been a couple decades since precal so almost any of the kata that require some sort of math shortcut tend to fly over my head since I don't remember or was never taught them. It's frustrating because when there is a formula I understand I'm usually able to translate it to code pretty handily.
2
u/InertiaOfGravity Sep 14 '20
Kyu? Kara? Please help
1
u/duquesne419 Sep 14 '20
Code wars uses karate terminology.
https://github.com/codewars/codewars.com/wiki
Short version:
Kyu = level of difficulty
Kata = training problem
2
18
u/Robi5 Sep 12 '20
Also a big fan of Code Wars. Easy way when you sit down at the computer to “just start” something. There’s been many problems where I first read it and I’m like this is going to be hard idk if I can do it... a few hours later and it’s complete and it’s a great feeling.
35
u/ZebulaJams Sep 12 '20
I’m confused on how it works. I signed up and the first question was like “why doesn’t this compile?”. Add a semicolon, then the next one is like “build a video game from scratch”. Like ???
19
u/Lenora_O Sep 12 '20
lol this was me on SoloLearn which is probably like the toddler version of what you guys are doing. It went from "okay so this is a plus sign which means addition" to "alright let's dust off your advanced calculus skills from high school for this next example!" Like dude that was 30 years ago.
3
u/Terracio Sep 14 '20
That really pisses me off about SoloLearn, most of their examples or skill checks are actually exercises in math and convoluted at that.
"int a = 7 Int b = 8
Console. Writeline(a%b?a++)
What is the result?"
5
u/PostModernFascist Sep 12 '20
Try doing the level 8 stuff. Many of them are doable for a beginner. If you're stuck on a problem for too long you can always come back to it.
6
u/AdventurousAddition Sep 12 '20
You are free to pick various levels. The lower levels are quite accessible to beginners
19
u/rickkyaa Sep 12 '20
Have you tried hyperskill? It’s a great webside when it comes to projects, you have plenty of them. And you actually learn a lot of things too.
1
u/Vascilli Sep 12 '20
I signed up when they had an extended free trial and I really like the way they teach things. (Django aside) Not sure I'd pay full price, though.
9
u/SenorTeddy Sep 12 '20
I highly recommend www.edabit.com
Code Wars is good once you have fundamental knowledge, though for new programmers they start quite a bit harder and require skipping quite a few.
5
u/InquisitiveK Sep 12 '20
Absolutely agree. Edabit is fantastic. I found codewars too difficult being a beginner. Edabit also gives you reward points for each solution, you can pick your difficulty and language preferences, and you can view other peoples solutions once you have completed a problem. It does give you the option of looking at the answers if you get really stuck, but you do not get experience points for that. Highly recommend. Not affiliated in any way.
7
u/Its_just_Tim Sep 12 '20
I also really enjoyed Codingame, which has a similar sort of micro problem system, except with some sort of visual “game” you’re playing. I usually flip between the two.
11
u/Rooged Sep 12 '20
I also love code wars, I have a repository on my github where I push all of my JavaScript algorithms when I successfully complete a challenge
6
u/MadHawkxx Sep 12 '20
Would be lovely if you share the link of it. Would really appreciate.
3
u/Rooged Sep 12 '20
Yeah sure, it's not like jam packed full as I don't do code wars near as much as I should, but I'm happy to share what I currently have.
0
Sep 13 '20
[deleted]
3
u/jaredLearnsToCode Sep 13 '20
This is the best noob friendly git/github guide I've seen. CJ is an excellent tutor.
5
u/AdventurousAddition Sep 12 '20
When you solve a 4 kyu you've been thinking about for ages. Feels like a genius
5
4
u/StrippedPenguin Sep 12 '20
THANK YOU FOR THIS RESOURCE!!! Literally so helpful. Sadly though I cannot seem to get past the first lesson..
4
u/Zargabath Sep 13 '20
try https://edabit.com/ , it allow you to unlock the solution if you can't do it and it have resource tab which links to usefull information for each problem
1
Sep 13 '20
I thank you for introducing me to something great. I have been struggling with Java and this helps a lot.
1
u/FatherOfTheSevenSeas Sep 13 '20
No problem! I posted this assuming everybody had probably heard of codewars but Im happy to see how many people are finding it for the first time.
3
Sep 13 '20
i love codewars too. it hurts my brain like crazy each problem and i always get stressed out, but my problem solving skills get better
2
u/_Vladson-_- Sep 12 '20
(On mobile) I really like using solo learn, and it really got me started with c++
2
u/HereSoIDontGtSpoilrs Sep 12 '20
I enjoy Code Wars, but I've liked Exercism.io in the past as well. You can do a track that has a mentor so as you do the code challenges, someone will get on, review your solution, and offer suggestions and/or check for correctness. It slows down how many challenges you can do for that particular language but I found it incredibly helpful to be able to learn a new language when I was moving from a language I knew to a new one.
I could say "I would typically do error checks like this, what is the best practice for doing it in this language?" and get an answer as I was moving along.
I'd suggest beginners do Code Wars and then do Exercism on the side (since when you get deeper into a language track it'll take a few days to get a mentor to review).
2
2
u/Roly__Poly__ Sep 12 '20
In the beginning, codewars complements project building for learning. Your mind gets to practice breaking problems into smaller pieces. This is essential for larger tasks.
2
u/Bladelazoe Sep 13 '20
I love Codewars and Hackerrank challenges, if personally gotten way better at coding that way than anything else. It’s made me think about problems or test cases that I would otherwise have never thought about. Plus it helps me develop that problem solving aspect of coding.
4
Sep 12 '20
I'm on the opposite end of the spectrum. Someone already mentioned code golfing, which is the "smartypants" e-peen way between senior devs, but I don't see the point as a junior dev.
Such problems are already time wasters. Wouldn't you learn syntax by working on your own projects? You know, building things like software DEVELOPERS do? Getting constructive criticism on how to make this and that better ON CONTEXT is so much better than "here's how you chain array functions, who cares about readability? no one's forcing you to read my code lmao performance issues? I'm behind 20GB RAM" etc.
Job interviews are already pants on heads stupid for having you build leetcode problems as if you'll be doing them. Any more and it's just busywork for busybodies who procrastinate building projects. Source: I am one. All I do is follow video tutorials and codewars, and I have literally nothing to show that I can call it "my own pet project". But hey, my epeen is Kyu 3! Guess how close that brought me to bring food to my table.
tl;dr aside from the nerdgasm entertainment purposes I see it just as another busywork way to procrastinate actually building stuff.
1
Sep 12 '20
I like code wars, along with hacker rank. But as long you're learning it doesn't matter which one you use
1
u/penguinz0_ Sep 12 '20
I've also been doing coding challenges, it definitely helped me become better at problem solving. The feeling when you solve a difficult problem is super satisfying.
I also love how I can just visit the website and start solving problems when I don't have any ideas on my mind. It also gave me a couple of ideas on what to code next for my personal projects.
1
1
1
u/rafpinto Sep 12 '20
It’s probably a stupid question but: do they feature html and css challenges ? (Noob here)
1
u/BrziVujke Sep 12 '20
No, html and css are not real programming languages, beginner here(correct me if im wrong)
1
u/-Lax Sep 12 '20
I went to CodeWars as to past by time waiting for my next class. I clicked on the “test” on the front page and blanked on the most beginner friendly stuff.
From there, I realized I needed to work on remember how to code in these languages before I try to graduate next semester. Lol
1
1
1
1
1
u/noXi0uz Sep 13 '20
Code wars makes me feel better about my own abilities, because often rather bad practices are upvoted to the top
1
u/Shwayne Sep 13 '20
Algorithms, complexity and finding solutions quickly will only help you with the first few software interviews, pretty much nothing else, keep that in mind.
1
0
u/Zargabath Sep 13 '20 edited Sep 13 '20
I love how people just post one line of code which is an already build in function, instead of making one themself, like converting a integer to binary, they go with convert function instead of making a program themself.
I once saw someone complaining that he couldn't use LinQ in a C# problem so he couldn't figure out the solution to sorting an array, just sad.
but I still I love how from time to time I come across new keywords, or syntaxis, that is learning.
0
Sep 12 '20
[deleted]
1
u/RedDragonWebDesign Oct 03 '20
I feel you. I'm going through this right now. I solved a 2 kyu problem in PHP the other day. But I'm currently getting stuck on 6 and 7 kyus in C.
I also feel like the solutions are more verbose (more lines of code) in low level languages.
0
Sep 12 '20
[deleted]
5
Sep 12 '20
[removed] — view removed comment
1
1
u/RedDragonWebDesign Oct 03 '20
Same. Coding in an IDE instead of the CodeWars website gives me step debugging. That's a very important tool in my arsenal.
0
Sep 12 '20
[deleted]
1
u/Zargabath Sep 13 '20
try edabit instead, you can unlock the solutions there (you won't get exp though)
125
Sep 12 '20 edited Sep 12 '20
[removed] — view removed comment
18
u/AdventurousAddition Sep 12 '20
I'm a long time fan of projecteuler. They do get pretty heavy with the maths (but i'm a maths nerd anyways!)
7
u/OllieOllerton1987 Sep 12 '20
I've found this one teaches skills that are applicable in the workplace. Some of the later levels require the ability to scan text files etc. Some of it is really practical.
4
u/forptsiram Sep 12 '20
This is also a common source of interview questions (Euler project) lots weed out the brute-force inelegant approaches from well thought out ones.
7
u/NovelAdministrative6 Sep 12 '20
Project Euler is pretty specific to math though. Does it mean you're dumb or a bad programmer if you can't solve questions 50-onward?
Probably not, because you don't have the background knowledge to understand what it's even asking. And how many developers will actually use that kind of specific math in their career?
3
u/forptsiram Sep 12 '20
Not all of the Euler project problems are applicable for sure.
However there are some like this one that do a great job of finding developers who look beyond the quick and dirty solution. Search and path finding require finesse to get right.
4
u/OllieOllerton1987 Sep 12 '20
Some of the answers people give in the forums are out of this world. They can often do in one line of J what it took me 20 lines of Python to do.
The J language looks to me like complicated emojis that do maths quickly. It's amazing.
2
u/NovelAdministrative6 Sep 12 '20 edited Sep 12 '20
The early ones sure, but later questions are specific to mathematics most people either never learned/encountered or only seen a long time ago.
The programming part isn't tough it's understanding it and writing it up in pseudocode. Might be more useful for someone with a Math background learning programming.
1
u/InertiaOfGravity Sep 14 '20
I really don't like projecteuler. They're just math problems, really. I like math problems, but they're definitely not the same as codewars style things
0
179
u/[deleted] Sep 12 '20
My favorite part about doing code wars in Python is coming up with a solution, submitting it, and then seeing everyone was able to do in 1 line what took me 10.