Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
4 votes

Field Sorting , ANSI-C/K&R 2ED, Exercise 5-17 brainstorming

A point not mentioned yet is that you're using atof in numcmp. This function gives you no ability whatsoever to do any form of ...
Chris's user avatar
  • 4,214
3 votes

Field Sorting , ANSI-C/K&R 2ED, Exercise 5-17 brainstorming

Review of helper function: my_strcmp(): Differences between OP's my_strcmp() and standard library ...
chux's user avatar
  • 36.4k
3 votes

Operator-precedence calculator in C

Strongly consider using braces consistently. In reduce notably you have an if without curly braces, and then curly braces around ...
Chris's user avatar
  • 4,214
3 votes

Translate between Tcl and Python lists

There are a few ways the to_tcl function can be streamlined. ...
Chris's user avatar
  • 4,214
3 votes

Translate between Tcl and Python lists

speed We're using interpreted Python, so it's not like this is going to be a speed demon. If we really cared about speed we would opt for Rust. That said, if we can process chunks of characters at a ...
J_H's user avatar
  • 42k
2 votes

Translate between Tcl and Python lists

Tools You could run code development tools to automatically find some style issues with your code. ruff and pylint recommend ...
toolic's user avatar
  • 15.5k
2 votes

Lisp expression parser

Let's avoid some repetition by defining a list of sample cases and then looping over that. ...
Chris's user avatar
  • 4,214
1 vote

Lisp expression parser

Overview The code layout is good, and you used meaningful names for many of the functions and variables. Well done. Here are some minor coding style suggestions. Documentation It's great that your ...
toolic's user avatar
  • 15.5k

Only top scored, non community-wiki answers of a minimum length are eligible

Morty Proxy This is a proxified and sanitized view of the page, visit original site.