Sign in

Software Engineer in constant learning mode | Twitter: @vinidsmonteiro | Email: vinidsmonteiro@gmail.com

Analysis of different coding styles on whether they can be considered a bad practice or only a matter of preference

we all have different styles and preferences in everything in life, including how we write code. Imprinting your personality in the code brings originality and a sense of ownership and responsibility for it. This is important to keep us motivated; it makes us feel good (at least I do).

However, is the coding style always just a harmless style? Or does it impact readability and hence maintenance?

For example, during a code review, I often find myself questioning whether I should bring certain ways of coding to discussion or not — is it readable, is it easy to maintain? …


As a software engineer with many responsibilities, I’ve learned how to manage my time better to keep myself sane

Man working on laptop
Man working on laptop

"Hey, you say you don’t like switching between tasks all the time, but apparently you’re quite good at it."

Every single year. In every performance review, that’s what my manager says to me. And when I tell my wife about it, she goes, "Yeah, I agree with him." While I appreciate the compliment, I don’t know if it’s true. Moreover, I don’t know if I want to be good at context switching.

I’m a software engineer working on code, infrastructure, and customer support while also being a leader in some projects. Monitoring emails, debugging code, deploying applications, architecting systems, preparing…


The inner works of our brains

Brain plasticity is the brain’s ability to adapt and reorganize as we interact with the world. In the book Livewired: The Inside Story of the Ever-Changing Brain is a non-fiction book, the neuroscientist and author David Eagleman, gives insight into what happens if someone has half a brain, why we dream and other mind-blowing explanations.

We are accustomed to thinking the areas in the brain are fixed in place, being each one responsible for a specific part of the body. However, it’s rather very dynamic. We are only born with rudimentary neurons, not fully preprogrammed. …


The details of four feature proposals coming to JDK 17. The next long-term support (LTS) version.

Java Development Kit (JDK) 17 is set to launch in September 2021, and it has four proposals in the pipeline so far.

The JDK will be a long-term support (LTS) version, which means it will have Oracle support for many years to come. Other LTS JDKs are Java 8 and Java 11.

LTS JDKs are released every three years and non-LTS every six months. In comparison, LTS versions' support lasts for several years, whereas the non-LTS JDKs' support lasts only six months, ending when the next non-LTS is released.

Here are the details of the four JDK Enhancements Proposals (JEP)…


Why it’s called “regression,” how to find the regression line (intuition), and how to measure how good it is

Stack of books
Stack of books

It’s time to take two steps back in my machine learning journey and dive into the math, algorithms, and intuition behind the scenes. It’s been fun to learn frameworks such as PyTorch, TensorFlow, and the Python language itself. But I realize I’m always getting stuck and having to circle back to understand things better. I want to close this gap.

I’ll begin with writing about linear regression. I won’t cover the various calculations and formulas too deeply. Instead, I want to focus on building intuition and teaching the basics.

Linear regression is a modeling approach and algorithm used in machine…


Great article on Reflectionless.

Introduction to Reflectionless: Discover the New Trend in the Java World.

By the way, is this a good way of using Medium, what do you think?


TTM20.2

After years of hard work, we’ve fixed a major bug

I bought a house second-hand in the outskirts of Dublin, Ireland, and moved in not so long ago. To be exact, two months and eleven days. I live with my wife and our two sons, one with three years old and the youngest six months old. We’ve been enjoying the place, the neighbourhood, it’s a beautiful area. There is a school nearby, lots of green as usual. It rains a lot too, as usual.

Something in the house has been bothering me a bit to the point of losing my sleep. In the shed, in the back garden, right after…


Tutorial on how to use Grommet Swagger with SpringDoc/SpringFox as an alternative to Swagger UI. I implemented a wrapper to make the integration easier.

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…


What I’d choose from Java and Python to build my own programming language

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…


Where to place the web content, how to make controllers load automatically and how to export/import the application as a Maven dependency

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…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store