Marky β±
JavaScript timer based on
For browsers that don't support
[ Github ] : github.com/nolanlawson/marky
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#Measurement #Benchmark #JavaScript
@ProgrammingTip
JavaScript timer based on
performance.mark() and performance.measure(), providing high-resolution timings as well as nice Dev Tools visualizations. πFor browsers that don't support
performance.mark(), it falls back to performance.now() or Date.now(). In Node, it uses process.hrtime(). β¨[ Github ] : github.com/nolanlawson/marky
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#Measurement #Benchmark #JavaScript
@ProgrammingTip
Telegram
Programming Tips Resources
Are Node.js Modules Singletons ? π€¦π»ββοΈ
Node.js modules can behave like Singletons, but they are not guaranteed to be always singletonβοΈ
There are two reasons for this and both are mentioned in the official Node.js documentation π :
1- Nodeβs module caching mechanism is case-sensitive. π€·π»ββοΈ
2- Modules are cached based on their resolved filename. π£
[ Article ] : kutt.it/nodesingle
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#JavaScript #NodeJS
@ProgrammingTip
Node.js modules can behave like Singletons, but they are not guaranteed to be always singletonβοΈ
There are two reasons for this and both are mentioned in the official Node.js documentation π :
1- Nodeβs module caching mechanism is case-sensitive. π€·π»ββοΈ
2- Modules are cached based on their resolved filename. π£
[ Article ] : kutt.it/nodesingle
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#JavaScript #NodeJS
@ProgrammingTip
Telegram
Programming Tips Resources
Emojis β the fun and weird parts! π
Come get a time out from useful learning and get a brief introduction to the surprisingly interesting world of emojis ! β‘οΈ
Emojis β to most of us they're just a weird distraction from proper language.
They're actually a rather cool piece of technology (βοΈ) with a meaningful impact on society. I'll teach you 3 things you didn't know about emojis, but you'll be glad you do ! β¨
[ Conference ] : kutt.it/emoji
[ Article ] : kutt.it/emojiart
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#Emoji #JavaScript
@ProgrammingTip
Come get a time out from useful learning and get a brief introduction to the surprisingly interesting world of emojis ! β‘οΈ
Emojis β to most of us they're just a weird distraction from proper language.
They're actually a rather cool piece of technology (βοΈ) with a meaningful impact on society. I'll teach you 3 things you didn't know about emojis, but you'll be glad you do ! β¨
[ Conference ] : kutt.it/emoji
[ Article ] : kutt.it/emojiart
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#Emoji #JavaScript
@ProgrammingTip
Telegram
Programming Tips Resources
Superstruct π₯
A simple and composable way to validate data in Javascript. β¨
Superstruct makes it easy to define interfaces and then validate JavaScript data against them. β οΈ
Its type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API. π§
But Superstruct is designed for validating data at runtime, so it throws (or returns) detailed runtime errors for you or your end users. π₯
This is especially useful in situations like accepting arbitrary input in a REST or GraphQL API, but it can even be used to validate internal data structures at runtime when needed. β
[ Github ] : kutt.it/SprStr
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#JavaScript #Validation
@ProgrammingTip
A simple and composable way to validate data in Javascript. β¨
Superstruct makes it easy to define interfaces and then validate JavaScript data against them. β οΈ
Its type annotation API was inspired by Typescript, Flow, Go, and GraphQL, giving it a familiar and easy to understand API. π§
But Superstruct is designed for validating data at runtime, so it throws (or returns) detailed runtime errors for you or your end users. π₯
This is especially useful in situations like accepting arbitrary input in a REST or GraphQL API, but it can even be used to validate internal data structures at runtime when needed. β
[ Github ] : kutt.it/SprStr
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#JavaScript #Validation
@ProgrammingTip
Telegram
Programming Tips Resources
Elasticlunr.js β‘οΈ
Elasticlunr.js is a lightweight full-text search engine developed in JavaScript for browser search and offline search. π
Elasticlunr.js is developed based on Lunr.js, but more flexible than Lunr.js. π₯
Elasticlunr.js provides Query-Time boosting, field search, more rational scoring/ranking methodology, fast computation speed and so on. π
Elasticlunr.js is a bit like Solr, but much smaller and not as bright, but also provide flexible configuration. β¨
[ Website ] : elasticlunr.com
[ Github ] : github.com/weixsong/elasticlunr.js
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#JavaScript #Search
@ProgrammingTip
Elasticlunr.js is a lightweight full-text search engine developed in JavaScript for browser search and offline search. π
Elasticlunr.js is developed based on Lunr.js, but more flexible than Lunr.js. π₯
Elasticlunr.js provides Query-Time boosting, field search, more rational scoring/ranking methodology, fast computation speed and so on. π
Elasticlunr.js is a bit like Solr, but much smaller and not as bright, but also provide flexible configuration. β¨
[ Website ] : elasticlunr.com
[ Github ] : github.com/weixsong/elasticlunr.js
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#JavaScript #Search
@ProgrammingTip
Telegram
Programming Tips Resources
Why I created another React component library π
[ Article ] : https://kutt.it/ARC
[ Github ] : https://github.com/sha-el/sha-el-design
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#React #JavaScript
@ProgrammingTip
[ Article ] : https://kutt.it/ARC
[ Github ] : https://github.com/sha-el/sha-el-design
γ°οΈγ°οΈγ°οΈγ°οΈγ°οΈγ°οΈ
#React #JavaScript
@ProgrammingTip
Telegram
Programming Tips Resources