Deno Resources

This page collects resources, starter guides and tutorials on Deno, an alternative V8 runtime for JavaScript and TypeScript. A primer is here: Deno 1.0: What you need to know. Official Resources Deno website Collections dev.to Deno tag Awesome-Deno Deno SubReddit Tutorials/Getting Started The Deno Handbook: a Deno Tutorial Forget NodeJS! Build native TypeScript applications with Deno Learn Deno: Chat app Build A Simple CLI Tool With Deno What is Deno.
Read more →

Code Snippets With vim-vsnip

When you work with a language like Dart, you soon realize that you have a lot of boilerplate code. For example, here is the skeleton code for a stateless Widget in Flutter: class YellowBird extends StatefulWidget { const YellowBird({ Key key }) : super(key: key); @override _YellowBirdState createState() => _YellowBirdState(); } class _YellowBirdState extends State<YellowBird> { @override Widget build(BuildContext context) { return Container(color: const Color(0xFFFFE306)); } } A few code snippets would be helpful.
Read more →

Friday Picks 049

Here are some links for this Friday: Architecture Patterns with Python: Enabling Test-Driven Development, Domain-Driven Design, and Event-Driven Microservices Paperback - learn Domain-Driven Design with Python, free HTML version Performance Best Practices: Running and Monitoring Express.js in Production - insightful article, although it boasts some ads for the service the blog belongs to How To Build An Amazing LinkedIn Profile [15+ proven tips] - a guide on getting the most out of your LinkedIn profile Nonsense!
Read more →

Tuesday Picks 002

Read more →

Friday Picks 048

Read more →

Tuesday Picks 001

Read more →

Friday Picks 047

Read more →

Currently Working on Clean Nodejs With Mongodb and Graphql API

At the moment, I’m into architecture, clean code, building APIs. I’ve watched the video Using Clean Architecture for Microservice APIs in Node.js with MongoDB and Express by Bill Sourour. I’m trying to build something similar, but using the Fastify framework and GraphQL. Bill works a lot with dependency injection, and I’m having trouble with translating the code from using http endpoints and requests to using GraphQL. Further Reading Example Microservice API by Bill Sourour Using Clean Architecture for Microservice APIs in Node.
Read more →

TIL How to Refactor Try Catch With Either Monad

Today I watched the course Hardcore Functional Programming in JavaScript, v2. The instructor, Brian Lonsdorf, shows you functional programming principles with JavaScript and introduces concepts like currying, functors and monads. One interesting application is the refactoring of a try-catch-block to the Either monad. const fs = require('fs') const getPort = () => { try { const str = fs.readFileSync('config.json') const config = JSON.parse(str) return config.port } catch (e) { return 3000 } } const result = getPort() const Right = (x) => ({ map: (f) => Right(f(x)), chain: (f) => f(x), fold: (f, g) => g(x), inspect: () => Right(${x}), }) const Left = (x) => ({ map: (f) => Left(x), chain: (f) => Left(x), fold: (f, g) => f(x), inspect: () => Left(${x}), }) const fromNullable = (x) => (x !
Read more →

More Learning Resources During COVID-19 Outbreak Part 3

Read more →