TestBed, fixture, and other scary words.

Photo by Adam Nowakowski on Unsplash

Previously, I briefly described how t create unit tests for the isolated methods. This is a good approach if you need to test just the logic (in the service, for example). But how can you be sure that the user will see the changes on the UI? You will need to check the HTML template as well.

For such an exercise, we need to use special tools from the Angular testing toolset.

TestBed and fixture

TestBed is the main tool for integration tests. TestBed creates a component and template, which allows us to test them together. To create a new module for testing…

Writing simple isolated unit test

Photo by Joshua Lawrence on Unsplash

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.

Types of automated tests.

There are 3 main types of automated tests. There are no strict borders between them and it can be arguably hard to…

CRUD operations and table creation

Photo by Caspar Camille Rubin on Unsplash

What is DynamoDB

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.

Why C#?

In my previous article, I wrote about it. Here I can add that Amazon has a very good Data Model and Object persistent…

Simple operations to work with S3 bucket using C#

Photo by Nicolas Brulois on Unsplash


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.

Photo by Shahadat Rahman on Unsplash

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.

Photo by Domenico Loia on Unsplash

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.

What is a static website?

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…

Photo by Hello I'm Nik on Unsplash

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.

  1. PC upgrade — not done. Prices on graphic cars skyrocketed during this quarter, thank the Bitcoin fever. It’s, basically, doesn’t make any sense to upgrade PC right now. And those mentioned earlier game turns out to be a laggy-buggy creation. Resolution — I will wait another quarter.
  2. PС notebook — not done. Because I didn’t find a side hustle…

Help yourself with some Jupyter magic.

Photo by Ramón Salinero on Unsplash

IPython has special commands, called “magic commands”, which are specially designed to help and gain more information about how your program works.

Magic symbol “%”.

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?

Photo by “Amatérské automobilové závody CZ

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…

Bogdan Samoletskyi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store