Programming Tips π‘
Photo
It's quiz time, What do you think will be loggedβ
anonymous poll
2 then 3 β 83
πππππππ 50%
1 then 1 β 28
ππ 17%
1 then 3 β 28
ππ 17%
1 then 2 β 28
ππ 17%
π₯ 167 people voted so far. Poll closed.
anonymous poll
2 then 3 β 83
πππππππ 50%
1 then 1 β 28
ππ 17%
1 then 3 β 28
ππ 17%
1 then 2 β 28
ππ 17%
π₯ 167 people voted so far. Poll closed.
This media is not supported in your browser
VIEW IN TELEGRAM
And now ... here is the answer. π€π»
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#JavaScript #Async
@ProgrammingTip
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#JavaScript #Async
@ProgrammingTip
Avian π
A lightweight virtual machine and class library designed to provide a useful subset of Javaβs features, suitable for building self-contained applications. π‘
Efficient
πΈJust-In-Time (JIT) compilation for fast method execution
πΉGenerational, copying garbage collection ensures short pause times and good spatial locality
πΈThread-local heaps provide O(1) memory allocation with no synchronization overhead
πΉNull pointer dereferences are handled via OS signals to avoid unecessary branches
The class library is designed to be as loosely coupled as possible, allowing tools like ProGuard to aggressively isolate the minimum code needed for an application. β‘οΈ
This translates to smaller downloads and faster startup. β¨
https://t.me/pgimg/135
[ Website ] : readytalk.github.io/avian
γ°γ°γ°γ°γ°γ°
#Java #VM #JIT
@ProgrammingTip
A lightweight virtual machine and class library designed to provide a useful subset of Javaβs features, suitable for building self-contained applications. π‘
The VM is implemented from scratch and designed to be both fast and small.
Efficient
πΈJust-In-Time (JIT) compilation for fast method execution
πΉGenerational, copying garbage collection ensures short pause times and good spatial locality
πΈThread-local heaps provide O(1) memory allocation with no synchronization overhead
πΉNull pointer dereferences are handled via OS signals to avoid unecessary branches
The class library is designed to be as loosely coupled as possible, allowing tools like ProGuard to aggressively isolate the minimum code needed for an application. β‘οΈ
This translates to smaller downloads and faster startup. β¨
https://t.me/pgimg/135
[ Website ] : readytalk.github.io/avian
γ°γ°γ°γ°γ°γ°
#Java #VM #JIT
@ProgrammingTip
Telegram
Programming Tips Resources
Programming Tips π‘
Photo
Mastering Docker.pdf
26.3 MB
Mastering Docker - Second Edition π
Authors π :
Russ McKendrick
Scott Gallagher
Publisher : Packt β¨
γ°γ°γ°γ°γ°γ°
#Book #Docker
@ProgrammingTip
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://t.me/pgimg/136
[ Article ] : bit.do/dcker
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #Docker
@ProgrammingTip
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://t.me/pgimg/136
[ Article ] : bit.do/dcker
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #Docker
@ProgrammingTip
Telegram
Programming Tips Resources
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 :
Chuck looked at it for 5 seconds and confirmed. β
Then Anders looked at me and said :
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://t.me/pgimg/137
[ Wikipedia ] : bit.do/anHej
[ Full Interview ] : bit.do/linO
γ°γ°γ°γ°γ°γ°
#Fun #Interview
@ProgrammingTip
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://t.me/pgimg/137
[ Wikipedia ] : bit.do/anHej
[ Full Interview ] : bit.do/linO
γ°γ°γ°γ°γ°γ°
#Fun #Interview
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/pgimg/138
[ Article ] : bit.do/StraE
γ°γ°γ°γ°γ°γ°
#CSharp #Performance
@ProgrammingTip
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://t.me/pgimg/138
[ Article ] : bit.do/StraE
γ°γ°γ°γ°γ°γ°
#CSharp #Performance
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/pgimg/139
[ Article ] : bit.do/indP
γ°γ°γ°γ°γ°γ°
#CleanCode #Dependency
@ProgrammingTip
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://t.me/pgimg/139
[ Article ] : bit.do/indP
γ°γ°γ°γ°γ°γ°
#CleanCode #Dependency
@ProgrammingTip
Telegram
Programming Tips Resources
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() πΎ :
Look at the documentation to see what methods are availableβοΈ
https://t.me/pgimg/140
[ Github ] : bit.do/corevl
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #Scheduler
@ProgrammingTip
.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://t.me/pgimg/140
[ Github ] : bit.do/corevl
γ°γ°γ°γ°γ°γ°
#AspMvc #Core #Scheduler
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/pgimg/141
[ Article ] : kutt.it/jss
γ°γ°γ°γ°γ°γ°
#CSS #JavaScript #JSS
@ProgrammingTip
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://t.me/pgimg/141
[ Article ] : kutt.it/jss
γ°γ°γ°γ°γ°γ°
#CSS #JavaScript #JSS
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/pgimg/142
[ Article ] : kutt.it/https
γ°γ°γ°γ°γ°γ°
#HTTPS #Cryptography
@ProgrammingTip
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://t.me/pgimg/142
[ Article ] : kutt.it/https
γ°γ°γ°γ°γ°γ°
#HTTPS #Cryptography
@ProgrammingTip
Telegram
Programming Tips Resources
Animate Calligraphy with SVG in CSS π¦
From time to time at Stackoverflow, the question pops up whether there is an equivalent to the
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://t.me/pgimg/143
[ Article ] : https://kutt.it/g0QuEh
γ°γ°γ°γ°γ°γ°
#HTML #CSS #FrontEnd
@ProgrammingTip
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://t.me/pgimg/143
[ Article ] : https://kutt.it/g0QuEh
γ°γ°γ°γ°γ°γ°
#HTML #CSS #FrontEnd
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/pgimg/144
[ Article ] : kutt.it/jenkins
γ°γ°γ°γ°γ°γ°
#CI #Jenkins #DotNet
@ProgrammingTip
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://t.me/pgimg/144
[ Article ] : kutt.it/jenkins
γ°γ°γ°γ°γ°γ°
#CI #Jenkins #DotNet
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/pgimg/145
[ Website ] : card.surge.sh
γ°γ°γ°γ°γ°γ°
#CSS #UI #Cards
@ProgrammingTip
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://t.me/pgimg/145
[ Website ] : card.surge.sh
γ°γ°γ°γ°γ°γ°
#CSS #UI #Cards
@ProgrammingTip
Telegram
Programming Tips Resources
How to Stop Using Callbacks and Start Living βοΈ
Javascript 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 Javascript it is not difficult to write a well structured and easy to understand asynchronous code without using any third-party libraries.π
https://t.me/pgimg/146
[ Article ] : kutt.it/call
γ°γ°γ°γ°γ°γ°
#JavaScript #CleanCode
@ProgrammingTip
Javascript 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 Javascript it is not difficult to write a well structured and easy to understand asynchronous code without using any third-party libraries.π
https://t.me/pgimg/146
[ Article ] : kutt.it/call
γ°γ°γ°γ°γ°γ°
#JavaScript #CleanCode
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/pgimg/147
[ Article ] : kutt.it/placeux
From : @Dexign
γ°γ°γ°γ°γ°γ°
#UX #Design
@ProgrammingTip
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://t.me/pgimg/147
[ Article ] : kutt.it/placeux
From : @Dexign
γ°γ°γ°γ°γ°γ°
#UX #Design
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/pgimg/148
[ Article ] : kutt.it/NCtImP
γ°γ°γ°γ°γ°γ°
#AspMvc #Core
@ProgrammingTip
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://t.me/pgimg/148
[ Article ] : kutt.it/NCtImP
γ°γ°γ°γ°γ°γ°
#AspMvc #Core
@ProgrammingTip
Telegram
Programming Tips Resources
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://t.me/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
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://t.me/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
Telegram
Programming Tips Resources