New answers tagged beginner
2
votes
Accepted
Start script for several Spring Boot services
Give descriptive names to variables
start_service_and_wait is a bit hard to read because to understand what are $1, ...
2
votes
Start script for several Spring Boot services
These strings are terminal-specific:
bold="\033[1m"
reset="\033[0m"
You don't want those if the output stream can't do bold (perhaps it isn't ...
2
votes
Recreating Minesweeper
There are already some good reviews from the C++ point of view. So let me give suggestions from a software architecture point of view.
The code scores an absolute zero from an architecture point of ...
1
vote
Accepted
DB Layer of a project management CLI
Optional means None
class Account(SQLModel, table=True):
...
id: Optional[int] | None = ...
Tell us that id is ...
0
votes
Simple Tic-tac-toe in Python
You could represent the board as list of nine items, initialized as
board = ["."] * 9
Where, if row and ...
0
votes
Accepted
2
votes
char* to integer implementation (atoi with saturation to INT_MIN or INT_MAX on overflow)
Not an answer but a sample test harness using standard library code.
Adjust to ignore errno compare.
...
Community wiki
5
votes
Accepted
char* to integer implementation (atoi with saturation to INT_MIN or INT_MAX on overflow)
Uncommon bug: is...()
is...() expects to receive an int with a value in the ...
8
votes
char* to integer implementation (atoi with saturation to INT_MIN or INT_MAX on overflow)
The code is not bad and easy to follow. Here are some suggestions:
Use pointers rather than indexing
The i variable isn't really needed. Instead, you could simply ...
2
votes
Typescript React-Native Component Dimension Hook
So I think it's natural to reach for a class esp. when coming from an OOP background, but I would encourage you to try and think about if it's necessary in this ...
Top 50 recent answers are included
Related Tags
beginner × 7492python × 1963
java × 1031
c++ × 884
python-3.x × 817
javascript × 682
performance × 612
c# × 558
c × 552
object-oriented × 474
programming-challenge × 425
game × 419
strings × 321
algorithm × 306
php × 235
calculator × 212
rust × 204
haskell × 198
html × 194
tic-tac-toe × 194
array × 180
jquery × 177
console × 175
ruby × 163
python-2.x × 148