Programming Tips πŸ’‘
51.7K 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
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
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
BetweenJS ⚑️

Lightweight JavaScript (ES6) tweening library. ↔️


PurposeπŸ’‘:

Make tweening usage convenient and powerful. πŸ”₯

β€’ Modern : Written in ES6 πŸ₯‡
β€’ Lightweight : 8.3 KB πŸ‘ŒπŸ»
β€’ Performant : Optimized πŸ’¨


https://t.me/pgimg/151

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

γ€°γ€°γ€°γ€°γ€°γ€°
#JavaScript #Library
@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://t.me/pgimg/154

[ Github ] : github.com/Netflix/pollyjs

γ€°γ€°γ€°γ€°γ€°γ€°
#JavaScript #Library
@ProgrammingTip