Latest Articles

Why I Switched from Loom to Cap
How To·

Why I Switched from Loom to Cap

After years of using Loom for screen recordings, I made the switch to Cap.so. Here's why this open-source alternative won me over with its simplicity, features, and incredible pricing.

2025 Yearly Recap
Dev Life·

2025 Yearly Recap

2025 is almost over. It wasn't perfect, but it was a challenging year for health and work-life balance.

Next.js Performance: What the Defaults Don’t Solve for You
Nextjs·

Next.js Performance: What the Defaults Don’t Solve for You

Next.js gives you strong performance defaults. But fast by default doesn’t mean fast always. Over the last few days, I’ve been working with Next.js and React Server Components, assuming the framework would handle most performance concerns for me. And...

What I Learned: From AI Chat Demos to Real AI Products
Unsplash
AI·

What I Learned: From AI Chat Demos to Real AI Products

In 2025, I built quite a few demos using Gemini and Kendo UI, building small chat experiences using chatbots combined with Conversational UI for quick prototypes, taking a piece of text (sometimes an image) and sending back a nice-looking answer. The...

How JavaScript Generators works with Examples
How To·

How JavaScript Generators works with Examples

Today I’ve been reading about Redux-Saga. One of the key concepts there is the use of generator functions (function*). Generators are a JavaScript feature I’d heard of before, but I never really needed them in my day-to-day work—probably because I di...

Why I moving from NVM to Volta
How To·

Why I moving from NVM to Volta

Nowadays, when we need to work with multiple apps and products, and each one has its own version of libraries, it is important to make your environment flexible to changes. At that moment, nvm becomes a great option to run multiple versions of Node o...

💀Don't Break UI with Jest Snapshot Testing 📷
Angular Learning·

💀Don't Break UI with Jest Snapshot Testing 📷

A few days ago, I was fixing a small accessibility issue and decided to remove some unnecessary wrappers around a few elements. After making those changes, all the tests passed successfully—including the E2E tests. Everything was green, so I opened a...

How to download Firebase Studio Project?
How To·

How to download Firebase Studio Project?

A few days ago, several people asked me how to download a project from Firebase Studio. Currently, it doesn't have a "download" project button like StackBlitz. But if you want to have the code on your machine, the easiest way is to get our code, it p...

What Really Matters
Dev Life·

What Really Matters

Sometimes, life gets too noisy—work, technology, AI everywhere, and things always changing. We forget to care for what really matters. That’s when your body and health send a strong message and make you stop to think about your life. I’ve been offlin...

2024 Yearly Recap
Dev Life·

2024 Yearly Recap

The year 2024 is almost over, and reflecting on it, it was amazing with many tech talks, community contributions, learning from the community, and sharing great times with friends and family. Special Thanks I want to say a big thank you to Jörgen de ...

How to Make Your Angular Projects More Accessible

How to Make Your Angular Projects More Accessible

When we build apps, we usually focus on delivery rather than covering other aspects like Accessibility and Testing (but testing will be covered in another post). Today, I want to talk about Accessibility. Most of the time, we think accessibility is j...

Angular 19 and ZoneLess
Angular Learning·

Angular 19 and ZoneLess

Don't care if you use Angular 14, 15...19; your apps are still under the Zone.js umbrella. Maybe you feel your Angular apps work well, but under the hood, with Zone.js, Angular needs to iterate over the entire DOM tree, impacting app performance. Thi...

November 2024 - Recap DevFest and Community
Dev Life·

November 2024 - Recap DevFest and Community

Hi! 👋🏽 November has ended, and it was packed with four events in a single month (special thanks to my family, Edgar, and Silvia, for their patience ❤️). It was an incredible experience sharing and learning with the community and GDG. Let’s recap! �...

September 2024:  📖 Signals and Learning
Dev Life·

September 2024: 📖 Signals and Learning

September has come to an end, and it was a calm and reflective month. While I couldn't write as much as I had hoped, I took the time to adapt to my job at @celonis and dive deeper into Angular Signals, writing, and reading a great book. Let's take a ...

Angular Router URL Parameters Using NgRx Router Store

Angular Router URL Parameters Using NgRx Router Store

When we build apps with state, the entry point is key to initialize our state for our components, but sometimes, we have requirements to preserve application state within the URL to allow users to bookmark or share specific application states, with t...

July 2024:  Testing in Angular and Using LLM and ChatBots
Dev Life·

July 2024: Testing in Angular and Using LLM and ChatBots

July has come to an end. That month has been a bit busy, so I can't write too much, but I always take time to write about things I'm doing. During July, most of my time was spent writing tests and playing with ChatBots and LLMs. Let's take a look bac...

June 2024: NgRx, Angular, and with the Community
Dev Life·

June 2024: NgRx, Angular, and with the Community

June has come to an end, and it has been a fantastic month with some changes in my professional life! I want to take a moment to share the great experience I had working with the community and learning about NgRx and testing. Let's take a look back a...

Four JavaScript Challenges for Job Interviews
Typescript From Zero·

Four JavaScript Challenges for Job Interviews

During recent developer interviews, I noticed many candidates felt overwhelmed by coding challenges. For junior positions, it's common to be asked about basic JavaScript tasks. Today, I'll share essential data manipulation techniques that junior deve...

How to Use NgRx Selectors in Angular
Angular Learning·

How to Use NgRx Selectors in Angular

In NgRx, when we want to get data from the store, the easiest way is by using store.select. It allows us to get any slice of the state. Yes, it sounds funny, but any slice returns an Observable<any>. For example: It is flexible but also risky becaus...

How to Implement ActionCreationGroup in NgRx
Angular Learning·

How to Implement ActionCreationGroup in NgRx

When you create actions in NgRx, you usually use the createAction function helper. We write our action names with an inline string about the source and the event, like [Cart] Update Price. This action is clearly linked with the Cart feature in our ap...

How to Debug NgRx Using REDUX DevTools in Angular
Angular Learning·

How to Debug NgRx Using REDUX DevTools in Angular

When we work with NgRx, tracing and debugging actions, knowing the current state of our store, and reproducing behavior are very important. We have a great tool to help us as developers debug and analyze our NgRx State: the Redux DevTools. The Redux ...

When and Why to Use REDUX NgRx in Angular
Angular Learning·

When and Why to Use REDUX NgRx in Angular

In a previous article, I wrote about managing the state in Angular by using Services, but when the application increases in size and needs to track and handle a large state, it becomes a bit complex and not easy to manage. For example, when we have m...

April 2024  Typescript, Angular and Testing
Dev Life·

April 2024 Typescript, Angular and Testing

April has come to an end, and what a fantastic month it was! I had a great time learning about Signals, Angular 17, and the future of testing. Let's take a look back at the highlights and fun moments. 👋🏼 Bye Bye Karma! Hello Web Test Runner and 🦥 ...

Using @Defer DeferViews in Angular 17
Angular Learning·

Using @Defer DeferViews in Angular 17

The Performance, this is one most important topics when we build applications, now days we work with huge amount of components and needs to think how to improve the bundle size in our apps. The Angular team knows that, and launches great and amazing ...

March 2024 Recap: IA / Schematics, Community and Writing
Dev Life·

March 2024 Recap: IA / Schematics, Community and Writing

March has come to an end, and what a fantastic month it was! I had a great time diving into AI, learning about Angular and Typescript, and connecting with the DonWeb Cloud & IaaS community, especially about Kendo. Let's take a look back at the highli...

Beginner's Guide to Using WSL on Windows 11
How To·

Beginner's Guide to Using WSL on Windows 11

I was an Ubuntu / Mac user, but two years ago, I switched back to Windows. Why? Well, because of the high prices of MacBooks 😢, and my company assigned me a machine with Windows 11 Pro. However, as a frontend developer, most of my code and my apps r...

February 2024 Recap: IA, Community and Writing
Dev Life·

February 2024 Recap: IA, Community and Writing

February was amazing and full of surprises! Let's go over the best parts and the fun projects I worked on. Cheers from the Community Big cheers: I became a #ProgressChampion! 🎉 Thank you so much to Progress Telerik and Kendo UI for this big honor. ...

Learn Route Parameters in Angular with Example
Angular Learning·

Learn Route Parameters in Angular with Example

When building applications in Angular, maintaining effective communication of data between components or routes is crucial. Sometimes we use a state manager, services, or take advantage of the URL to provide information as a convenient alternative. C...

Web Accessibility: Working with Images and Content
How To·

Web Accessibility: Working with Images and Content

When we create a website, the content is more than just text. As I learned in my previous article, accessibility is about more than just aria-label or alt attributes in images. Sometimes we add more than images, like SVGs, charts, or even consider co...

Web Accessibility: Head Start
How To·

Web Accessibility: Head Start

Nowadays, when making an app, accessibility is often ignored, or some developers think that aria-label is all they need. Some people also think that adding accessibility takes more work or makes the design less appealing, but that's not true. Having ...

Simplify Routing Parameters in Angular Components
Angular Learning·

Simplify Routing Parameters in Angular Components

In my previous article on building a sample store, I explored the animation feature in Angular 17. At the same time, I also developed an extensive product page feature. The product detail page needs to extract the product ID from the URL using the ro...

My Yearly Summary: 2023 Edition
Dev Life·

My Yearly Summary: 2023 Edition

Reflecting on 2023, I experienced a year brimming with presentations, contributions, and remarkable achievements in content creation. Here's a snapshot of my year by the numbers: 🎤 14 Talks: Shared knowledge on topics like Angular , Astro, Analog, ...

My Top Angular Kendo Articles 2023
Angular Learning·

My Top Angular Kendo Articles 2023

As 2023 comes to an end, I find myself reflecting on the valuable lessons and knowledge I've gained through writing. In addition to this blog, I create content for Telerik Kendo. Today, I'm excited 😊 to share with you my top Kendo UI articles from t...

Why avoid using 'any' in TypeScript
Typescript From Zero·

Why avoid using 'any' in TypeScript

When we create applications in Angular, the any type is our "live-saver" when struggle with complex error messages, want to save time by not writing specific type definitions, or think that TypeScript's type checking limits our coding flexibility and...

How to Configure Jest in Angular 18
Angular Learning·

How to Configure Jest in Angular 18

When we write tests in Angular Jasmine and Karma are the default for testing library and runner, but the Angular team was working on bringing Jest to Angular. Today, we're going to experiment with the Jest Builder for Jest (Experimental) in Angular 1...

Transform Inputs Properties in Angular Easy

Transform Inputs Properties in Angular Easy

When building components, defining the interfaces to be used by consumers is often challenging. We need to consider the information that must be passed between components and, at times, how it is processed. At times, we expose interfaces solely due t...

How to Learn Angular 17 Features with Angular.dev
Angular Learning·

How to Learn Angular 17 Features with Angular.dev

Angular 17 has been announced and is set to release in the upcoming days. It comes with a list of impressive new features, such as control flow, deferred views, hydration, server-side rendering (SSR), signals, and many more. One of the notable releas...

Managing HTTP Errors in NestJS Effortlessly

Managing HTTP Errors in NestJS Effortlessly

When we develop applications, errors can also occur in the API, such as when we request data and it doesn't exist or the database is unavailable. How can we catch and handle errors in the API? For instance, in the Jumbo API, we the cards.service find...

Svelte for the First Time: A Personal Experience
How To·

Svelte for the First Time: A Personal Experience

Sometimes we want to learn something, just for fun or to build new side projects. I heard about Svelte in 2016, but never tried it until a few months ago with Bezael to create a small microfrontend. However, yesterday I started to build a small side ...

Understanding InjectionContext and Signal Effects
Angular Learning·

Understanding InjectionContext and Signal Effects

Yesterday, I was chatting with my friend Jörgen de Groot about Signals. As our conversation shifted to cover effects, he encountered the error ERROR NG0203. Later, another friend approached me with the same issue. I decided to compose a brief article...

Head Start with Angular Signals: A Basic Overview
Angular Learning·

Head Start with Angular Signals: A Basic Overview

Since Angular 16, I have heard a lot about Signals, the @angular/team did great work listening to the community and improving the Signals API with Rxjs interop. Yesterday I was talking with my friend Juan Berzosa he hadn't played with Signals yet, So...

How to Create Your First API with Nest Effortlessly
How To·

How to Create Your First API with Nest Effortlessly

When I write articles with examples or code MVP , I need to show some data in most of the cases JSON-server save me, or use open APIs to retrieve and post data. However, there are times when we may require specific features, such as uploading files, ...

How To Use Record Type In Typescript
Typescript From Zero·

How To Use Record Type In Typescript

Today I was facing a problem where I wanted an object with a list of properties but with specific values like: For example: export type NBATeam = "Lakers" | "Celtics" | "Bulls" | "Warriors"; const nbaChampionships = { Lakers: 17, Celtics: 17...

How To Debug Angular Applications Easy
Angular Learning·

How To Debug Angular Applications Easy

As developers, we use a lot of our coding time to fix bugs. Debugging helps us find and remove errors in software development. But sometimes, finding a bug takes longer than fixing it. That's when we need to learn some ways to debug our apps. Let's i...

How to Build Your First Deno App: A Step-by-Step Guide

How to Build Your First Deno App: A Step-by-Step Guide

I've been checking out Deno and found it's a really great choice if you're looking for a JavaScript and TypeScript runtime, it comes with pre-built modules that make it super easy to develop applications without having to start everything from scratc...

Using the Inject Function in Angular 15
Angular Learning·

Using the Inject Function in Angular 15

Since Angular 14/15, there has been an alternative way to inject dependencies into our Angular applications. I will show two cases of using the inject function with Angular 14/15. Inject Dependencies in Functions Using inject, we can create functions...

Using RxJS as State Manager in Angular

Using RxJS as State Manager in Angular

When we build an Angular App, the communication between components is something to take care of. We can start using parent-to-child with Input and Output events; the lack of input and output communication is the only parent-to-child or vice versa, bu...

How to Build Your First CLI with Bash

How to Build Your First CLI with Bash

I'm a front-end developer using a lot of CLI, which runs a few commands to generate a final project or perform tasks. I heard of shell scripting but have never tried it before. Daily, I use some shell commands from the terminal, like: cd: Change the...

How To Test Components In Angular Using Testbed
Angular Learning·

How To Test Components In Angular Using Testbed

When talking about unit testing, the first definition that comes into our head is to test the minor testable parts of an app, like functions, methods, and classes. It sounds perfect for a simple function or isolated class without dependencies, but it...

How to Improve Cloud Skill As Frontend
How To·

How to Improve Cloud Skill As Frontend

As a front-end developer, I'm looking to expand my cloud skills so I can build and deploy web applications. I'm taking some time to research which Azure services are most applicable to frontend development and how I can use them to build, deploy, and...

How and When to Use Mocks or Spies on Unit Testing
How To·

How and When to Use Mocks or Spies on Unit Testing

A few days ago, my friend was writing tests for an Angular App with two dependencies and wanted to test his code. I suggested that he should Spy and Mock the dependencies. When deciding whether to use a Mock or a Spy, it is important to consider the ...

How to Get Cloud Skills As Frontend
How To·

How to Get Cloud Skills As Frontend

I'm a Front-end Developer focused on Angular, Typescript, and Sass; during the last four years, I put all my energy into improving my Frontend Skills (Angular, NgRx, Testing, Sass) but without any effort to learn something about the Cloud. Why don't ...

My Yearly Summary: 2022 Edition
Dev Life·

My Yearly Summary: 2022 Edition

The year 2022 is close to ending; it has been a fantastic year for my professional goals and family. I am 39 years old, so I have focused on investing energy in topics related to my job to make my life as a developer easier. I want to use this post t...

How to Build Your First App with Astro
How To·

How to Build Your First App with Astro

For a few years, web projects have been taking more and more responsibility, which means more and more JavaScript. Nowadays, the top SPA Frameworks, React, Vue, or Angular, have great developer experience and allow us to build complex applications bu...

Using Strictly Typed Reactive Forms in Angular
Angular Learning·

Using Strictly Typed Reactive Forms in Angular

I continue to play with the new features of Angular 14/15, and one pending task is to learn about Typed Reactive Forms. The strict forms help us avoid many common issues when working with our forms. The best way to learn and understand why to use Typ...

How To Use Functional Router Guards in Angular
Angular Learning·

How To Use Functional Router Guards in Angular

Today I was talking with my friend Leifer, and he asked me some about Functional Guards in Angular (14/15) with some questions. How do functional Router Guards work? Can The Class guards continue working in Standalone Components? How hard is conve...

Triggering Validation in Angular's Reactive Forms
Angular Learning·

Triggering Validation in Angular's Reactive Forms

Today with my friend @alt148 I was playing with Dynamic Forms, and we discovered changing one form control can trigger the validation several times in the validation process. For example, we have a form with a field, and in every key press, the form ...

How To Check Types In Typescript
Typescript From Zero·

How To Check Types In Typescript

In Typescript, we have to check for values types like boolean, string, object instance from class, and the values in objects. 👉🏽 Why pay for hosting? Click here to deploy your Angular apps for free on a reliable VPS In Typescript, we have three w...

3 Ways of Type Transformation in Typescript
Typescript From Zero·

3 Ways of Type Transformation in Typescript

When we use types or interfaces, the typescript compiler enforces the object fit with them to avoid runtime errors for missing fields. Sometimes we want the flexibility to create an object without breaking the contract with the interface type. For ex...

How to handle and catch errors in Rxjs
Angular Learning·

How to handle and catch errors in Rxjs

In Rxjs, when we work with observables handling the errors is a bit confusing for beginners because you can think of a try-catch, but Rxjs comes with operators to manage it, so what can I use and when? Let's move to each step with code, the example u...

Understand Composition and inheritance in Angular.
Angular Learning·

Understand Composition and inheritance in Angular.

When we start to build the application and feel the code duplicated are in several places, our first idea is inheritance, because it solves our problem with repetitive code. It appears as a solution (and it's) and works. But the problem comes when we...

How to Share Data Between Components in Angular
Angular Learning·

How to Share Data Between Components in Angular

When we build components in an application, we maybe need to share or send data from parent to child without a direct connection. 👉🏽 Why pay for hosting? Click here to deploy your Angular apps for free on a reliable VPS Angular provides different...

How to hide computer name in OSX terminal
How To·

How to hide computer name in OSX terminal

I love to have a clean terminal, the name of the computer is a piece of information not relevant to read every single time. I'm still using the bash shell. echo "export PS1='$ '" >> ~/.bash_profile . ~/.bash_profile For zsh users add the following ...

How to show the git branch in the terminal
How To·

How to show the git branch in the terminal

I'm a git Kraken lover but sometimes surf into my projects. I love to know in which branch I'm working. Edit the .bash_profile and paste the following lines. parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' ...

How To Test Private Methods in Typescript
How To·

How To Test Private Methods in Typescript

Sometimes we need to test a private method, and Yes, maybe it's not a best practice, but in my case, I have a situation when I need to add a test to my private method, and if you have the same situation I hope it helps you. My example is a service wi...

How To Mock Dependencies With Jest
How To·

How To Mock Dependencies With Jest

When we want to test our code, some things have dependencies inside, and you don't want to call this stuff. You won't be sure your code works, not external dependencies or external code unrelated to my code. Today we will add tests to our example wea...

My Yearly Summary: 2021 Edition
Dev Life·

My Yearly Summary: 2021 Edition

The 2021 year was good, professional, technical, and personal, but I'm 38 years old, so I can't learn too much stuff simultaneously. I'm learning slowly; similar to 2020, I'm only spending my energy on topics related to my job to make my life easy. I...

How To Learn Docker Compose Step-by-Step Guide
How To·

How To Learn Docker Compose Step-by-Step Guide

If you work with docker, typing for every action is not a good deal, and sometimes it can be a nightmare because a typo mistake breaks our process, rerunning all commands. Today, we will learn how Docker-compose makes our experience with docker easy ...

Get start with Typescript and Parcel
Typescript From Zero·

Get start with Typescript and Parcel

Typescript is a technology that grows every day. Companies like Slack, Airbnb, or Google are changing their javascript codebase to Typescript. Frameworks like Vue, React, and (Angular) are using Typescript for writing maintainable code. These steps s...

How To Use Angular Resolvers
Angular Learning·

How To Use Angular Resolvers

When we go to a party, I love to have all beers ready to drink and take one, but sometimes taking time to pick from the fridge to the table and stay waiting is not a good experience. The same happens with our users working with our angular apps; we s...

Angular Component Theming: A Beginner's Guide
Angular Learning·

Angular Component Theming: A Beginner's Guide

When we build components, it needs to be flexible, because they can be used in many places or contexts, sometimes changing layout and colors. For example, Our customer wants a list of contacts; it needs to show as a card with the picture, name, and d...

Refactor your code using renaming Imports

Refactor your code using renaming Imports

I'm refactoring an Angular code, and I need to have the same filenames while finishing the refactor. My solution was to rename my imports. It is a great way to use a different name or alias for my classes and modules. For example, you can import a si...

How to measure javascript code with performance.now()
How To·

How to measure javascript code with performance.now()

Sometimes, we want to know how is the performance or time spent in some function or process can be solved using performance.now(). performance.now() help us get time in milliseconds, and we can measure the time between some function completing his pr...

How to Test Errors with Jest in Typescript
How To·

How to Test Errors with Jest in Typescript

I'm continuing with Jest and typescript, we already know how to expect and assert variables and objects in our code, next step is handling errors. The Calculator has a new requirement if the type of calculation is not +,- or / we need to throw an err...

How to speed coding with 20 VSCode extensions
How To·

How to speed coding with 20 VSCode extensions

I'm VSCode fan, this is my 20 VSCode extensions in my workflow. A special description for my top 3. 1-TabNine is the most powerful extension for autocomplete and help with your code. https://marketplace.visualstudio.com/items?itemName=TabNine.tabnine...

How to use CSS Animation with examples
How To·

How to use CSS Animation with examples

I continue fixing my CSS weakness and today is time for the CSS Animation. CSS helps us create animation using the keyword @keyframes, it helps to set the initial state for properties and the amount of time it will get during the animation. We chang...

How to use transitions and transform in CSS
How To·

How to use transitions and transform in CSS

Another good way to add great effects with CSS is using transitions, it helps to transform CSS properties from one to other smoothly with duration between them. The two keys properties to get it are: transition-property: set which property we want t...

How to use CSS Gradients to create images effects.
How To·

How to use CSS Gradients to create images effects.

Sometimes we want to add the effect of a nice color into our page images. The CSS gradients can help to do it. If you didn't work before with gradients, no problem, I will give a quick overview of it. The CSS gradient helps us to define smooth transi...

How to learn CSS Positions with examples
How To·

How to learn CSS Positions with examples

If you are a front-end developer, knowing to position elements with css is critical knowledge. CSS has five position types. I will try to write a small example with each of them. Every CSS Position example use the following HTML structure <main> ...

How to use CSS Pseudo Elements
How To·

How to use CSS Pseudo Elements

Sometimes style a specific part of an HTML element like the first letter of h1 or append at begin or after, style the first line, my default solution is use JavaScript but not is the best approach if CSS provide a way to solve with Pseudo elements. T...

How to Speed up Karma and Jasmine Tests with ChromeHeadless
How To·

How to Speed up Karma and Jasmine Tests with ChromeHeadless

I'm working with Jasmine and Karma because it is the default toolset for testing in Angular. It works, but one downside is the browser by default for tests runner. The browser is a bit slow for running, and in the CI, it impacts the time of execution...

How to use CSS Pseudo classes with examples
How To·

How to use CSS Pseudo classes with examples

I continue fixing my CSS weakness, and today is time for the Pseudo-classes. The Pseudo-classes help us to define a particular state of an element. The pseudo-class are determined using : maybe you are used before with links with something like a:ho...

How to use CSS Combinators with examples
How To·

How to use CSS Combinators with examples

I continue fixing my CSS weakness, and today is time for the CSS Combinators. Sometimes, we want to select elements without affecting others and understand the critical relationship between elements. The CSS Combinators help to write a better CSS sel...

How to save time using global .gitignore
How To·

How to save time using global .gitignore

Sometimes we ignore the duplicate files for every project.DS_Store or npm-debug.log*, we can save time using a global .gitignore. Note: Be Keep in mind that it will change your default behavior on your computer. If you share a project, be careful wh...

How to configure Ubuntu for Javascript coding.
How To·

How to configure Ubuntu for Javascript coding.

Sometimes I reset the Ubuntu sandbox and install it all again. Everything is not an easy task. I present the list of my apps, packages, extensions for Setup. My development box focuses on Javascript (Angular/Typescript ) and Ubuntu (but it can work i...

The Typescript compiler and the tsconfig
Typescript From Zero·

The Typescript compiler and the tsconfig

I want to show a small overview of the typescript compiler, and the tsc is responsible for compiling our typescript code, watching changes, code checking, and more. The tsc accept parameters on the execution process can read the configuration from th...

How To Head Start with Testing in Angular with Jasmine
How To·

How To Head Start with Testing in Angular with Jasmine

I worked for several months with Jest and Vue, but nowadays, I'm working with Angular, and the testing is part of my learning process. I will explain a bit about Jasmine and how to write a test for typescript classes. If you find something wrong, ple...

How to Use VSCode for Writing Git Commits
How To·

How to Use VSCode for Writing Git Commits

If the terminal window is too small for writing your commits, then using VSCode is your solution. Configuring it is easy. First, run the following command in the terminal: git config --global core.editor "code --wait". git config --global core.editor...

Managing Angular CLI Versions: Tips and Tricks
Angular Learning·

Managing Angular CLI Versions: Tips and Tricks

By default, installing angular-CLI gets the latest version, but sometimes we work with projects built in an old version. To downgrade your current angular-cli, follow these steps. Remove angular-cli sudo npm uninstall -g @angular/cli npm cache clean ...

How to center elements using the box model
How To·

How to center elements using the box model

A common task for web development is center elements. We can center the elements horizontally and vertically. Center horizontal Center horizontally is so accessible. Our element needs to have a width size. If not, our element will take all space poss...

How to use BulmaCSS with Parcel
How To·

How to use BulmaCSS with Parcel

Hello, I'm a poor css guy who always uses a framework like bootstrap, and today I decided to use Bulma CSS. Bulma allows use by CDN or NPM. The CDN is an easy way to use but with some caveats. No Sass for customizing. Large file (complete Bulma fram...

Code coverage in 2 minutes with NYC

Code coverage in 2 minutes with NYC

I didn’t have a clear picture of how much code has tests? NYC comes to help me know the actual status of my testing. NYC is an npm package for getting stats about the test coverage working hand to hand with Mocha, and the setup is so easy. In my exam...

How to test promises with Mocha.

How to test promises with Mocha.

“The promises”, is a common task for javascript developers to run async code, but how I can test it ?. Feel free to read the code on Github or continue reading. I will write a method that returns a promise, and we will add a test for the resolved and...

How to Test Javascript code from 0 to Mocha

How to Test Javascript code from 0 to Mocha

I’m trying to learn to test in javascript, today we have few ways to test our code write plain test code or using mocha, jest or cypress. But what is a Test? the test is a piece of code that ensures our software works as we expect, it can be done wit...

How to run multiple npm scripts with npm-run-all
How To·

How to run multiple npm scripts with npm-run-all

Sometimes we need to run a fake API with JSON-Server and SPA at the same time. We need to run each command, one for our spa vue serve or ng serve and the other for json-server json-server /db.json One solution is with concatenating each command usi...

Understand Generics in Typescript with a real example

Understand Generics in Typescript with a real example

If you worked with typescript you may have heard about generics, which may be used in types like array or promises. But, did you ever understand what, why, and when using them? Let me give you a small overview. First point: keep in mind you always us...

Interfaces in Typescript with an Example

Interfaces in Typescript with an Example

The interface is an excellent Typescript feature and helps to write structured and explicit code. The interface helps you describe a structure like fields without values or methods without implementation and forces objects and classes to have. Interf...

Abstract Classes in Typescript
Typescript From Zero·

Abstract Classes in Typescript

In Typescript, the classes can inherit from another class to share methods and properties between classes. Also, Typescript support abstract class. Let me show you why and when to use it. For example, we have a base class Subscription and create the ...

Getter and Setter with Typescript
Typescript From Zero·

Getter and Setter with Typescript

The encapsulation is an essential part of OOP, and Typescript support gets and sets keywords for members of classes. The encapsulation can be used with the get and set keywords before a function name, then using it. We can encapsulate some logic and ...

How to create type definitions
Typescript From Zero·

How to create type definitions

If there is one thing I have to admit, it is that Typescript allows us to feel in control in javascript and that is also thanks to the typings (tsd), but some libraries don't have the typings, I have found myself in need of writing the typings of the...

The functions in Typescript

The functions in Typescript

The Typescript language understands the functions return type by default; for example, in the following example, the compiler understands one return boolean and the other is void. function Auth() { return true } function Auth() { console.log("he...

Using Typescript Types
Typescript From Zero·

Using Typescript Types

Typescript comes with its types, and each one is part of typescript, not javascript. Typescript will provide these types as part of our development process, notify the compiler of the data type used, and force us to implement them appropriately. Tupl...

Using type Annotations in Typescript Functions
Typescript From Zero·

Using type Annotations in Typescript Functions

I am starting to move to Typescript. I discover how works type annotations in typescript functions. Let start by showing a few things I learned today about Typescript. Typescript allows type annotation in function parameters and returns types. Types ...

Typescript and primitive Types
Typescript From Zero·

Typescript and primitive Types

I am starting to move to Typescript. I discover how it works and different ways to use them with Typescript. Typescript is a superset running up to Javascript, and it supports all primitive types. Let start by showing a few things I learned today abo...