Leetcode seems to be the de facto winner for studying problems that are actually used in interviews. Different problems are tagged with company names where users have been asked that problem. I'm not familiar with codingbat, but from a cursory overview, seems like leetcode seems better - more full featured site plus much larger problem set. That said, unless you're studying for interviews per se, the best way to learn is to build something, not do toy problems. A "todo" app is a pretty standard "build something" project. See TodoMVC, for instance, for lots of examples in different languages that you can learn from. Answer from smidgie82 on reddit.com
🌐
Reddit
reddit.com › r/learnprogramming › are exercises on codingbat a realistic representation of what you would see in job interviews, or just good practice?
r/learnprogramming on Reddit: Are exercises on codingbat a realistic representation of what you would see in job interviews, or just good practice?
July 1, 2022 -

Hi all I'm attending a university taught boot camp in the fall, but I'm taking the summer to self learn and educate myself as much as possible. I've started with python and after becoming comfortable with the basics I learned about codingbat. I'm able to do a lot of the exercises on there (but not all), and I was just curious as to how accurate a representation the questions on there are compared to what you would see in a real world interview?

🌐
Reddit
reddit.com › r/learnprogramming › what are your thoughts on codingbat and codeacademy?
r/learnprogramming on Reddit: What are your thoughts on CodingBat and Codeacademy?
January 31, 2013 -

I've been learning Java since last semester, and I would like to hear your opinions on CodingBat and Codeacademy.

I really enjoy CodingBat, there are a ton of questions and, while most of them are ridiculously easy (so far anyway), it really helps me get certain concepts drilled into my brain. I really want to get to the harder problems (completed both warm-ups, string1 and array1), but I'm a stickler for completing everything in order.

Once I finish with CodingBat for Java, I'm planning to start with Python in Codeacademy, then go back and do the Python section in CodingBat. I haven't used Codeacademy before, but one of my CS friends swears by it. Do you guys think it'll be comprehensive and good to learn Python through Codeacademy? I've never learned or touched any Python, but people tell me that it is VERY similar to Java. He also recommends Ruby, but we'll see as it'll take me some time to do what I'm already planning to do on top of school and work =P

So, what do you guys think about CodingBat and Codeacademy in general? Are they very good sites to learn programming? Does anything happen when you complete everything in CodingBat?

Oh, and someone else told me that if you complete an entire section in Codeacademy, you can pay like $30 for certification. Is this true, and if so, is this worth it?

Thank you guys for reading this. I really do have a passion for programming, and I'm hoping to get an internship next Summer (backpacking through Europe this Summer... HELLLLLLL YEAHHHHHH).

TL;DR: What do you guys think about the learning effectiveness of CodingBat and Codeacademy? What happens when you complete them?

Top answer
1 of 5
14

Shortly speaking they could really give the beginner the understanding of basics of programming.

Disadvantage is that they operate with specific languages (JavaScript, or Java) and leave great gaps in the technical "knowledge". Not so long ago there was a question of a guy finishing CodeCademy about "how to attach javascript to a page" - thing which should be clear with almost any tutorial.

 

So you should not rely too much on them. They are nice but they will not magically make you even a junior developer :)

2 of 5
10

It's well known I run a programming bootcamp around these parts. The vast majority of our students use CodeAcademy before they come to our camp. In fact, we ask them to for a gentle introduction to basic syntax. By the end of week 1 we are amazingly far beyond what those sites teach. The comp sci grads that come through the program say we cover a semester every week... which is good, that's what we're going for.

Regardless, these sites do not teach you how to build real applications in a professional manner, they teach you specific syntax. If you want to learn with the goal of being employable, we have found it takes about 700 hours of deliberate practice. You get deliberate practice by having guided instruction. How do you learn to be an electrician? You apprentice yourself to an electrician. Same with plumbers. Doctors do residency. Etc.

I can go through a guided tutorial on how to build a cabinet, but I won't be a carpenter when I'm done. That all being said, if you are interested in becoming a programmer, I highly recommend them as a way to dip your toe in the water and figure out if you even like it. Being a great programmer requires a lot of time spent honing your skills outside of work, and if you don't like doing it, you'll never be good at it.

🌐
Reddit
reddit.com › r/learnjava › i need help with codingbat questions..
r/learnjava on Reddit: I need help with codingbat questions..
November 3, 2023 -

Hi, so i've been trying to learn java for 2 months now, and im going good with the concepts and multiple choice questions from several recrouses, but i'm still strugging to solve questions from codingbat, and find myself spending too much time trying to come up with a solution. I was wondering if there is any additional resource I can use to master my skills and time efficentally solve questions, such as the ones presented in codingbat.

Top answer
1 of 3
1
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2 of 3
1
You have learnt the vocabulary and grammar but cannot write a book - kind of normal. Multiple-choice questions are the wrongest things to learn programming. Do a proper course, like the MOOC Java Programming with all the exercises and you will learn both, Java (the programming language) and programming. Then, you will have no problem solving the Codingbat problems.
🌐
Reddit
reddit.com › r/learnprogramming › is this normal or am i not suitable for learning how to program? how do i know if i am suitable for this or not?
r/learnprogramming on Reddit: Is this normal or am I not suitable for learning how to program? How do I know if I am suitable for this or not?
December 10, 2021 -

I am learning Java and I am at the very beginning of my programming journey. I am using CodingBat for practicing and I am having a very hard time while solving the easiest tasks. I feel already burnout trying to solve questions and I almost can't do anything without using google. It has been just a few days since I started so I don't know if it's normal or not. What do you think? Is it normal? How do I know if I am suitable for this or not?

Edit: Thank you so much, you've been very helpful :))

Top answer
1 of 47
309
Anyone can learn to code. I firmly believe that, and as a long time tutor, educator, and mentor I have yet to be proven wrong. Yes, it is difficult. You are learning to think in a way you have never had to before. It takes time and struggle. If you can channel that frustration into determination you will do just fine. But don't expect to ever not have to google most things, that's just part of the game. Eventually you'll google some things so many times you won't have to google them anymore. Then a few months will go by where you haven't seen that thing, and you'll have to google it all over again. It's a tough thing to learn for everybody, but there's nothing in this world that can't be learned for the motivated. But you can't take frustration personally, its just part of the learning process. Others will feel that same frustration towards something you understood right away.
2 of 47
64
I often wonder if learning programming is the first time a lot of people encounter a "hard" subject that they don't pick up right away. That would explain why so many people are insecure about how slowly they learn at first. Possibly the number one most common thread on this sub besides "where do I start?" is "is it normal for me to not get it/learn slowly/feel stupid?". The truth is, learning programming is hard. It's not something you pick up in a couple of days. Expect to struggle with it. It's introducing a lot of new concepts that you've never really encountered before. It will take some time for those to really gel in your mind. This is a path that takes months or years, not days.
🌐
Reddit
reddit.com › r/learnpython › i recently completed ~300 codingbats in python
r/learnpython on Reddit: I recently completed ~300 CodingBats in Python
April 9, 2019 -

Over the past six weeks, I've slowly been working on CodingBat problems in Python. I've archived my solutions, there should be 317 in total. The solutions are organized by section name, I've included the test cases from the site at the bottom of each section. May they be of use to someone.

https://github.com/WorryingWonton/PyBats

🌐
Reddit
reddit.com › r › codingbat
r/codingbat
August 8, 2012 - Hey everyone! I started a youtube channel which provides solutions to Coding Bat. I've started to post two today and will post more tomorrow onwards · Feel free to check out the channel :D
Find elsewhere
🌐
Reddit
reddit.com › r/learnprogramming › trying coding bat: is my code okay compared to their solution?
r/learnprogramming on Reddit: Trying coding bat: Is my code okay compared to their solution?
April 12, 2020 -

Hey!

I've been working on learning Python through a Udemy course, and lately I've been using Codingbat.com to force myself to work through some problems.

This is a simple problem, but I want to know why is their code more complicated? Is it just because it assumes that most people would think in this way? Or, am I writing in a weird way and developing weird habits?

Here's the screenshot of what I am looking at on Codingbat

Thank you for any feedback!

Top answer
1 of 2
1
It seems you may have included a screenshot of code in your post " Trying coding bat: Is my code okay compared to their solution? ". If so, note that posting screenshots of code is against r/learnprogramming 's Posting Guidelines (section Formatting Code): please edit your post to use one of the approved ways of formatting code . (Do NOT repost your question! Just edit it.) If your image is not actually a screenshot of code, feel free to ignore this message. Automoderator cannot distinguish between code screenshots and other images. Please, do not contact the moderators about this message. Your post is still visible to everyone. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2 of 2
1
Your solution is fine. The given solution seems like a direct translation of what an idiomatic Java solution might look like -- a solution that follows best practices and style guidelines for Java. However, that doesn't make it idiomatic Python. Two notes: str is the name of a built-in class in Python, which means calling your parameter str is somewhat confusing. It'd be better to name it something like s or text instead. Not everybody will remember that doing my_string[:3] will return a string even if my_string has fewer than 3 characters -- it's not a frequently used trick and there are some programming languages that treat this as an error, for example. (This doesn't mean you need to change anything about your code, it's just something to keep in mind.)
🌐
Reddit
reddit.com › r/learnprogramming › coding bat help
r/learnprogramming on Reddit: Coding bat help
October 1, 2020 -

Hello! Ive been trying to learn programming and I was able to do the string 1 problems, but these string 2 ones are tough. Can someone tell me what I am doing wrong?

Return the number of times that the string "hi" appears anywhere in the given string.

countHi("abc hi ho") → 1
countHi("ABChi hi") → 2
countHi("hihi") → 2

public int countHi(String str) {

int answer = 0;

for(int i=0;i<str.length();i++){

if(str.substring(i,i+1).equals("hi")){

answer = answer+1;

}

else{

answer = answer;

}

}

return answer;

}

I just return 0 for all of them :(

🌐
Reddit
reddit.com › r/learnprogramming › alternative to codingbat
r/learnprogramming on Reddit: Alternative to CodingBat
September 7, 2018 -

Hello!

I am a CS lecturer and I need something similar to CodingBat (with the ability to *create new problems* in Java).

I would need it without the following limitations:

  • No use of System.in / System.out: we use these a lot in our lessons.

  • No use of classes: at some point, new classes need to be defined to solve some exercises.

Do you know any tool that could work well?

I have checked codewars.com and although it looks promising, I want the students to solve the exercises I propose (and check their progress).

Thank you!

🌐
Reddit
reddit.com › r/apcs › is codingbat java any good for preparing for the frq's?
r/apcs on Reddit: Is CodingBat Java any good for preparing for the FRQ's?
January 15, 2021 -

I have been using CodingBat Java (https://codingbat.com/java) to prepare for the Java FRQ's and I was wondering if anyone has been using it or if it looks any good. Also does anyone have any good websites that they are using for extra practice for the FRQ's? Any help would be appreciated. Thanks!

🌐
Reddit
reddit.com › r/learnprogramming › codingbat is an excellent tool if you want to practice
r/learnprogramming on Reddit: CodingBat is an excellent tool if you want to practice
March 24, 2022 - Just go to codingbat.com , create an account, and you'll see ample practice in Java and Python. Though problems are available only for those two…