Unit tests are a very important part of the programming process. Over the years it gains more and more traction. Going the path from exotics and, sometimes, weird implementation, extreme practices like TDD. From the geek’s toy to the mainstream. From the back-end to the front-end. Now unit tests are a “must-have” tool in the professional programmer’s toolset. This small article will tell about the front-end unit testing with Angular by using built-in test tools Karma and jasmine.
There are 3 main types of automated tests. There are no strict borders between them and it can be arguably hard to…
DynamoDB is AWS NoSQL DB Service. The term “service” here means that Amazon takes care of the hardware, patching, and scaling. NoSQL Database is good for fast storage, which can easily scale horizontally. Also, it’s good in the case that your data doesn’t have a fixed set of fields. When each record seems like a document (that’s why Microsoft named his NoSQL DB DocumentDB). Billing for DynamoDB depends on few factors, such as read and write capacities.
In my previous article, I wrote about it. Here I can add that Amazon has a very good Data Model and Object persistent…
Amazon S3 is the oldest service in AWS. I remember that I store photos here when I was very young and programmed on PHP. Despite this it still very popular and very actual.
Amazon S3 stands for Simple Storage Service. Shortly — it’s a cloud file storage, where you can store your files and they will be available and replicated in different Datacenters to provide consistency and fast response to different clients in different places in the world. For me, this is the main benefit — low latency and fast download of static content.
It is possible to work with…
Create a strong backside for your project.
Previously, I wrote about front-end static website services. But usually, you need also a back-end service to serve the data and logic for your site.
There are 3 main types of back-end services:
Virtual machine — the heaviest, but gives you the most freedom in tuning and managing packages and storage.
Container — aka Docker, a good compromise between virtual machine’s capabilities and serverless maintenance. The container itself has its own lightweight OS (usually based on Linux) and disk space. It’s easy to create and maintain. …
Good opportunity to mark your presence on the Internet.
It’s tempting to have your own internet site and pay nothing for it. You shouldn’t pay anything except, maybe, for a first-level domain name to have your own page, blog, or site for business.
A static website is a site that contains only static web pages. According to Wikipedia — A static web page (sometimes called a flat page or a stationary page) is a web page that is delivered to the user’s web browser exactly as stored.
But it sounds like the Internet in the good old days, right? Exactly…
At the end of the previous year, I wrote an article about new year’s resolutions for the first quarter of 2021.
It’s interesting, for me at least, to compare what I’ve done.
I will go one by one and evaluate myself.
Help yourself with some Jupyter magic.
IPython has special commands, called “magic commands”, which are specially designed to help and gain more information about how your program works.
Magic commands usually start with the special symbol “%”. Such commands as %debug or %time have this symbol at the beginning. So, when you see this symbol, you know that is the magic command.
But! there’s an exception — by default you no need to put this symbol before the automatic command unless you don’t have a variable with the same name already. …
Create and deploy your own resume or portfolio for free.
Recently, one of the HRs from LinkedIn asked me to send my CV to her. I was quite puzzled, as I was in need to spend some time to find my latest CV. And when I found it, I realize that I have this CV (with small variations) all my work life! Plain old word document (saved as .rtf — for Linux of these days when it wasn’t able to read Word documents). It looks so “two thousand and two” these days (to be honest, the first version was created…
How to have a maximum joy for minimum money?
If you are a petrolhead. You like watching races, playing race games, but thinking that race in the real world needs a lot of money, effort, and all your free time. I have good news for you, it’s not necessary!
What to do if you want to race, but don’t want to spend a lot of money?
An answer — low-key amateur races!
You don’t need to spend a fortune buying a proper powerful (and very expensive) racecar to go racing. All you need is your daily car or old cheap…
One of the most important metrics in machine learning.
I searched a little about how to explain what is bias and variance and found this perfect video. It explains these terms quickly and understandable.
Here I just write my own summary of this great video.
Just imagine we have some dataset, doesn’t really matter what. It can be weight and height of mice, or price and square meters of flat, or fuel consumption and displacement of the car, whatever.
This dataset has a diagram like this: