Answer the question
In order to leave comments, you need to log in
How to asynchronously get a list of files in a directory in Python?
How to asynchronously get a list of files in a directory in Python?
Found only this option:
https://stackoverflow.com/questions/23894515/how-d...
Is this really the only way? Is there anything under this case at all?
Answer the question
In order to leave comments, you need to log in
but I didn’t understand where the complexity is in this language
I once learned this language for five years for educational purposes and now I don’t use it at all, but using another language as an example, I came to understand that complexity does not start where everything is started and works, but where active use of your application begins.
The problems are as follows: a lot of code, hard to make changes; a large load (on the base, on memory, on other resources) - you need to optimize but not break; parallelism (especially important for you) - you need stable work; convenience and thoughtfulness (you need users to quickly master your program and not spit).
The beginner estimates "by eye". He divides the world into "clearly complex" and "clearly simple". A professional takes time to think and asks a lot of questions. He doesn't jump to conclusions. A beginner writes code and from time to time realizes that he wrote badly; a professional clearly understands where he wrote badly, why, and under what conditions it needs to be redone, and under what conditions it should not be touched at all. The novice works for the program, the professional works for the business (or "users" who use the program).
To become a professional - 1) get into an experienced team that works on a business product 2) do something that will get users, and regularly listen to their feedback, implement their wishes, etc.
Experience is a very important part of programming that cannot be "swallowed" by reading a book. You have to understand WHAT you are being advised in order for knowledge to be useful, and this also requires experience ... often even a sad experience.
Help me to put together a system by which it is possible to achieve at least initial results in learning C ++. I think books will be the best tool in this matter, although there are quite a few useful video courses.
0) look at what they write in c++ and ask yourself why you need it https://github.com/fffaraz/awesome-cpp
1) read any book on c++, even for dummies, or any course on the basics, no matter which one . Poke, sign something. So, that was the introduction. Now install linux. Learn the basic commands for the terminal and the package manager for the distribution. Find out what is in each folder and why.
2) install geany, cppcheck, clang-format, warning as errors, and write hello world.
3) now open Wikipedia and read about the standard library. Change the program so that it compiles under Windows too. You need to return platform-specific exit codes.
4) read about the compilation process (from the preprocessor to linking), link statically and dynamically, print from hello word to dynamic, automatically recognize the name of the current user in a static lib (well, you can find out by user directory, for example, so that the hello word program does not complicate )
5) add exceptions, write a make build script, and Paul Windu too.
6) add support for utf-8
7) set up automatic build via cmake
8) now you can read straustrup, any book, while reading cppreference.com in parallel: go through all the keywords, and then through the rest of the sections: it is necessary that not a single link be unvisited .
9) in parallel, you can study boost, qt, node.js, or whatever seemed interesting there; and the documentation for compilers and the language standard can be stroked.
10) this entire system can be reduced by several times if a smart goal is formulated. Games? Graphic arts? CAD? Highly loaded server? Translator? Neurons? Bindings? Cross platform? Hobby? SkillUp? Work? Per year? Three?
Yes, the only one. Cross-platform file asynchrony does not exist, and therefore Python does not support it at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question