V
V
Vyacheslav Grachunov2019-11-02 20:28:03
C++ / C#
Vyacheslav Grachunov, 2019-11-02 20:28:03

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

6 answer(s)
A
Anvar Shakhmaev, 2018-09-21
@MKaffein

but I didn’t understand where the complexity is in this language

1. difficulty in finding a job
2. difficulty in writing programs similar to programs in C #, java
3. it is very easy to forget to clear the memory allocated by the new operator, work with pointers, references, virtual functions. And if you climb into the jungle of tables of virtual functions, then you will automatically start programming for the sake of programming.
on the pros, you can write everything the same as you can write in C # or Java and vice versa. Perhaps the only plus of C ++ is that programs on it turn out to be somewhat more productive (in assembler it is even better in this regard), although the experience of the developer plays the most part here: what algorithms he writes, how the program architecture is built.
I studied C++ stubbornly the first year of my acquaintance with programming, even wrote a small game. I do not see any practical use in this language in the current 2018, if only for the development of the theory of programming itself, but not for the sake of writing programs. Too difficult to apply.

D
Decadal, 2018-09-21
@Decadal

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.

G
GavriKos, 2018-09-21
@GavriKos

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.

The best way to learn PL is practice. Books are definitely needed, but if you don't put your knowledge into practice, it's useless.

D
devalone, 2018-09-21
@devalone

Just start coding
maxresdefault.jpg

V
Victor Bomberow, 2018-09-22
@majstar_Zubr

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?

S
Sergey Gornostaev, 2019-11-02
@Qwentor

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 question

Ask a Question

731 491 924 answers to any question