Pragmatic Maciej

Pragmatic Maciej @macsikora

About: I am Software Developer, currently interested in static type languages (TypeScript, Elm, ReScript) mostly in the frontend land, but working actively in Python also. I am available for mentoring.

Location:
Lublin
Joined:
Mar 25, 2019

Pragmatic Maciej
articles - 57 total

Helper - the architecture whole

Helper, this word starts my list of the most hated dev words. I am experienced developer who work...

Learn More 3 0May 28 '22

Return statement is ok

Hey, long time no see. I have a new fancy subject, very much related to the code style, so the...

Learn More 21 2Oct 9 '21

Follow the type

TypeScript has been around for a while, in many new projects it started to be a standard, even old...

Learn More 5 0Jun 22 '21

Know too much

Single responsibility principle is stating that given program, procedure or function should be...

Learn More 4 0Jun 18 '21

Hide the constant, abstract the code

We like to use constants, put them in some shared files and use them everywhere. Although, it happens...

Learn More 10 3Mar 13 '21

The lonely constant

All software projects have differences, but there are also things which never change, and one of them...

Learn More 21 3Jan 28 '21

The state you've never needed

Every application has a state. State represents our application data and changes over time. Wikipedia...

Learn More 27 15Jan 12 '21

Advanced TypeScript Exercises - Answer 10

I've asked how to make different & operation by custom Merge type level function. Note - if you...

Learn More 8 1Nov 2 '20

Advanced TypeScript Exercises - Question 10

Intersection type level operator & has changed in the last versions of TypeScript. The current be...

Learn More 41 6Oct 23 '20

Grow up

Strong opinions about not important things, this is what developers community likes. Tabs vs spaces,...

Learn More 53 3Oct 18 '20

Advanced TypeScript Exercises - Answer 9

Hi folks. It was a while, sorry for such a big delay between next challenges. But here we are again 😁...

Learn More 17 1Aug 17 '20

Mutation is ok

The phrase - "mutation" started to have almost negative connotation in our programming community. It'...

Learn More 100 16Jul 6 '20

A pinch of magic🧙‍♂️

The word "function" in programming has two meanings. In one meaning function is just a sub-program, p...

Learn More 13 1Jul 3 '20

What really is programming?

We have again tech discussion over what is, and what is not programming. Twitter is in fire about HTM...

Learn More 12 0May 20 '20

Switch is ok

Switch statement had lately some bad fame, some developers avoid it as possible, and others advocate...

Learn More 30 19May 8 '20

Maybe just Nullable?

Problem of optional value, it's not a trivial one, and for sure not a young one. You probably have re...

Learn More 51 7May 6 '20

Advanced TypeScript Exercises - Question 9

Short but very interesting question ahead of you. Write a type which will represent not empty array N...

Learn More 32 5Apr 25 '20

Advanced TypeScript Exercises - Answer 8

The question was about creating indexed type assignable to string. For the full question please visit...

Learn More 24 2Apr 22 '20

Advanced TypeScript Exercises - Question 8

Welcome back! Let's go back on track after bonus questions. This question will be less abstract, and...

Learn More 15 5Apr 6 '20

TypeScript Exercises Bonus🦠 - Answers Part 2

For details of the questions and requirements please visit the questions. This post will include only...

Learn More 16 4Apr 3 '20

Tuples are ok

There are opinions in the community that Tuple types should not be used ever. There are movements als...

Learn More 45 13Mar 28 '20

TypeScript Exercises Bonus🦠 - Answers Part 1

For details of questions and requirements please visit the questions. This post will include only ans...

Learn More 10 9Mar 23 '20

TypeScript Exercises Bonus🦠 - Type of Pandemia

We are where we are, in the middle of pandemia, this sadly 😢 is the subject number one which will imp...

Learn More 18 1Mar 18 '20

Advanced TypeScript Exercises - Answer 7

The question was about exclusive behavior of the type. The core thing is to understand is the never t...

Learn More 53 8Mar 13 '20

Advanced TypeScript Exercises - Question 7

Today's question will be about creating exclusiveness behavior of the type. TypeScript is structurall...

Learn More 15 4Mar 11 '20

This is why TypeScript restricts + operator

The source of motivation Lately I found myself in Twitter discussion when there was an arg...

Learn More 32 1Mar 9 '20

Advanced TypeScript Exercises - Answer 6

6.1 Naive version (lower difficulty) type NaiveFlat<T extends any[]> = { [K in k...

Learn More 14 6Mar 8 '20

No, TypeScript is not OOP version of JavaScript

The common misconception about TypeScript I hear a lot is - TypeScript is more OOP than JavaScript, T...

Learn More 197 35Mar 5 '20

Advanced TypeScript Exercises - Question 6

Hi folks! ✋ Today we will play a bit with mapped types. The exercise is about getting all value types...

Learn More 50 6Mar 4 '20

Advanced TypeScript Exercises - Answer 5

1. Conditional types solution type Config = { name: boolean; lastname: boolean; }; t...

Learn More 14 3Mar 2 '20