Code Snippets

How to Run Dockerized Builds Inside Jenkins Running in Docker

How to Run Dockerized Builds Inside Jenkins Running in Docker

This post solves the common problem of running Dockerized projects inside Jenkins when Jenkins itself is running as a Docker container. The default Jenkins image leads to permission errors when building Docker containers in pipelines. The author provides a straightforward solution by creating a custom Jenkins image with the Docker CLI installed and configuring the Jenkins user to access Docker commands. A sample Dockerfile and usage instructions are included, making it easy to build and run a Jenkins container capable of running Docker builds inside. This helps developers integrate Docker builds within Jenkins pipelines smoothly.

Javascript

Entendendo de uma vez por todas a diferença entre splice e slice em JavaScript

Neste post, o autor explica de forma simples e divertida a diferença entre os métodos `slice` e `splice` em arrays JavaScript, frequentemente confundidos. Usando a metáfora de fatias de bolo e histórias cotidianas, ele mostra que `slice` retorna uma cópia de uma parte do array sem modificá-lo, enquanto `splice` altera o array original removendo ou inserindo elementos. O texto traz exemplos de código para facilitar a compreensão e destaca as assinaturas e comportamentos técnicos de cada método, ajudando o leitor a entender de vez essa diferença fundamental na manipulação de arrays em JavaScript.

Career

Changing Careers: How I Left Sales and Became a Developer

This post shares the author's journey from working in sales in a commercial company to discovering a passion for programming. Motivated by the instability of sales commissions and inspired by a mentor, the author began automating sales processes using VBA and Microsoft Access, eventually developing a custom sales system. Alongside this, the author experienced early agile practices with Scrum, navigated challenges in the software house environment, and decided to formally study Systems Analysis and Development. This story marks the beginning of a career change and promises future posts about programming, career, and daily life experiences.

Top