Wouldn’t it be cool if we could easily select features to build our own programming language? Imagine when you buy a car or a computer, for example — you select a base model/something to start with, and then add or remove options. I work with Java for a few good years, and I like it — it’s not dead for sure (not for me at least). But I’d wish I could quickly start coding in the terminal, as you can do with Python. Am I asking for too much?
I don’t want to move to Python completely. Overall, I don’t…
Documentation is crucial for any REST Web Service application. It’s how users can obtain information and thus interface with it. Many frameworks facilitate this job—for example, SpringDoc and SpringFox Swagger2. From the code, at build time, they auto-generate OpenAPI specification in JSON/YAML format and support Swagger UI for displaying in the browser.
SpringDoc is the one I prefer. It supports OpenAPI version 3 and to get started it only requires to include the dependency in the pom.xml (Maven) and no other code. If you need extra documentation, such as the title of the page or to explain some logic, it’s…
I recently worked in a project that required to create a Spring Boot application and use it from another application, by configuring a dependency in pom.xml. It contained a controller and web content such as js, HTML and image files. The structure and functionality were simple. The controller, when called, would read values from the application.property file and invoke an HTML passing them as parameters.
When doing this work, I encountered some challenges I would like to share with you. They were far from rocket science, but still, it took me a few hours of research and trial and error…
Back in 2015, while visiting my mom, I noticed she was walking strangely. She was dragging one of her feet more than usual. I thought it was just a habit. She said there was a bit of pain, that was all. She was still very active, going to the gym, running on the treadmill (she loved the treadmill), and going normal about her life.
But the strange-looking walking worsened. It began to be difficult to lift the foot at all. After many exams, physiotherapy, and no other conclusion, she was diagnosed with atypical Parkinsonism. It progressed very quickly, and today…
Template string is another method used to format strings in Python. In comparison with %operator, .format() and f-strings, it has a (arguably) simpler syntax and functionality. It’s ideal for internationalization (i18n), and there are some nuances that you may find advantageous—especially when working with regular expressions (regex).
Let’s first see the syntax of the other three, so we can compare.
>>> name = "Alfredo"
>>> age = 40
>>> "Hello, %s. You are %s." % (name, age)
'Hello, Alfredo. You are 40.'
>>> print('The {} {} {}'.format('car','yellow','fast')) #empty braces
The car yellow fast>>> print('The {2} {1} {0}'.format('car','yellow','fast')) …
I love dogs or cats, or any pet in general, I’ve been thinking more and more about getting one. Especially since my son was born. He’s two-year-old now, and it would be great fun to have an animal around the house.
But then reality hits me (and so does my wife) — a toddler to mind due to daycare being close (pandemic), 9–5 work and other things. I have enough on my plate. It’s also a hassle when you have to travel. I live abroad and visit my hometown every year. So no, not for now.
What about a robot…
Deep learning (DL) is a type of machine learning (ML) that solves tasks using, let’s say, more advanced tactics. Problems that are complex for computer programs to handle and at the same time easy for us. Such as speech and image recognition [1].
When we see a car, we know in a fraction of a second what it is. It doesn’t matter the shape, from which angle or lighting. It’s easy for us to identify the patterns and distinguish from other objects. Why can’t traditional machine learning systems do this? For example, they work well for recommendation systems.
The difficulty…
I migrated to Git, from SVN, not so long ago and started using it full time. Since then, I’ve been tracking the operations I run more frequently. There are other handy operations for sure, such as overwrite one branch by another one, cherry-pick or rename/delete a branch, but I don’t use them as often.
I didn’t include all the details about each one, with all the possible options. The information here is more to serve as a quick access cheat sheet. For more documentation, you can access https://www.git-scm.com/doc or https://docs.github.com/en.
git init git add <file> git commit -m “message” git…
A coding factory, what a brilliant idea.
Imagine this: the analysts are located in another state. They do all the design beforehand — I mean, ALL of it: Classes, methods and its arguments, variable names, the business logic — everything is beautifully represented with UML diagrams (Unified Modeling Language: do you remember?). The design is sent to the coders located in another place with less tax and cheaper cost of living, which translates to smaller salaries. A lot of them are interns and programming for the first time —after all, it’s just about interpreting the diagrams and writing the program.
…
With the advancements in Reinforcement Learning (RL), there has been a great interest in games’ search algorithms. Monte Carlo Tree Search (MCTS) is state of the art and used in AlphaGo and AlphaZero. Another popular and important one is called Minimax.
It’s the one behind IBM’s Deep Blue machine, that defeated the world champion, Garry Kasparov, in 1996–1997. It can still be efficient in chess, Tic-Tac-Toe, and other zero-sum games, which is when the number of a player’s winnings is equivalent to the opponent's losses and the sum equals to zero.
The logic of Minimax is to predict the player’s…