New answers tagged

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, ...
janos's user avatar
  • 111k
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 ...
Toby Speight's user avatar
  • 72.1k
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 ...
Ajinkya Kamat's user avatar
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 ...
J_H's user avatar
  • 17.3k
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 ...
Michael Butscher's user avatar
0 votes
Accepted

Simple text file encryption and decryption

Enable more compiler warnings. ...
Harith's user avatar
  • 2,416
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. ...
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 ...
chux - Reinstate Monica's user avatar
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 ...
Edward's user avatar
  • 65.4k
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 ...
matt.roelle's user avatar

Top 50 recent answers are included