Programming Tips 💡
51.6K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips 💡
Articles 📕
Resources 👾
Design Patterns 💎
Software Principles

🇳🇱 Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
Developers, Blog More and Own Your Words 🗣

It's critical, though, that you own your words.
Have your own domain, and publish everything there. ✏️

Own what you write, and when your community points out helpful tips or places where you got something wrong, own that too. 👍🏻

Scott Hanselman said years ago that "Your Blog is the Engine of Community" and he's exactly right.

But it needs to be your blog, not a "publication" hosted on some massive aggregator site and lost in the swarm of nameless, faceless, featureless posts. It needs to be your words, on your site, with your style. That's how people find you. 💎


[ Article ] : kutt.it/blg

〰️〰️〰️〰️〰️〰️
#Blogging #Tip
@ProgrammingTip
Marky

JavaScript timer based on performance.mark() and performance.measure(), providing high-resolution timings as well as nice Dev Tools visualizations. 🌈

For browsers that don't support performance.mark(), it falls back to performance.now() or Date.now(). In Node, it uses process.hrtime().


[ Github ] : github.com/nolanlawson/marky

〰️〰️〰️〰️〰️〰️
#Measurement #Benchmark #JavaScript
@ProgrammingTip
Let me tell you about a pretty interesting Telegram channel, which I read often.

It is curated by Yegor Bugayenko, the CEO of Zerocracy. Yegor regularly blogs and posts short videos about software engineering, programming, startups, investments, and management. 🖥

With just a few posts per day you will learn many interesting things, which will provoke you to look at software development from a very different perspective. 👁

The channel is here : @yegor256news

〰️〰️〰️〰️〰️〰️
#Blogs #Programming
@ProgrammingTip
Pickr 🌈

Flat, simple, responsive and hackable Color-Picker library.
No dependencies, no jQuery. ⚡️
Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more❗️


[ Demo ] : simonwep.github.io/pickr
[ Github ] : github.com/Simonwep/pickr

〰️〰️〰️〰️〰️〰️
#CSS #FrontEnd
@ProgrammingTip
Top Shipment is looking for a remote React Developer Investor and we are giving equity and profit split in exchange for working 25h per week. ⚛️

You qualify for the contract when the web app rolls out. The term is 3 years.

[ Job Details ] : bit.ly/topproposal 🌐

〰️〰️〰️〰️〰️〰️
#Job #Hiring
@ProgrammingTip
Oh shit, git❗️

Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. 🤷🏻‍♂️

Git documentation has this chicken and egg problem where you can't search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem. 🤦🏻‍♂️

So here are some bad situations I've gotten myself into, and how I eventually got myself out of them in plain english*.

[ Website ] : ohshitgit.com

〰️〰️〰️〰️〰️〰️
#Git #SourceControl
@ProgrammingTip
The Evolving Infrastructure of .NET Core ⚡️

It would be useful to take a brief look at the history of ASP.NET Core's infrastructure systems and the significant improvements that have been made in the last year or so. 💎

This post will be interesting if you are interested in build infrastructure or want a behind-the-scenes look at how we build a product as big as .NET Core. 🔥


[ Article ] : kutt.it/netInfra

〰️〰️〰️〰️〰️〰️
#Microsoft #AspMvc #Core #AspCore
@ProgrammingTip
Are Node.js Modules Singletons ? 🤦🏻‍♂️

Node.js modules can behave like Singletons, but they are not guaranteed to be always singleton❗️

There are two reasons for this and both are mentioned in the official Node.js documentation 📑 :

1- Node’s module caching mechanism is case-sensitive. 🤷🏻‍♂️

2- Modules are cached based on their resolved filename. 🗣


[ Article ] : kutt.it/nodesingle

〰️〰️〰️〰️〰️〰️
#JavaScript #NodeJS
@ProgrammingTip
Emojis – the fun and weird parts! 😅

Come get a time out from useful learning and get a brief introduction to the surprisingly interesting world of emojis ! ⚡️

Emojis – to most of us they're just a weird distraction from proper language.

They're actually a rather cool piece of technology (❗️) with a meaningful impact on society. I'll teach you 3 things you didn't know about emojis, but you'll be glad you do !


[ Conference ] : kutt.it/emoji
[ Article ] : kutt.it/emojiart

〰️〰️〰️〰️〰️〰️
#Emoji #JavaScript
@ProgrammingTip
JSON API .NET Core

A framework for building json:api compliant web APIs. 💎

The ultimate goal of this library is to eliminate as much boilerplate as possible by offering out-of-the-box features such as sorting, filtering and pagination. 🗂

You just need to focus on defining the resources and implementing your custom business logic. 👌🏻

This library has been designed around dependency injection making extensibility incredibly easy. 💉


[ Github ] : kutt.it/JsonApiCore
[ Documentation ] : json-api-dotnet.github.io

〰️〰️〰️〰️〰️〰️
#AspMvc #AspCore #DotNet
@ProgrammingTip
The Difference Between SHA-1, SHA-2 and SHA-256 Hash Algorithms 🔐

If you have heard about “SHA” in its many forms, but are not totally sure what it’s an acronym for or why it’s important, we’re going to try to shine a little bit of light on that here today. 🌈

Before we can get to SHA itself though, we need to run through what a hash is, and then we’ll get into how SSL certificates use hashes to form digital signatures. 🌐

These are critical concepts to understand before you’ll be able to follow what SHA-1 and SHA-2 are. ☝🏻


[ Article ] : kutt.it/sha256

〰️〰️〰️〰️〰️〰️
#Hash #Encryption #Cryptography
@ProgrammingTip
Superstruct 🔥

A simple and composable way to validate data in Javascript.

Superstruct makes it easy to define interfaces and then validate JavaScript data against them. ⚠️

Its type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API. 🧠

But Superstruct is designed for validating data at runtime, so it throws (or returns) detailed runtime errors for you or your end users. 👥

This is especially useful in situations like accepting arbitrary input in a REST or GraphQL API, but it can even be used to validate internal data structures at runtime when needed.


[ Github ] : kutt.it/SprStr

〰️〰️〰️〰️〰️〰️
#JavaScript #Validation
@ProgrammingTip
Elasticlunr.js ⚡️

Elasticlunr.js is a lightweight full-text search engine developed in JavaScript for browser search and offline search. 🔍

Elasticlunr.js is developed based on Lunr.js, but more flexible than Lunr.js. 🔥

Elasticlunr.js provides Query-Time boosting, field search, more rational scoring/ranking methodology, fast computation speed and so on. 💎

Elasticlunr.js is a bit like Solr, but much smaller and not as bright, but also provide flexible configuration.


[ Website ] : elasticlunr.com
[ Github ] : github.com/weixsong/elasticlunr.js

〰️〰️〰️〰️〰️〰️
#JavaScript #Search
@ProgrammingTip
To DDD or not to DDDWhat to do if your domain is boring

"DDD should only be applied to complex domains!" - you've probably heard that over and over again.

But what exactly does a complex domain look like

When does a domain become complex enough to justify the extra cost of applying DDD

And why does DDD have to be so expensive

In this talk, I'll challenge some of the DDD common myths, ask a few hard questions and explore what is possible when you stop blindly following what is deemed "the best practice".

I'll share with you a few patterns that you can apply even to projects that are not DDD all the way just yet. You'll walk away with practical knowledge that you can start using right away. 💎


[ YouTube ] : youtu.be/h6WvetICeo4

〰️〰️〰️〰️〰️〰️
#DDD #DomainDrivenDesign #Conference
@ProgrammingTip
Kubernetes for .NET Developers ☸️

Have you started building containerized application and struggled with scaling across multiple hosts

Would you like to simplify DevOps tasks such as deployment and configuration

Have you heard about Kubernetes and would like to learn more

Then this presentation is for you. 💎

Kubernetes
is an open source system for managing containerized applications across multiple hosts; providing basic mechanisms for deployment, maintenance, and scaling of applications. 🔥

In this presentation, I will walk you through Kubernetes fundamentals, the high level architecture, how would you deploy an ASP.NET Core application to Kubernetes and finally how would you configure and launch auto-scaling, self-healing Kubernetes cluster. ⚡️


[ YouTube ] : youtu.be/uh4V2IjSrlI
[ Github ] : kutt.it/KubeAsp

〰️〰️〰️〰️〰️〰️
#Kubernetes #DotNet #Core #AspMvc #AspCore
@ProgrammingTip
BloomRPC 🌷

The missing GUI Client for GRPC services. 🌸

Inspired by Postman and GraphQL Playground.

BloomRPC aim to give the simplest and efficient developer experience for exploring and querying your GRPC services. 💎

Install the client, select your protobuf files and start making requests ! ⚡️

No extra steps or configuration needed. ✌🏻


[ Github ] : github.com/uw-labs/bloomrpc

〰️〰️〰️〰️〰️〰️
#gRPC #Protobuf #GUI
@ProgrammingTip
Empower Your Microservices with Istio Service Mesh 💎

Microservices popularity has grown as a lot of organizations are moving their applications to microservices which enables their teams to autonomously own and operate their own microservices.

The microservices have to communicate with each other so how do you efficiently connect, secure, and monitor those services

Istio is an open platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data. 📊

In this session, we will cover what is service mesh and why it is important for you, what are the core components of Istio, how to empower your microservices to leverage the features that Istio provides on top of Kubernetes such as service discovery, load balancing, resiliency, observability, and security. ⚡️


[ YouTube ] : kutt.it/istio

〰️〰️〰️〰️〰️〰️
#Microservice #Kubernetes #Istio
@ProgrammingTip
C# 8 Interfaces: Dangerous Assumptions in Default Implementation ⚠️

One of the features that is being promoted about C# 8 interfaces is that we can add members to an interface without breaking existing implementers.

But we can cause a lot of pain if we aren't careful. 🤷🏻‍♂️

Let's look at some code that makes bad assumptions so that we can understand the importance of avoiding these problems. ⛔️


[ Article ] : kutt.it/csdif

〰️〰️〰️〰️〰️〰️
#CSharp #Interfaces
@ProgrammingTip
Don't Create Objects That End With -ER

Manager, Controller, Helper, Handler, Writer, Reader, Converter, Validator, Router, Dispatcher, Observer, Listener, Sorter, Encoder, Decoder. 🤯

This is the class names hall of shame. 🤷🏻‍♂️

Have you seen them in your code
In open source libraries you’re using
In pattern books

They are all wrong. ⚠️


What do they have in common

They all end in “-er.”
And what’s wrong with that ⁉️
They are not "classes", and the objects they instantiate are not objects. Instead, they are collections of procedures pretending to be classes. 🤦🏻‍♂️


[ Article ] : kutt.it/erobj

〰️〰️〰️〰️〰️〰️
#Objects #ObjectThinking
@ProgrammingTip
Using the ReferenceAssemblies NuGet package to build .NET Framework libraries on Linux, without installing Mono 💎

In this post I show how you can build .NET projects that target .NET Framework versions on Linux, without using Mono! 🤷🏻‍♂️

By using the new Microsoft.NETFramework.ReferenceAssemblies NuGet packages from Microsoft you don't need to install anything more than the .NET Core SDK! 🔥


[ Article ] : kutt.it/coremono

〰️〰️〰️〰️〰️〰️
#CSharp #DotNet #AspCore #NetCore
@ProgrammingTip