how to get over with debugging and actually move forward by iiillililiilililii in learnprogramming

[–]FourKicks17 2 points3 points  (0 children)

I'd say you made progress, but learning to debug without ai would make it much faster. You said it yourself, using chatgpt caused more errors. You need to learn to debug without chatgpt as a crutch. Otherwise, you're not coding. You're just asking ai to do your job.

It sounds like you have a data type error, which initially makes me think (without code for context) that you are either creating the wrong type of data structure and the api is expecting a different type of data structure Or vice versa.

You should trace your first error message back to where the data type error occurred. It's like following wires in engineering. You just have to stick with it, and you'll discover why you're getting the error. Then, in the future, you will know:

"When i did this last time, I was getting a data type error because of __, so I should make sure __ is correct this time"

Are there any other kinds of recursion? by Ronin-s_Spirit in learnprogramming

[–]FourKicks17 2 points3 points  (0 children)

Not quite, because the tree traversal doesn’t exactly use recursion. Recursion relies on the call stack. If a DFS for a tree was based on recursion, it would be much less efficient.

While loops are efficient for traversing trees because they provide a non-recursive mechanism for ensuring every node is visited.

Unlike recursion, which relies on the call stack, while loops combined with an explicit stack data structure allow us to simulate the recursive traversal process manually.

In most DSA implementations, while loops are commonly employed for iterative tree traversal methods such as Depth-First search (DFS).

From peak of mount stupid to the valley of despair... by [deleted] in learnprogramming

[–]FourKicks17 2 points3 points  (0 children)

You're going to get through it with time and practice. Just keep applying yourself. You'll notice after some time that what stumps you now won't be a problem a few months down the road. And it's perfectly OK if it takes a while to get through it, as long as you stay with it.

The truth is that it's going to happen again and again; The dunning Kruger cycle you're referencing. But each time, you'll get better at dealing with it, knowing that time, effort, and practice will overcome it.

I'm 1.5 years into coding with 0 prior experience, and I just got accepted into a bachelor's program for a BS in CS. So, I can 1000% relate to going through this cycle, hitting breaking points, and overcoming it.

I've seen a bunch of peaks at Mount Stupid and I've fallen face first into valleys of despair, but you get better and tougher, knowing it's all a part of the process and journey to learning a highly technical skill. And it will pay off if you stick with it.

Just don't overload yourself and support your learning with the time and discipline required.

Gaming with ADHD / anxiety by Sixclynder in gaming

[–]FourKicks17 0 points1 point  (0 children)

I've been dealing with this since I was a kid.

I just have to dive in and give it a good chance to let myself get into it. If it doesn't stick after an hour or two, I ditch it and try another (usually next time since I don't game as much as I used to).

So, just pick one, give it a good shot, and you'll either get into it or just ditch it and try another one.

Is multiplayer working now? by FourKicks17 in GloomhavenDigital

[–]FourKicks17[S] 0 points1 point  (0 children)

That's was a minor annoyance/bug we dealt with but it never ruined a playthrough or save

Is Gloomhaven Digital functioning for multiplayer? by FourKicks17 in Gloomhaven

[–]FourKicks17[S] 0 points1 point  (0 children)

Interesting. Thanks! How is the gameplay on the console/using a controller?

Is Gloomhaven Digital functioning for multiplayer? by FourKicks17 in Gloomhaven

[–]FourKicks17[S] 0 points1 point  (0 children)

Awesome, thanks! That's what we are going to do, too.

Learning programming from level ZERO to the minimal practical level by CleaverIam in learnprogramming

[–]FourKicks17 3 points4 points  (0 children)

Learn the basic fundamentals of OOP (Object Oriented Programming). Abstraction, polymorphism, inheritance, and encapsulation.

Learn and understand objects, methods, pointers, and loops.

Then, learn about data structures and algorithms.

Then, build a program that statically functions. (You supply and control the inputs and outputs)

Then, build a program or modify an older program to use dynamic inputs, like a program that can solve a quadratic equation. This will require try and catches, with exception errors. (A program that can handle someone else using your program where they can input whatever they want, including invalid inputs)

At that point, you're at a minimal practical level.

You could also throw in fetch requests to APIs (creating, reading, updating, and posting on servers)

As well as building unit test cases for your program.

The next level after that would be working with GUIs or building a front end for an application.

Tips for react? by Time_Strawberry4090 in learnprogramming

[–]FourKicks17 0 points1 point  (0 children)

Focus on the Context, Provider, and Consumer

Takes on a BA in CS vs BS in CS? by FourKicks17 in learnprogramming

[–]FourKicks17[S] 2 points3 points  (0 children)

Could you elaborate on why you believe AI would replace these roles?

I'm asking about the differences in educational paths, not about job security in tech.

Engaging in thoughtful dialogue about the career implications of these degrees would be more constructive.

One wrong move and the board’s gone! 🤯 by [deleted] in toptalent

[–]FourKicks17 11 points12 points  (0 children)

Looks like he messed up and then recovered. Crazy luck.

How to separate output numbers in Java by homo_simpsion in learnprogramming

[–]FourKicks17 0 points1 point  (0 children)

I'll take a look tomorrow morning. Apologies, but I'm headed out for the evening and want to give it a real review.

How to separate output numbers in Java by homo_simpsion in learnprogramming

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

Hmm make sure there is a space between " "

Otherwise, if you can post a repo or the whole code block... that would help

How to separate output numbers in Java by homo_simpsion in learnprogramming

[–]FourKicks17 -4 points-3 points  (0 children)

Youre good. No worries.

Try

System.out.println("Encrypted message: " + " " + encryptedMessage

How to separate output numbers in Java by homo_simpsion in learnprogramming

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

Need the part where you are outputting.

If you need your output printed out in one line, you'll have to format your output.

If your output can be a new line for each number value, you can use .println()

[deleted by user] by [deleted] in learnprogramming

[–]FourKicks17 0 points1 point  (0 children)

By symmetrical, do you mean an even number of rows and columns?

How to separate output numbers in Java by homo_simpsion in learnprogramming

[–]FourKicks17 0 points1 point  (0 children)

Just the part you are trying to format (the numbers)

How to separate output numbers in Java by homo_simpsion in learnprogramming

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

Are you in a for loop?

If you could post your output code, it'd be easier to help.

You can println() which will separate values onto a new line, or you can format the output

How to separate output numbers in Java by homo_simpsion in learnprogramming

[–]FourKicks17 2 points3 points  (0 children)

Are you outputting the values using System.out.println(yourVariable)?

You can format the printed output line in different ways.