r/learnprogramming • • 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?

2.1k Upvotes

135 comments sorted by

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.

7

u/FatherOfTheSevenSeas Sep 12 '20

Yeh its certainly taught me a thing or two about list comprehension..

114

u/grooomps Sep 12 '20

some of those one line answers are unreadable messes that you would never want to put into a project that you will need to look back onto one day

31

u/TheReverend_AlPastor Sep 12 '20

As a general rule of thumb, people that overly care about # lines of code out themselves as beginners.

You have the people you mention, that are so overly concerned with having a small amount of lines of code because they think it's impressive they can do something quickly end up writing something unreadable that would never fly at a job, because as the person below says, everyone you work with would rather have your code be 10 lines long and readable than 1 line

Then you have the people that thing what makes their app impressive isn't what it does but how many lines of code it took to write it. They're more excited that their cool app took 1000 whole lines to write bro it's so intense than they are about what their app accomplishes or solves. For them it's not about what their final product is, they treat their app as a means to an end of writing code, instead of writing code as a means to an end to get a product.

To be clear, I'm aware there are enterprise level reasons to write less code, but what out's these people as beginners is the way they approach the # of lines shows they don't understand why that's a thing at larger levels. Your fibonacci solver is never going to have a run time or compile time that needs to be tweaked for performance, your first web app isn't going to have the complexity that will benefit from feeding it fewer instructions to increase performance.

I've been working for 5 years and it's pretty rare to hear much talk in terms of lines of code, it's not a common mindset for people who have been on this for a while. It's not about how much or how little you write, it's about what you get done.

12

u/mafrasi2 Sep 12 '20 edited Sep 12 '20

Yep, in real life it's only important that it's readable. A short solution can be very readable, but if it isn't I prefer a longer one as well. Another common mistake is that people think that "short" equals "fast", which is usually incorrect. For example, the shortest fibonacci solver is also the slowest one.

That said, on codewars it's just fun to try making solutions as short as possible, especially if the problem is otherwise boring for an experienced programmer. I suspect that this is the mindset of most people who write very short solutions there.

11

u/TalkOfSexualPleasure Sep 12 '20

As someone whos an amateur programmer at best but has a pretty in depth mathematical background, I always thought trying to get something to work with less code was an elegance thing. Sort of similiar to how mathematicians will try to find the shortest route to an answer and the most succinct way of displaying it.

I guess what I'm trying to say is, I always assumed it was less about the number of lines and more about finding the formula that takes less work.

Sort of like the holy grail of physics would be a single line equation that accurately describes gravity. Something that takes something incredibly complicated and displays it in a way that it becomes simple.

9

u/TheReverend_AlPastor Sep 12 '20

You're not wrong, but what we're trying to say is there's a balance. When you think of those simple equations, say E = MC2, it's succinct but it's readable and provides meaning easily at a glance. If the way in which you "shorten" your code in pursuit of this elegance makes it harder for the meaning of it to be conveyed - as in it does what it's supposed to do on 2 lines instead of 12 but no one can read it without spending time going over it several times with a furrowed brow - then you haven't truly achieved that elegance, you've made things worse.

There's nothing inherently wrong with trying to achieve what you're talking about, and it's equally great in coding if you can as it is in math as it still shows your grasp and understanding. Some people's shortcut methods render the result useless, though.

2

u/TalkOfSexualPleasure Sep 12 '20

I should've explained a little better, but in my opinion if its not easily understandable that excludes it from being elegant, but thank you for taking the time to break it down a little further for me. I definitely feel like I understand better now.

4

u/MorroClearwater Sep 12 '20

I agree for standard programming languages, but the CSS golf I've done feels like actual learning. 80% of what I've learnt by playing CSS golf is applicable to real world problems.

3

u/BladeOfRevenge Sep 12 '20

What do you mean by css golf?

4

u/MorroClearwater Sep 13 '20

Golf, in reference to programming, is the attempt to complete a task in the fewest characters & lines possible. In CSS Golf, you're given an image and you need to recreate that image in as few lines as possible.

1

u/Snoo58226 Sep 13 '20

Interesting! What site do you use for CSS golf?

4

u/MorroClearwater Sep 13 '20

https://cssbattle.dev/ is what I use.

1

u/Snoo58226 Sep 13 '20

Thanks! I'll check it out.

1

u/InertiaOfGravity Sep 13 '20

I don't disagree, but for things like this codegolf is super impressive

7

u/[deleted] Sep 12 '20

That's the only problem I have with Codewars. The most "clever" one liners get upvoted as "best practice" despite often not being very readable. I think readability is the most important thing. If you can write a readable method in 5 lines but a "clever" one in two, always opt for the readable one.

1

u/schm0 Sep 12 '20

IIRC they have two rating systems, clever and best. Clever is for the one-liners that use bitwise operatives and language quirks or condense things. Best is like best practices.

1

u/BenjaminGeiger Sep 12 '20

That's why I love how they separate "clever" from "best practice".

0

u/[deleted] Sep 12 '20

[deleted]

8

u/[deleted] Sep 13 '20

A decent compiler will turn them both into the same opcodes anyway.

Is that true?

6

u/[deleted] Sep 13 '20

you just offended every arrogant know it all programmar on the hacker rank discussion board lmao. i swear, when i need to figure out the solution, i'm BOMBARDED by 1-5 line solutions by guys who want to show off how small their program is

7

u/Hour-Positive Sep 12 '20

Analyse them deeply. Is it actually fundamentally better? I notice they almost always are not; they are clever but not good practice. Love the clever answers though

4

u/[deleted] Sep 12 '20

Fundementally better I am not sure as I'm more of a hobbyist but I can see what everyone is saying how it's bad practice due to how unreadable and not very apparent as to what it is doing. I figure you typically would not want to execute all of your functions logic within the return lol. These responses have taught me a lot already so that's always a great aspect of communities like this one.

3

u/Hour-Positive Sep 12 '20

In general there are nifty solutions, best solutions and overtly verbose ones. I say when you begin you should make verbose ones and refactor to best solutions.

A best solution implements a (close to) optimal algorithm and is self-descriptive. With the latter I mean sub-dividing steps into methods; using scoped variables to store data in. Name these methods and variables cleanly and descriptive.

Having done this get rid of any excesses.

The issue many languages have is that they adhere to multiple programming paradigms. You probably notice a lot of method chaining or use of streams; don't do this when you're starting of. They are almost always the shortest but the most incomprehensible solutions.

Just some extra thoughts.

5

u/TheTomato2 Sep 12 '20

Dude, those one liners are stupid as hell and a blight on the system when people give them best practice. Short code isn't necessarily faster or better code, and usually is actually worse code. And you have to understand that most of the time, they take the answer and just spend time figuring out how to refactor it into one line. Its not like bunch of genius's are on code wars are effortlessly popping out one line answers all day.

1

u/InertiaOfGravity Sep 13 '20

The one liners are definitely impressive. People try to gold challenges like these. Not best prac, but definitely impressive

1

u/TheTomato2 Sep 13 '20

They usually aren't. Sometimes they can be clever, but to sit down and refactor/condense you code like that isn't as hard as you'd think and its usually just a waist of your time.

1

u/InertiaOfGravity Sep 13 '20

I don't know if you've ever done codegolf, but this isn't as easy as you think

1

u/TheTomato2 Sep 14 '20

Yeah but Codewars isn't code golf lol. Putting ++ in function calls isn't clever, its asinine.

1

u/InertiaOfGravity Sep 14 '20

Sure, but people gold everything. Often the best practice is a fairly boring way of solving. I bet many do codewars for fun

Do people dislike ++? Never seen anyone really say anything either way about ++

1

u/TheTomato2 Sep 14 '20

A lot of the on liners you might see for C++ might be something like

int x = 1;
foo(x++)foo(--x)

instead of

int x = 1;
foo(x);
x++;
foo(x);
x--;

That is a rather simplified example but sadly not that far form the truth, but the top one is not clever and its it definitely not best practice and it makes newbs think that it's good code when its not in any way shape or form. If you think its clever w/e, more power to you, but its not best practice lol. Clever should be "Oh, I didn't think that way to do something, that is smart!" not "I tried to eliminate all the whitespace lol."

Here is a real example for c++ snail sort. That code had most best practice and most clever by a huge margin. He just shoved the like most basic algorithm into less lines. I could have easily have done that had I wanted to. You would probably be fired for writing that on the job. Seriously he put 4 nested while loops in a while loop. lol.

1

u/InertiaOfGravity Sep 14 '20

Those are kind of lame, but there are some very nice oneliners. Over at /r/dailyprogrammer, there's always someone who solves the entire thing in 1 line in python in some ridiculous way.

qsort []     = []
qsort (x:xs) = qsort (filter (< x) xs) ++ [x] ++ qsort (filter (>= x) xs)

Is a very nice quicksort oneliner

5

u/[deleted] Sep 12 '20

I thought I was the only one that felt this way. I go step by step, line by line. I’ve been coding for a month and once I get the hang of things I’ll worry about conciseness. I just want my code to work. That is my end goal.

1

u/[deleted] Sep 12 '20

Yeah for me as well, I've never worked on a team or anything so it really just comes out as how I approach and break apart a problem to find the solution. It's harder for me think of a solution as an all encompassing singular line. The other replies have taught me that that can be a good thing in a work environment because we can explain our whole thought process in an easy to digest way.

1

u/TheSynner Sep 13 '20

When you are on sites like this, you should always understand that some things simply don't matter, and are instead taken over by other things, which, in this given context, actually matter a lot more for various reasons (writing less will get you to a solution faster, similarly writing "clever" code may cut down a lot of unnecessary boilerplate and will let you focus on more important aspects of a problem, for example).

1

u/Danielssan1 Sep 13 '20

Even then, you learn skills to make your code more efficient. I always look at my code after I finish to see if I can streamline it more. Just so I don't look like a total noob.

1

u/AdventurousAddition Sep 12 '20

Haha, yeah that is always challenge with python, get it into a one liner. I remember once the task could be solved with a function that was in one of tye standard libraries. One solution I saw was simply an import statement

11

u/swurvinmervin Sep 12 '20

I love code wars! Damn they're tricky sometimes

2

u/FatherOfTheSevenSeas Sep 12 '20

What level are you on?

204

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/PostDivine Sep 12 '20

I've tried both hacker rank is better than codewars IMO but I say use both

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

u/FatherOfTheSevenSeas Sep 13 '20

Thanks, I will look at Edabits, sounds good

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

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

u/FatherOfTheSevenSeas Sep 13 '20

This looks quite good, thanks.

19

u/[deleted] Sep 12 '20

6kyu and I already feel dumb af

1

u/NefariousSerendipity Sep 13 '20

8kyu and I feel dumb af

edit: that's because I am.

0

u/[deleted] 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

u/[deleted] 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

u/InertiaOfGravity Sep 14 '20

Oh I see. Thanks!

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.

https://github.com/JoshKPatterson/JS-Algorithms

0

u/[deleted] 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

u/FujiToday Sep 12 '20

A nice alternative site is Edabit.

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

u/[deleted] 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

u/[deleted] 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

u/MsFortunateMe Sep 12 '20

I like freeCodeCamp myself

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

u/[deleted] 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

u/[deleted] 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

u/pelirodri Sep 12 '20

The only one I’ve ever liked and felt comfortable with has been CodeSignal.

1

u/[deleted] Sep 12 '20

codewars is great, I love it

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

u/InfernoRaiser03 Sep 12 '20

What books do u recommend for beginners?

1

u/[deleted] Sep 12 '20

Me too even though I never got past 6th kyu lol

1

u/chandyego84 Sep 13 '20

How long have you been coding for?

1

u/Tobikaj Sep 13 '20

Are there any of these for Java programming?

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

u/n0gear Sep 13 '20

Is Codewars free or is it a subscription service?

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

u/[deleted] 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

u/[deleted] Sep 12 '20

[deleted]

5

u/[deleted] Sep 12 '20

[removed] — view removed comment

1

u/JoeBeOneKenobi Sep 12 '20

Same but in atom

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

u/[deleted] 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

u/[deleted] 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.

https://projecteuler.net/problem=18

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

u/[deleted] Sep 12 '20

[deleted]

11

u/botCloudfox Sep 12 '20

I think that may have been a joke.