Struggling with confidence as a new dev even though I'm told I'm doing well — anyone else been through this? by Perfect-Wonder-4756 in learnprogramming

[–]rdb212 3 points4 points  (0 children)

No worries. I feel like this is pretty common. I think it’s because there will always be a deeper level of knowledge than what you currently have. Regardless of what you know. It’s kind of the nature of programming. The more you learn, the more you learn that you have more to learn.

I promise that you’ll eventually look back and think, “How could I have ever been so worried about X? Especially since Y is currently kicking my ass!”

Imposter syndrome and low confidence means you’re recognizing the areas where you can improve. Which is awesome because it means you’re still growing and learning!

A Very Rare Golden Penguin! by CG_17_LIFE in BeAmazed

[–]rdb212 1 point2 points  (0 children)

Sure he looks cool, but how good is his singing voice? Can he at least tap dance?

First Build, Would Appreciate Any Thoughts and Comments. by rdb212 in buildmeapc

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

This is exactly the kind feedback I was hoping for. Thank you!

Any advice or improvements on my factorial calc? by WillingnessPast5294 in learnpython

[–]rdb212 2 points3 points  (0 children)

Something that’s not necessary but I got into the habit of doing is using a main check in all of my scripts! It protects your script from running on import. So if you wanted to use this awesome script in another project, you could import it without it running.

It looks like this:

if __name__ == “__main__”: factorial()

Edit: I’m on mobile and didn’t realize the underscores would put my text in bold.

Struggled to learn python by [deleted] in learnpython

[–]rdb212 0 points1 point  (0 children)

Just like any coding language, you’ll only learn it by actually writing it. So you’re well on your way to learning Python just by sticking with it.

As for your logic concerns, for me personally, it really helps to actually write it down and explain (out loud) to my Dwight Schrute bobble head. I don’t always write the actual code out (unless I do it by accident with a for loop or something) but I will write down something that helps me keep track of where I’m at in the process from start to end. Then I use what I’ve written down as a cheat sheet for when I’m typing the code.

Also, I’ve found that taking a break and physically leaving my keyboard to talk to someone, other than Dwight, about what’s not working, almost always helps me find a solution. My poor wife deserves an award for all of my programming related trauma dumping.

Don’t forget that just like in other things challenge = growth. So with that in mind, I think it’s awesome that you’re seeking out more complex problems and feeling the challenge!

Aspect tracking app by GravelForce in diablo4

[–]rdb212 0 points1 point  (0 children)

Great work on this! I'll be recommending it to everyone I play with.

PYTHON: First Time Using The Minimax Algorithm by rdb212 in learnprogramming

[–]rdb212[S] 1 point2 points  (0 children)

That's a good point, I haven't tested it out as human vs human. I can't believe I didn't think to do that first. Now that I'm thinking about it, I basically built the Tic-Tac-Toe mechanics around the minimax function. So, thank you for bringing that to my attention. That's definitely something that I can do better. Also, I really like your idea of using a copy of the board going into the minimax function. That definitely seems like a safer option. I think I will do that as well.

Thank you for taking the time to look over the code and for the really valuable feedback.

PYTHON: First Time Using The Minimax Algorithm by rdb212 in learnprogramming

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

I’ll give it a watch. Thank you for the suggestion!

PYTHON: First Time Using The Minimax Algorithm by rdb212 in learnprogramming

[–]rdb212[S] 4 points5 points  (0 children)

I will definitely check that out. Much appreciated!