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

🇳🇱 Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
Programming Tips 💡
Photo
Mastering Docker.pdf
26.3 MB
Mastering Docker - Second Edition 📕

Authors 🖊 :
Russ McKendrick
Scott Gallagher

Publisher : Packt


#Book #Docker
@ProgrammingTip
Dockerise .NET Core Apps 📦

In this tutorial, you will learn how to build and run your first ASP.NET Core docker image. 🔥

We're going to walk through how you would add docker support to a pre-existing code base. 💎

It’s incredibly easy to do.


https://news.1rj.ru/str/pgimg/136

[ Article ] : bit.do/dcker


#AspMvc #Core #Docker
@ProgrammingTip
What was the funniest experience you've ever had related to programming => Asked from Lino Tadros

The funniest experience I had was during the Delphi 3 development cycle when I had a serious problem running one of the builds on my machine and after wasting almost 4 hours, I went to Anders and Chuck and requested help. 🙏🏻

Anders ( Anders Hejlsberg ) and Chuck came to my office, sat down next to each other in front of my machine and started debugging delphi32.exe inside of TD32. 🐞

I sat behind them watching. 👀

Few minutes later, Anders pointed to the CPU window at some bits and told Chuck :
"Look Chuck, this byte is not supposed to be here, this is a pcked record." 😦

Chuck looked at it for 5 seconds and confirmed.

Then Anders looked at me and said :
"Lino, during the install from the network, one of the packages shifted 1 byte to the left for some reason, delete the package and reinstall." 😨

That was funny because I felt like I had the wrong job and that I should consider opening a hot dog stand somewhere instead of software development. 😶

These folks are Gods❗️

🔹🔸🔹🔸

Anders Hejlsberg 👾 :

He was the original author of Turbo Pascal and the chief architect of Delphi. 👐🏻

He currently works for Microsoft as the lead architect of C# and core developer on TypeScript. 💎

🔸🔹🔸🔹

https://news.1rj.ru/str/pgimg/137

[ Wikipedia ] : bit.do/anHej
[ Full Interview ] : bit.do/linO


#Fun #Interview
@ProgrammingTip
Strings Are Evil 👺

Reducing memory allocations from 7.5GB to 32KB. 😵

In this article we will explore potential optimisations to the import process specifically within the context of reducing memory during the import process.

This article is awesome❗️


https://news.1rj.ru/str/pgimg/138

[ Article ] : bit.do/StraE


#CSharp #Performance
@ProgrammingTip
Insidious Dependencies 🤷🏻‍♂️

In the last year or so I’ve really seen the light on how to really write loosely-coupled code. 💎

I thought I knew something about this concept before – I mean, I knew loose coupling was good, generally speaking, and I knew data abstraction was one of the key ways to limit dependencies between classes.

However, I didn’t realize that I was unintentionally adding all kinds of coupling into my applications despite my best efforts to the contrary. ⛔️

Let’s talk about some dependencies, including some obvious ones, as well as some insidious dependencies that lurk in most applications I’ve seen. 🗂

Insidious dependencies :
File System
Email
Web Service & Requests
DateTime.Now
Configuration
New ...


https://news.1rj.ru/str/pgimg/139

[ Article ] : bit.do/indP


#CleanCode #Dependency
@ProgrammingTip
Coravel

.NET Core meets Laravel : Scheduling, Queuing, etc.

Features 💎 :
• Task Scheduling
• Queuing

Tired of using cron and Windows Task Scheduler

Want to use something easy that ties into your existing code

In Startup.cs, put this in ConfigureServices() 👾 :

services.AddScheduler(scheduler =>
{
scheduler.Schedule(
() => Console.WriteLine("Run at 1pm utc during week days."))
.DailyAt(13, 00)
.Weekday();
});

Easy enough

Look at the documentation to see what methods are available❗️


https://news.1rj.ru/str/pgimg/140

[ Github ] : bit.do/corevl


#AspMvc #Core #Scheduler
@ProgrammingTip
All You Need To Know About CSS-in-JS 🌈

Thinking in components — No longer do you have to maintain bunch of style-sheets. CSS-in-JS abstracts the CSS model to the component level, rather than the document level (modularity). 🗂


What is CSS-in-JS

JSS
is a more powerful abstraction over CSS. 🦋

It uses JavaScript as a language to describe styles in a declarative and maintainable way. 🗣

It is a high performance JS to CSS compiler which works at runtime and server-side. 💎

This core library is low level and framework agnostic.

It is about 6KB (minified and gzipped) and is extensible via plugins API. 💉


https://news.1rj.ru/str/pgimg/141

[ Article ] : kutt.it/jss


#CSS #JavaScript #JSS
@ProgrammingTip
HTTPS explained with carrier pigeons ⚡️

Cryptography can be a hard subject to understand. It’s full of mathematical proofs. 🤷🏻‍♂️

But unless you are actually developing cryptographic systems, much of that complexity is not necessary to understand what is going on at a high level. 💎

If you opened this article hoping to create the next HTTPS protocol, I’m sorry to say that pigeons won’t be enough. 🕊

Otherwise, brew some coffee and enjoy the article. ☕️


https://news.1rj.ru/str/pgimg/142

[ Article ] : kutt.it/https


#HTTPS #Cryptography
@ProgrammingTip
Animate Calligraphy with SVG in CSS 🦋

From time to time at Stackoverflow, the question pops up whether there is an equivalent to the stroke-dashoffset technique for animating the SVG stroke that works for the fill attribute. 🤔

But upon closer inspection, what the questions are really trying to ask is something like this :

How do you animate calligraphy ⁉️

This article answers this question.


https://news.1rj.ru/str/pgimg/143

[ Article ] : https://kutt.it/g0QuEh


#HTML #CSS #FrontEnd
@ProgrammingTip
Have Continuous Integration with Jenkins in 30 mins ⚡️

If you are building and deploying code within Visual Studio and find its hard to scale up a team of developers, few things can alleviate your pain better than a Continuous Integration (CI) System. 🤷🏻‍♂️

Never heard of continuous integration or you don’t know if it’s right for you

This article will help you to get started. 💎


https://news.1rj.ru/str/pgimg/144

[ Article ] : kutt.it/jenkins


#CI #Jenkins #DotNet
@ProgrammingTip
Card Surge 🌈

Designing cards takes tweaking subtle details, and an easier to use playground makes finding the right styles faster. 🏃🏻

Card Surge is a playground for designing cards in a web interface.

Designing cards that look 🔥 takes careful tweaking and attention to detail, and Card Surge makes it easy. 🙅🏻‍♂️

Take existing styles from well designed sites and use them as a starting point, or begin playing with your own. Copy the code out into your own project once your done. 💎


https://news.1rj.ru/str/pgimg/145

[ Website ] : card.surge.sh


#CSS #UI #Cards
@ProgrammingTip
How to Stop Using Callbacks and Start Living ⚛️

Javanoscript has two major ways of dealing with asynchronous tasks - callbacks and Promises. 🤝

In general Promises are considered easier to use and to maintain than callbacks.

But in reality even Promises alone won’t make you happy. 🤬

Asynchronous code may still be quite difficult to read and to understand. 🤯

Therefore third-party libraries, e.g. co, provided means to write a synchronous-like asynchronous code. 🗃

I personally prefer everything in the world to be as clear and beautiful as redux-saga.

But not everybody is lucky to work with React and Redux to be able to use sagas. ⛔️

This article will show that in modern Javanoscript it is not difficult to write a well structured and easy to understand asynchronous code without using any third-party libraries.💎


https://news.1rj.ru/str/pgimg/146

[ Article ] : kutt.it/call


#JavaScript #CleanCode
@ProgrammingTip
How to use SVG as a Placeholder, and Other Image Loading Techniques 🌈

I’m passionate about image performance optimization and making images load fast on the web.⚡️

One of the most interesting areas of exploration is placeholders : what to show when the image hasn’t loaded yet. 🤷🏻‍♂️

During the last days I have come across some loading techniques that use SVG, and I would like to describe them in this post. 🔥


In this post we will go through these topics :

• Overview of different types of placeholders 🗂

• SVG-based placeholders (edges, shapes and silhouettes) 👤

• Automating the process. ♻️


https://news.1rj.ru/str/pgimg/147

[ Article ] : kutt.it/placeux

From : @Dexign


#UX #Design
@ProgrammingTip
What's This and Can I Delete It Examining a Default ASP.NET Core MVC Project 💥

I have a very simple two-step process I use whenever I create or join a new project.☝🏻

I examine each folder and file, and ask "what's this, and can I delete it"

After all, deleting things (or demolishing them, as may be appropriate) is so, so satisfying. 😃

I would be much happier deleting all code that ever existed. 🗂

To that end, we're going to examine a default ASP.NET Core project, created with ASP.NET Core 2.1 and Visual Studio 2017, to see what we absolutely have to keep and what can be thrown away. 💎

Let's get deleting❗️


https://news.1rj.ru/str/pgimg/148

[ Article ] : kutt.it/NCtImP


#AspMvc #Core
@ProgrammingTip
How does RSA work

RSA
is an asymmetric system , which means that a key pair will be generated, a public key and a private key, obviously you keep your private key secure and pass around the public one. 🌍

The algorithm was published in the 70’s by Ron Rivest, Adi Shamir, and Leonard Adleman, hence RSA , and it sort of implement’s a trapdoor function such as Diffie’s one. 🛅

RSA is rather slow so it’s hardly used to encrypt data , more frequently it is used to encrypt and pass around symmetric keys which can actually deal with encryption at a faster speed. 🏃🏻

https://news.1rj.ru/str/pgimg/149


How does it work

This videos simply shows that how does it work 🌀 :

[ Part 1 ] : kutt.it/rsa1
[ Part 2 ] : kutt.it/rsa2


#Cryptography #RSA
@ProgrammingTip
Common Webpage Design Mistakes ⚠️

Simple layout and design tips to help you create a stunning webpage. 🦋

This article shows 30 common design mistakes and their solution with images included. 🌈


https://news.1rj.ru/str/pgimg/150

[ Article ] : kutt.it/mstk


#UI #Design #CSS
@ProgrammingTip
BetweenJS ⚡️

Lightweight JavaScript (ES6) tweening library. ↔️


Purpose💡:

Make tweening usage convenient and powerful. 🔥

Modern : Written in ES6 🥇
Lightweight : 8.3 KB 👌🏻
• Performant : Optimized 💨


https://news.1rj.ru/str/pgimg/151

[ Website ] : kutt.it/4ruR0X
[ Github ] : kutt.it/Wl425b


#JavaScript #Library
@ProgrammingTip
Crunchy Calendar 📆

A beautiful material calendar with endless scroll, range selection and a lot more❗️

It's a powerful and easy to use Calendar Widget with a number out of the box features :

• Infinite vertical scrolling in both directions ↕️

• Setting date boundaries to restrict scrolling inside of a specific time period

• Single / multiple / range dates selection 🗂

• Pre-selecting dates 📅

• Color customization 🌈



https://news.1rj.ru/str/pgimg/152

[ Github ] : kutt.it/crnch


#Android #Calendar #Kotlin
@ProgrammingTip
Sieve 🗂

Clean & extensible Sorting, Filtering, and pagination for ASP.NET Core. ⚗️

Sieve is a simple, clean, and extensible framework for .NET Core that adds sorting, filtering, and pagination functionality out of the box. 💎

Most common use case would be for serving ASP.NET Core GET queries.

Sample Request ⚡️ :

GET /GetPosts

?sorts= LikeCount,-created
&filters= LikeCount>10, Title@=awesome noscript,
&page= 1
&pageSize= 10


Try this package, It's super powerful and easy to use. 🔥


https://news.1rj.ru/str/pgimg/153

[ Github ] : github.com/Biarity/Sieve
[ Nuget ] : nuget.org/packages/Sieve


#AspMvc #Core
@ProgrammingTip
Polly.JS 🐦

Record, Replay, and Stub HTTP Interactions 💡

Polly.JS
is a standalone, framework-agnostic JavaScript library that enables recording, replaying, and stubbing HTTP interactions. 🗂

Polly taps into native browser APIs to mock requests and responses with little to no configuration while giving you the ability to take full control of each request with a simple, powerful, and intuitive API.


Features :
• Fetch & XHR Support 🚀
• Simple, Powerful, & Intuitive API ⚡️
• First Class Mocha & QUnit Test Helpers 💎
• Intercept, Pass-Through, and Attach Events 👌
• Record to Disk or Local Storage 📼
• Slow Down or Speed Up Time 🔥

https://news.1rj.ru/str/pgimg/154

[ Github ] : github.com/Netflix/pollyjs


#JavaScript #Library
@ProgrammingTip
Angular Console 🅰️

The Power of the Angular CLI. ⚡️
The Convenience of an App. 💎

Spend less time looking up command line arguments, and more time shipping incredible products.

The Angular CLI is immensely powerful and extensible. 🌀

In fact, there are so many capabilities that it can often be hard to remember all of the different configuration options for every available command, or remember that certain features even exist. 🌍

Angular Console is, first and foremost, a more approachable way to work with what the Angular CLI already provides. 🔥

Availabe for: Mac, Windows


https://news.1rj.ru/str/pgimg/155

[ Download ] : kutt.it/ngcli


#JavaScript #Angular #CLI
@ProgrammingTip