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 ...
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 ...
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 ...
3
votes
Translate between Tcl and Python lists
There are a few ways the to_tcl function can be streamlined.
...
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 ...
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 ...
2
votes
Lisp expression parser
Let's avoid some repetition by defining a list of sample cases and then looping over that.
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
parsing × 1360python × 323
c++ × 180
java × 179
c# × 156
c × 134
performance × 133
strings × 133
beginner × 115
javascript × 96
python-3.x × 87
regex × 78
xml × 67
json × 60
csv × 54
php × 48
haskell × 47
math-expression-eval × 47
object-oriented × 42
file × 40
html × 38
algorithm × 36
reinventing-the-wheel × 36
rust × 35
datetime × 32