16 votes

Python tool to organize downloaded media files

I'm sure Peter is a nice guy, but you shouldn't write programs only for him. Use a parametric home directory. Some of your extensions support either case and some ...
  • 53.6k
9 votes

Python tool to organize downloaded media files

PEP-8 This already looks very readable. You use snake_case as per PEP-8 for variables and functions. However, the global constants should be in ...
6 votes

Mathematical expression evaluator (C++)

For a beginner this already quite advanced and well-written code. Improving custom exceptions It's great that you have custom exceptions that derive from ...
  • 35.7k
6 votes

Python tool to organize downloaded media files

1. Coding style There's a style sheet called PEP8 ("How to write beautiful code with PEP 8") that is strongly recommended for any Python programmer. Your code violates a few of the ...
  • 458
5 votes

Python tool to organize downloaded media files

Adding to all answers, you have a really nasty bug: ALL folders are hardcoded. The problem Windows lets you move the location of the following folders: 3D Objects Contacts Desktop Documents Downloads ...
5 votes
Accepted

Grabbing youtube thumbnails from urls

Prefer constants Rather than defining HD and SD as mutable variable, please prefer constants I think there is a typo in your ...
  • 6,114
3 votes

Trigonometric functions calculator

It's clear that you care about precision, since your M_PI is specified to 38 (!) decimals. It would take a 128-bit floating point number, aka. "quad precision&...
  • 53.6k
3 votes
Accepted

Tic-Tac-Toe Code

Where to start… tuple assignment ...
  • 32.2k
2 votes
Accepted

Trigonometric functions calculator

Don't use arguments just to declare the variable You have unsigned int getOperation(unsigned int op) then inside the function, you print some strings that don't ...
  • 21.1k
1 vote

rustymines - a mine sweeping game with a shenanigan

I don't have time for a complete review right now, so I will just make some observations. First of all: That's a solid improvement over the already good code you submitted last time! Your main begins ...
  • 424
1 vote

Trigonometric functions calculator

How about some math related feedback? Much non-math issues already covered by others. float vs. double ...
1 vote

Trigonometric functions calculator

Minimise use of non-standard libraries #include <conio.h> prevents this program compiling here. But we shouldn't need any libraries other than the Standard ...
  • 60.7k

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