DEV Community

Matei Adriel profile picture

Matei Adriel

Functional programming enthusiast! (yugiohxlight!6117 on discord)

Work

High school student at Adventist teology high school of Bucharest

All 239 comments

Composing readers

The cool thing is we can implement the respective Category an...

What dev tech holds the most future potential?

Purescript & haskell is where it's at :D

Encoding HKTs in TS4.1

Nr 2 was solved by recent ts versions and 3 is a problem with...

Encoding HKTs in TS4.1

What about this encoding? github.com/pelotom/hkts It seems w...

Find Sum Of Cosine Series

Why the heck write an article if it's juat a link to a video

Any suggestions for the project idea?

I'm making a staticaly typed visual pure functional program...

Advanced TypeScript Exercises - Question 1

Wow, I was only familiar with the approach fp-ts took, its ...

What technologies are you currently learning?

Trying to wrtie cleaner purescript code

Why is Lodash Still Useful?

Someone in another component has already shown how to imple...

React Is Eating Itself

Fair enough, I now get what you are trying to say:) A nice...

React Is Eating Itself

Heres an example solving the first issue with getName: ty...

React Is Eating Itself

Can you give a moment where dynamic typing is useful? Not s...

React Is Eating Itself

Typescript: removes the need of manual type checks for in...

React Is Eating Itself

I tried that monorepo relatively recently and it totally br...

React Is Eating Itself

Svelte has poor typescript which leads to an even bigger conv...

Avoid use IF on our JS scripts

Yep, most fp langs consider if statements simple expression...

Guide for the daily JavaScripter

Wdym by pause code execution? Async await doesnt actually p...

Functional programming in Javascript

Nice post but: monoids are semigroups with an empty value...

Migrating My Gatsby Site to Glitch

Kinda hard to take this seriously when it was written by some...

Do you know the board game risk? 🌍

Pixi looks cool, but I havent tried it

A Super quick guide to arrow functions

The real thing which makes arrow functions useful is the fa...

Do you know the board game risk? 🌍

P5 has pretty bad performance and it encourafges bad practi...

TypeScript is more than you think

You can achive the so called HOF with a global URIToKind in...

Let's Review (or learn about) Declaring Variables, Arrays and Functions!

I think you forgot to add js at the start of your code bloc...

Why We Chose a Marketing and Application Monorepo

Why did you even make this post if it's just a link to anot...

A JavaScript interview question asked at Google

I see a lot of comments related to ts, but the article dows...

25+ Free Productivity Tools for Developers

Discord is the best communication software for everything. ...

Dark Patterns: A New Scientific Look At UX Deception

Nice read

Advanced TypeScript Exercises - Answer 3

So basically no solution without modifying the body

Create Simple & Good Looking Buttons

Not a single screenshot?

Make VS Code Your Default Git Editor 📝

For me it was nano, idk, now I'm so used to editing it with...

Context2D Canvas question. But is it Webgl?

Yep, better debugging would be super nice to have, maybe ju...

Context2D Canvas question. But is it Webgl?

Context2d is platform sependent, but from what I heard some...

I used to think TypeScript is a waste of time. Now I changed my mind.

As I said, thats a perfectly fine reason. In the original c...

I used to think TypeScript is a waste of time. Now I changed my mind.

I'm just curious, what do you mean by "ts has a long way to...

I used to think TypeScript is a waste of time. Now I changed my mind.

So basically "I don't use X because I don't want to learn t...

I used to think TypeScript is a waste of time. Now I changed my mind.

You can import svgs very easly with typescript, just make s...

I used to think TypeScript is a waste of time. Now I changed my mind.

Coffescript died a lot quicker, typescript is 8 years old a...

I used to think TypeScript is a waste of time. Now I changed my mind.

Huh, typescript is open source, and looking at your github ...

I used to think TypeScript is a waste of time. Now I changed my mind.

The type hinting in vscode for vanilla js uses the ts langu...

The Trouble with TypeScript

I cant remember exactly the problems I had, but basically I...

Why is map called map?

Ye, fair enough, I shouldve also included a note about the ...

Why is map called map?

Yep, not really necessary unless using a fp lang or a lib s...

Why is map called map?

Also note that all the structures which can be mapped upon ar...

Age Is Just a Number: Why you are never too old to learn Java

Why repost

Top JavaScript Trends of 2020

I wasnt saying you cant do it, but its harder than it needs...

Top JavaScript Trends of 2020

Thats not what I was talking about, but take for example re...

Why I prefer Vue over React

Well, most people who use svelte seem to be like that, but ...

Why I prefer Vue over React

Svelte is good until you try to use typescript

Top JavaScript Trends of 2020

Express supports typescript, really? The express ts support...

Advanced TypeScript Exercises - Question 2

I think u could also do a ...u inside the return

Elm vs. Svelte

What I dont like about reasonml is the syntax

The Trouble with TypeScript

I tried assemblyScript a few weeks ago and it has lots of p...

Elm vs. Svelte

You sre right, purescript is a lot more complex, but I pers...

Sharing UI Event State in React With RxJS

Well, when I was googled rxjs react and found something sim...

Elm vs. Svelte

Have you tried purescript? It'a a lot less limiting than elm ...

Sharing UI Event State in React With RxJS

Why would you do it that way when you can just use rxjs-hoo...

Advanced TypeScript Exercises - Question 1

Np, check the edit to the original comment to see a challen...

Advanced TypeScript Exercises - Question 1

Nice little challenge, I wouldnt call it advanced tho, maybe ...

Advanced TypeScript Exercises - Question 1

Yep, it's sad to see typescript missing so much from not ha...

Feb. 7, 2020: What did you learn this week?

How to typecheck a visual programming graph

6 JavaScript rules to get by

His comment said fp only means having functions in your peo...

Coding Conventions for Writing JavaScript

I agree with that, UPPER_CASE give me #define vibes (not sa...

6 JavaScript rules to get by

Fp means having functions - and other jokes you can tell yo...

Coding Conventions for Writing JavaScript

A convention is something people decided is the best way to...

What’s So Special About JavaScript Functions?

Those are not the only ways to create functions, you can al...

Coding Conventions for Writing JavaScript

What is this stuff?!?! First of all, all js engines can wo...

6 JavaScript rules to get by

Fp is easier than oop, and other jokes you can tell yoursel...

Hello Newbies in Tech! Try This Powerful Tool by Microsoft to use Linux Effortlessly with Windows OS

I use linux for programming but dual boot windows for games...

.map(), .filter(), and .reduce()

Since you understand map but don't understand reduce, imple...

Primeira Oficina de Lógica de Programação WoMakersCode no Rio de Janeiro

Why is this on the front page while not beeing in english

Do you consider learning Elm?

But then we would need something like computstional express...

Do you consider learning Elm?

How can sintactic sugar for monads be addable to elm when e...

Do you consider learning Elm?

Do-notation isnt effectful code only, it can work with any ...

Do you consider learning Elm?

Whoa whoa whoa, since when does do-notation look like imper...

Do you consider learning Elm?

Monads and stuff might be scary at first but once you learn...

Do you consider learning Elm?

I did some f# on linux and had no problems with it! If you...

Do you consider learning Elm?

Typeclasses, do-notation (pr computstional expressions), HK...

Do you consider learning Elm?

I learned it, wouldn't use it, everythin it does it does we...

Do you consider learning Elm?

Didnt you find it limiting? Theres a lot of stuff other fp ...

24 modern ES6 code snippets to solve practical JS problems

Why do you need the spread in the first example, rest param...

How to use Userbase in a React web app with TypeScript

What advantages does it have over firebase?

If you made a subset of your favourite language, what would you keep.

What about computational expressions?

If you made a subset of your favourite language, what would you keep.

So the rules are pretty unclear to me, but I'll assume you ...

[COMPARISON] Angular vs Vue.js vs React.js - which one you should choose in 2020?

Fair enaough, but a little noteor something wouldve been ni...

Creating a simple To-do list bot with Gears + Discord.js using TypeScript

Played with this lib and can recommend it to everyone who w...

The React Cheatsheet for 2020 📄‬ (+ Real-World Examples)

Unpopular opinion: react-helmet is just a glorified built i...

What's the most wasteful software?

Other languages are going towards that goal too! elm-ui is ...

What are the hardest coding terms to search for?

Re: how log I've been writing f# for Not a long time, abou...

What are the hardest coding terms to search for?

Did you hear about computational expressions? Some go as fa...

[COMPARISON] Angular vs Vue.js vs React.js - which one you should choose in 2020?

Did you use the new ivy renderer for the angular benchmark?

Firefox developer tools can do that?

Am I the only one who has to use both ff and chrome daily? ...

What are the hardest coding terms to search for?

Exactly

What are the hardest coding terms to search for?

And what if you play the game -_-

What are the hardest coding terms to search for?

F# is one of the best languages in my opinion

Getting started with fp-ts: IO

You can use pipe (frok fp-ts/pipeable)

Technologies that makes JavaScript a beautiful programming language!

You can convert callback based functions to promise based o...

What programming best practice do you disagree with?

The 4th is the only triggering one lol

5 of the best VS Code themes compared - an opinionated review

Can you share your settings.json?

🚄Node On Rails: Creating a Monorepo aka workspaces with yarn

Yes, but it also has built in monorepo support, similar to ...

🚄Node On Rails: Creating a Monorepo aka workspaces with yarn

I tried both yarn and lerna for monorepos and both were fin...

Async / Await: From Zero to Hero

I don't use c# outside on my rare unity doodles. In case an...

Async / Await: From Zero to Hero

But what does ConfigureAwait(false) do exactly?

What's the Node framework landscape like?

And koas typescript support is much better than what expres...

Reassignment vs Mutability

Btw, I'd prefer const weekend = day === 0 || day === 6

How I structure my Express + Typescript + React applications

I literally came to dev cause I didn't like medium -_-

Do You Still Use Var? If So Why?

I'd argue you shouldn't add props to an object after you cr...

Do You Still Use Var? If So Why?

Ofcourse, const isn't enough, but it's a starting point

Do You Still Use Var? If So Why?

I'd argue you should never have any value change (not in th...

Do You Still Use Var? If So Why?

Am I the only one who thinks const should be the only thing...

Is Declaration Merging and Generic Inheritance at the Same Time Impossible?

Why not just make a ServerBuilder class with a register met...

DOM performance case study

Maybe you'd want to create a function which does nothing ca...

DOM performance case study

What do u think about stuff like angular ivy, lit-html and ...

Styled Components vs CSS

Styled components / emotion / other similar stuff is great,...

Top 5 Web Developer Youtube Channels

You should start with this cool video

Why I started using dual-licensing for Vue tables 2

I'm pretty sure I saw a license doing exactly that (30 days...

Top 5 Web Developer Youtube Channels

Fireship.io is definitly my favorite

I want to learn a new programming language. What should I learn?

The deal breaker for me was the dynamic typing, I just can'...

Dec. 13, 2019: What did you learn this week?

Never wrote a blog before but i might try

Dec. 13, 2019: What did you learn this week?

I use fsharpplus because the aether website was down when I...

OMG! Python can't do this! Or can?

The lack of multiline anonymous functions always disgusts m...

I want to learn a new programming language. What should I learn?

Finally a nice suggestion

I want to learn a new programming language. What should I learn?

Any functional language (haskell, f#, elm etc)

Dec. 13, 2019: What did you learn this week?

How to use lenses in f# to drasticaly simplify updating nes...

Dear Women & Girls

I dont want to be rude, and u had a few points, but that co...

Go doesn’t need generics

Tbh you should've had a section with code examples (go &amp...

CloudRetro - Open Source Cloud Gaming Service for Retro Games written in Go

Lol, it was a typo, i meant "in mind"

Automate npm releases using semantic-release

One of the best articles I read in the last few days!!!

CloudRetro - Open Source Cloud Gaming Service for Retro Games written in Go

This is amazing! I had something similar in mind for the gb...

From Javascript to Python

Same

From Javascript to Python

You gotta try out pnpm! Its like npm but it doesnt install ...

Finding Ideas for Programming Side Projects

The url seems broken

Fetch data with Elm from Json Placeholder

Amazing post! Please do more:))

Is C# worth learning in 2019?

I mean, for me personally the golden hammer is nodejs w typ...

Is C# worth learning in 2019?

Well, nodejs isnt that great for heavu computations, but it...

Is C# worth learning in 2019?

Im pretty sure i saw some version of nodejs running on the ...

Is C# worth learning in 2019?

Most big npm packages have a team of multiple devs behind the...

YPSKA #9 Svelte

Why not use svelte? Because the ts support is awfull (i tri...

Quantum Angular: Maximizing Performance by Removing Zone

This reminds me of mobx

Angular vs Svelte - Card Component

Tbh i have no idea

Angular vs Svelte - Card Component

Id like to do the same but the lack of good ts support made...

Angular vs Svelte - Card Component

U just use a <style> tag (and it scopes it automatica...

How to publish an npm package to npm and GitHub Package Registry simultaneously using GitHub Actions

Theres the npm version command which automatically does the...

React Native App use TypeScript, custom component - React Native Flawless UI

The title sais the project is madw without ts, u might want t...

5 of the best VS Code themes compared - an opinionated review

For a second i thought thats vscode and i wanted to ask how...

Quick Tip: Modern Arrows in your Editor

How do u edit those? Like, how do for example delete the fi...

12 Best Online Tools for Web Developers

Uh, so this is basically an ad for ur website

How do you organize your projects?

Also, github private repos are free now;)

Convert Iterable to Array using Spread

Probably haskell or some other functional lamg

5 Delightful Things about Material-UI

I guess it depends on personal preferance

Convert Iterable to Array using Spread

Whoa, thats awesome

What do you think the BEST feature is that dev.to could add?

Same + too many articles covering things which the internet...

5 Delightful Things about Material-UI

First of all, i like how android looks more than ios Secon...

Convert Iterable to Array using Spread

Cant wait to be able to do const set = new Set([1, 2, 3])...

When to avoid coding something from Scratch - Frontend Edition

I tried a lot of css frameworks and all of em have their ow...

Stop adding npm dependencies (thoughtlessly) !

I personally use pnpm as my package manager to prevent dupl...

Use Code to Make Stuff: p5.js

I think that reduces the problem by a little bit, but you a...

What is the best chat bot library or framework

If u want to write bots in geneal this is a nice library

Finally, an easy way to use TypeScript enums

Ik im super late, but you can use const foodPreferenceQuest...

How to use Node.js Streams (And how not to!)

But this doesn't work that well with ts

Javascript Framework Comparison: Vue, React and Angular

Wait, stencil does the same atuff as svelte? I'm definitly ...

Javascript Framework Comparison: Vue, React and Angular

Nothing about the ivy renderer angular has?

Javascript Framework Comparison: Vue, React and Angular

I played for svelte for a while, and except for the awful t...

React AppState was migrated to TypeScript!

Nice:) I first saw you on reactiflux, and i'm happy your li...

Learning TypeScript Data Types - From Zero to Hero

Most of the type you should use unknown over any, but great...

Issues with VSCODE License — You should worry

That and also the discord presence one

Issues with VSCODE License — You should worry

What do you mean? You can use any extension with it:)

Migrating to TypeScript

This was a great article, but I don't think typing a variab...

Issues with VSCODE License — You should worry

For those who dont know theres a project called vs codium w...

From JavaScript to Go.

Go doesn't have generics? What a shame:(

The future of Javascript - features to keep an eye on

Yes, but for example c++ just lets you if (number)

From JavaScript to Go.

Personally i chose the typescript route and its been amazing

The future of Javascript - features to keep an eye on

Most language consider 0 to be falsy -_-

High performance with Webworkers

Not 100% related to your issue but take a look at this repo...

High performance with Webworkers

Webgl is your best bet: you can run your program once for e...

If/else or just if?

I usually go for the if + else if and no else at the end

Setting Up a Svelte Project (in seconds) with Degit

Sorry if it sounded mean, i was just curious cause i had a ...

Setting Up a Svelte Project (in seconds) with Degit

I don't want to be rude or anything but this is directly ri...

Use Code to Make Stuff: p5.js

You hit some great points! I also find myself reinventing...

Use Code to Make Stuff: p5.js

I hate p5.js. Why you might ask? It's slow: The p5 ver...

DejaVu: Caching versus Memoization

Thanks a lot!

DejaVu: Caching versus Memoization

Amazing article! I was just curious, does that apply to sve...

Music to Listen to While Coding

I usually prefer classical music + music from the nes era

Swapping two numbers, w/o a temp variable

Yeah, i said it as a fun fact:)

Swapping two numbers, w/o a temp variable

In js u can use ^ as xor

Swapping two numbers, w/o a temp variable

To be honest we were teached this in the first week of high...

Render HTML with Vanilla JavaScript and lit-html

Theres also haunted which adds react-like hooks to lit-html...

Those silly mistakes we all make

The thing is typescript has both extends and implements so ...

RxJS with React

Ive used the rxjs-hooks for my logic gate simulator and it ...

Implementation of ES6 Map() function

The map function needs to get the current value, index and ...

Checking Sudoku with Functional JavaScript

The post is great but i don't like the way you check if a s...

What language would you recommend for a beginner?

I first started with python, then went to javascript. I hav...

An Unintentionally Comprehensive Introduction to GitHub Actions CI

I've been using those basic features for some time, but how...

New ES2019 JavaScript features every developer should be excited about

U should open a proposal or something, amazing idea

Recommend a science fiction

I love Asimovs fundation, but my favorite book from him is ...

It is ⌚time to ditch ReactJS or Angular and use better web standards like web components😍 part 1

Whats your opinion on svelte?

Let's connect on Github!

github.com/Mateiadrielrafael

Basics of Async and Await

Async is supposed to come before the function keyword

10 mistakes React developers make

I think you dont need prop-types if you use typescript. Als...

⏳ Is Future Proofing just Overengineering? 🤹

If you are writing a library, go for it:) Ps, I write eve...

Top 40 list of interesting website features

Oh, didnt notice the pun:)

Top 40 list of interesting website features

U have a typo: "eavl" should be "evil" Cool concept anyway...

Debug Challenge Week 1

You could also set the onclick prop of the element in js to...

Debug Challenge Week 1

Socks should be a const:) u have an extra )

😲🤯The most outstanding new feature in Javascript you need to know about: Optional Chaining

Totally agree:)

The usefulness of building useless things

Writing the tests is fun, but i usually have to spend days ...

The dangers of the unibrow(ser)

Just read this like 9 mo ths later. From what i remember go...

The usefulness of building useless things

What are your thoughts about testing for side projects?

Brag Post

Im proud of getting second at the national stage of a progr...

Another way to write your JavaScript

Thanks for shoiwng me something new! (The number formating)...

Do you hate JavaScript?

For me personally: typescript > python > javascript

Do you hate JavaScript?

I dont think your "this" example is viable since every lang...

Do you hate JavaScript?

Im just some random 16 yr old guy from the internet, and iv...

Increase the speed execution of your functions with memoization

interviewcake.com/concept/java/lru...

Increase the speed execution of your functions with memoization

I think you should write another blog implementing a simple...

Async Clipboard API: Accessing the clipboard using JavaScript

Thats exactly what i was looking for! Amazing blog!

Why SvelteJS may be the best framework for new web devs

What do you mean by Suspense looks interesting and there is...

loading...