Published in Dev Ghost Stories·PinnedHow I boosted my productivity by building a Second Brain 🧠Extremely effective note-taking system for creators I recently ran into a book that changed my entire note-taking system and boosted my productivity to another level! Lately, I was starting to feel very overwhelmed by all of the information I’m consuming and by the fact that I’m struggling to remember all of it. I thought that when…Productivity4 min readProductivity4 min read
Published in Dev Ghost Stories·May 26, 2022Attach methods to a function component in ReactUseful for micro frontend apps and services. With this approach, you can call functions in components from outside. 1. Create a ref with React.createRef. const ref = React.createRef(); 2. Pass the ref to the component. You can either pass the ref to the component in a render function. import App from "./App" export default function AppContainer() { const ref = React.useRef(null); …React1 min readReact1 min read
Published in Dev Ghost Stories·Dec 29, 2021Module Federation with React app and vanilla js projectObjective: Import and Initialize a react app in a vanilla js project via webpack 5 Module Federation. Step 1 Export a function from the react app that renders the app in a container passed as a function parameter. Step 2 Configure webpack to use Module Federation…Frontend2 min readFrontend2 min read
Published in Dev Ghost Stories·Oct 27, 2021Push changes from a GitLab CI Pipeline via HTTPSWhy need this? I am using a visual snapshot diffing tool for one of my projects. I take baseline snapshots and then commit them, then run the test which makes a diff with snapshots of the current state of the app. …Cicd2 min readCicd2 min read
Published in Dev Ghost Stories·Oct 12, 2021Why You should quit a product company?Leaving a product company is very hard! But as soon as we don't challenge ourselves anymore, we should leave immediately. Recently I quit a product company. I joined in in a very early stage of its creation and I worked there for 5 years. Here is my reflection of why…Quitting A Job3 min readQuitting A Job3 min read
Published in Dev Ghost Stories·Sep 21, 2021How to trigger a Gitlab pipeline on mergeI was so surprised to find out that there is no such functionality in the standard tier. I really needed this type of trigger and here is how I worked around the missing function and solved my problem easily. The problem I want to trigger a GitLab job when I merge a…Gitlab1 min readGitlab1 min read
Published in Dev Ghost Stories·May 28, 2021Must-Do Code Review ChecklistThere are many articles about code review principles, benefits, and why we should do them. This one is a bit different. I’ll try to present my practical checklist on Code reviews in a very minimalistic way. …Code5 min readCode5 min read
Published in Dev Ghost Stories·Apr 27, 2021My 6 powerful debugging techniques that everyone should knowI’m sure every developer has their own techniques of debugging and problem-solving. Here I’m sharing the things that I do the most to solve complex problems. Some of them are very well known and others are just my ways of doing things(maybe they are well known as well, I’m just…Productivity6 min readProductivity6 min read
Published in Dev Ghost Stories·Apr 22, 2021Gitlab child pipeline with dynamic configuration in 5 minutesI was extremely excited when this feature was introduced. It saved us tons of hardcoded configurations and hours of maintaining them because of their dynamic nature. It also helped us distribute better our jobs over the runners that we had. This feature is very useful in cases of testing or building with different environment variables. In the example that I’m showing, I have a testing…Continuous Integration2 min readContinuous Integration2 min read
Published in Dev Ghost Stories·Apr 15, 2021From 60k to 500 errors per day with SentryLet me start by saying that 60 000 errors per day it’s a lot! When we first saw the logs, we weren’t even realizing how much that is. …Error Handling4 min readError Handling4 min read