Nothing here yet.
Nothing here yet.
I think the problem you're facing is that the app tries to connect to the mongodb before it's up and running and it causes the app to shut down. What you need to do is to retry connecting to the database when it's not responding and withhold your app's execution until the connection is established successfully.
It's funny how they've mentioned Iran as 2nd place in "growing open source projects". It's probably because they've already banned all of the Iranian developers' private repositories and the only way to reaccess your private data is to make it public, ergo contributing to open source world!
Hey Fernando Gonzalez , yeap you're right. It's just randomly disappeared. (Probably because of sanctions or smth) I pushed it again to the docker hub, but it certainly was an ordinary image that did nothing but to run the flask and what you've written yourself does the job perfectly.
Recently I'm reading a book named Data Structures and Algorithms in Python by Michael H. Goldwasser, Michael T. Goodrich, and Roberto Tamassia . It's very thorough and a perfect read to review what you already know or fill up your basic programming knowledge holes.
IMO the urge of being always up to date and the fact that what you already know is never enough can easily break a programmer's life balance and it's a feature that you can't easily find in another profession. You're reading a novel and there's a buzz in your head whispering that you haven't learned that technology your coworkers were talking about yet. You're watching a movie and you think about what courses you could watch instead of this and this can easily slip out of your hand and result in having a single-dimensional mind and to have nothing to talk about near a non-programmer fella. And another they don't tell you about being a programmer, is the distance of a programmer and their workplace, which actually is the distance of them from their laptop and this too can become a buzz inside your head, that you always can do more work instead of what you're doing at the moment, even spending time with your beloved ones.
I'm working on refactoring an auto-assigner application that's responsible for getting food orders from clients and assign it to the most proper biker available to deliver the food. It's a part of a legacy monolithic core written in PHP, Symfony and I'm porting it to Python. The most exciting part of this transmission is a timescale database, that's responsible for storing current bikers' position and its performance on huge amount of data (500M+ records) is just mind-blowing.
Composer is a package manager and using it, you can easily find the package you want, download and use it in your project. Composer.json, on the other hand, has all the information composer needs to build your application from scratch. In this file, you specify what package and which version you need in order to make your app work. The autoload part of composer.json file is for "PSR-4" autoloading. It binds some directories to a first-level namespace so according to the files and directories inside the parent directory, namespaces form correspondingly. For example, this code would make a file within path app/Foo/Bar/Baz.php having this namespace: App\Foo\Bar\Baz "autoload" : { "psr-4" : { "App\\" : "app/" } }
I think whatever makes your day to day life better and more exciting, makes you day to day job as a developer easier too. But that's not an easy thing to achieve in my opinion and it's directly related to your personality and how you're living your life. Everything else - a new keyboard, a brand new iMac, flowers - is just a distraction, for you to escape from finding that ultimate happiness. I haven't found it yet. Fingers crossed that will find it eventually but until then, I think it'd be loads of puzzles and features and "distractions" that can make my day-to-day life as a developer easier. Oh, this and a Spotify that knows me so good that I don't need to skip any more songs ever again.
SublimeText and Vim Guake Terminal + zsh + OhMyZsh (Because I found it the closest to iTerm) Docker Postman for testing and sharing APIs MySQL Workbench for database design draw.io for designing and depicting services and their dependencies Spotify and Soundcloud