Programming Tips πŸ’‘
51.5K 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
Carbon✨

Create and share beautiful images of your source code. 🌈

You know all of those code screenshots you see on Twitter❓

Although the code's usually impressive, we saw room for improvement in the aesthetic department. βœ…

Carbon is the easiest way to create beautiful images of your source code. 🌌

So what are you waiting for❓
Go impress all of your followers with your newfound design prowess. 🎨

https://t.me/pgimg/129

[ Website ] : carbon.now.sh

γ€°γ€°γ€°γ€°γ€°γ€°
#Code #Scheme
@ProgrammingTip
Apress - Real-Time Web Application Development.pdf
21.3 MB
Real-Time Web Application Development : With ASP.NET Core, SignalR, Docker, and Azure πŸ“•

Author : Rami Vemula πŸ–Š

Publisher : Apress ✨

γ€°γ€°γ€°γ€°γ€°
#Book #AspMvc #Core #SignalR #Docker #Azure
@ProgrammingTip
Flexbox Froggy 🐸

Flexbox Froggy is a game for learning CSS flexbox. πŸ‘Ύ

Flexbox Froggy takes inspiration from the classic arcade game Frogger, and web literacy games like the brilliant CSS Diner and Erase All Kittens, where you learn about CSS selectors and HTML markup respectively. πŸ”₯


https://t.me/pgimg/130

[ Learn ] : flexboxfroggy.com

γ€°γ€°γ€°γ€°γ€°γ€°
#FlexBox #CSS
@ProgrammingTip
Using Redis Cache in .NET Core πŸ—‚

Redis is a high performance distributed cache. It’s great for storing data that you are going to need again and again in a short period of time when you don’t want to use processing power to β€œcreate” that data again. ♻️

Think number crunching or heavy SQL queries for data that doesn’t change often. 🚫


Roll Your Own πŸ‘€

First off. You can absolutely roll your own Redis Cache services abstracted by your own interfaces etc. βœ…

You may find it a little difficult to find libraries that target .NET Core, but this will change over time. ⏳

In saying that, there is a β€œ.NET Core” way of doing things that is a little different. It does tie you into the framework a little, but it abstracts away the caching completely and let’s Microsoft handle it and that’s what we are going to go over today. πŸ’Ž


https://t.me/pgimg/131

[ Article ] : bit.do/rcache

γ€°γ€°γ€°γ€°γ€°γ€°
#Redis #AspMvc #Core #Cache
@ProgrammingTip
WarriorJS πŸ—‘

An exciting game of programming and Artificial Intelligence. πŸ€–

In WarriorJS, you wear the skin of a warrior climbing a tall tower to reach The JavaScript Sword at the top level. ⛳️

Legend has it that the sword bearer becomes enlightened in the JavaScript language, but be warned : the journey will not be easy. ⚠️

On each floor, you need to write JavaScript to instruct the warrior to battle enemies, rescue captives, and reach the stairs alive. ☠️

No matter if you are new to programming or a JavaScript guru, WarriorJS will put your skills to the test. Will you dare❓


https://t.me/pgimg/132

[ Github ] : bit.do/warriorjs

γ€°γ€°γ€°γ€°γ€°γ€°
#JavaScript #Fun #Game
@ProgrammingTip
VS Code can do that ⁉️

All the best things about Visual Studio Code that nobody ever bothered to tell you. πŸ”₯


Features βœ… :

β€’ Update Image Size
β€’ Emmet
β€’ Wrap Individual Lines
β€’ Prettier
β€’ Font Ligatures
β€’ Bracket Pair Colorizer
β€’ JavaScript Type Checking
β€’ JSON Intellisense
β€’ Node.js Debugging
β€’ Debugging Browser Apps
β€’ Log Points
β€’ CosmosDB / MongoDB
β€’ Bookmarks
β€’ Docker
β€’ Settings Sync
β€’ Deployment
β€’ Image Preview
β€’ CSS Preview
β€’ Inline File / Folder Nesting


https://t.me/pgimg/133

[ Website ] : bit.do/vscod

γ€°γ€°γ€°γ€°γ€°γ€°
#VSCode #Extensions
@ProgrammingTip
Never commit code that’s been commented out 🚫

I’ve never understood the reasoning behind committing code that’s been commented out. πŸ€”

I assume it’s to keep old versions of the code around just in case the new code doesn’t work, but that’s just bizarre. ⚠️

Keeping track of old versions is the reason we use a version control system in the first place❗️

Why was the code commented out❔
Does it work❔
Should it work❔
Has it ever worked❔
Is it something we should strive towards or run away from❔

Code that’s been commented out is worse than useless, because every time it’s read, it raises questions like these without providing any answers. ❌

It only serves to confuse and distract from the code in use. 🀯


https://t.me/pgimg/134

γ€°γ€°γ€°γ€°γ€°γ€°
#Tips #Git
@ProgrammingTip
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.
This media is not supported in your browser
VIEW IN TELEGRAM
And now ... here is the answer. 🀟🏻

〰️〰️〰️〰️〰️〰️
#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. πŸ’‘

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
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://t.me/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://t.me/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://t.me/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://t.me/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://t.me/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://t.me/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://t.me/pgimg/142

[ Article ] : kutt.it/https

γ€°γ€°γ€°γ€°γ€°γ€°
#HTTPS #Cryptography
@ProgrammingTip