Is Using Boolean Arithmetic Like This Ever a Good Idea?
I wrote a single line that chooses between different expressions based on whether `IorC` is equal to `"i"`, `"c"`, or `"s"`: `IorC = IorC**(IorC == "i") + CodedF**(IorC…
I wrote a single line that chooses between different expressions based on whether `IorC` is equal to `"i"`, `"c"`, or `"s"`: `IorC = IorC**(IorC == "i") + CodedF**(IorC…
I've mostly learned programming by building projects, making mistakes, and trying to improve the next one. That has helped, but I'm wondering what else I should be doing…
I've been relying heavily on AI while coding, and I'm worried that it's helping me produce working code without actually improving my understanding. This becomes especially concerning with…
I'm new to the software industry and recently attended a training session where the instructor claimed that using four spaces is generally more optimized than using tabs. One…
I'm new to professional software development and recently attended a training session where the instructor claimed that using four spaces is often more optimized than using tabs. One…
I'm developing a website for my aunt and trying to approach it like a professional project. I've conducted a requirements interview to create documentation including a Software Requirements…
I'm currently working on a multiplayer lobby server and I've found myself rewriting it three times now, and I'm hoping this will be the final iteration. The first…
I'm fairly new to programming and I've noticed a lot of discussions around optimized and unoptimized code. When I'm working on projects with AI tools like Cursor, my…
I've declared some boolean variables (l, g, e) as constant because they represent conditions that won't change. My intention was to alter the values of val1 and val2…
I have a piece of code I'm working on and I'm wondering about performance related to using conditions versus assignments. For example, I can either use two conditions…
I'm working at a small IT company where my team lacks any code review process. I've noticed several issues in the code my colleagues have written, which include…