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
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