How to use SCSS Sass in Svelte Components?

When I started with Svelte one surprise was the CLI was not too interactive and the default template doesn’t come with Sass support. Then for add sass support into .svelte components, we need to add a rollup package and do a few small changes. These changes I will do on my project “password-strength-sv”, from the…

Hello Sveltejs

I’m using Vue for more than 2 years and a half, Vue is a great framework, but the world change and Svelte rise as a good contender to in the Javascript world. My friend @pchiwan did a small game with Sveltejs, I read his code and feel curiosity and a bit of motivation to start…

Static Class and Extends methods in C#

The static keyword is very useful in c#  when we need to use class, method or property without creating an object instance is very common using a static class as a box or container for properties helpers or methods. For example, our boss said the employee object needs to be able to show the salary…

Head start with Array, List and Diccionaries in .NET

The Array, Lists and Dictionaries are the most basic collections in .NET and everyone has his scenery to be used, I will explain a bit about each one, for the examples I created the class Team to show the examples. public class Team { public int Id { get; set; } public string Initials {…

Albert the Spotlight for Linux

I’m back to use Linux as default desktop OS, I was using macOS for more than 5 years, but if I want the same workflow like macOS that means try to get a Spotlight then Albert comes to answer, it looks similar to Alfred or Spotlight with great and powerful features like a search engine,…

Object Initialization and Constructor

When we have few fields in a class and want to initialize every field in a constructor it should become a little bit messy and maybe we need a few constructors. public class User { public string Name; public List<string> Roles; public User(string name) { Name = name; } public User(string name, List<string> roles) {…

Code coverage in 2 minutes with NYC

In my previous posts about testing, I don’t have a clear picture of how much of my code is protected with tests? NYC comes to help me know the real 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…

Testing promises with Mocha.

In my post about testing with Mocha, I forget a common task in every javascript developer, “the promises”, it is a common task for making our code run async, 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…

How to Test javascript 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 without frameworks. Feel free…