CuriousCoder

@chopsueey
15 Followers
18 Following
98 Posts
Posting webdev related things
linktreehttps://linktr.ee/curiouscoder
2b||!2b
State of React 2024

The 2024 edition of the annual survey about the latest trends in the React ecosystem.

Typeface or Font?

The #typeface is the overall design style.

The #font is a complete set of characters that share the same typeface with specific variations like weight, size, and style.

Typeface: Times New Roman, Arial

Font: bold 12pt, italic 20pt

#typography #webdev

approach increases modularity and code reusability by allowing you to create specialized functions by partially applying arguments.

#programming #javascript #webdev

What is Currying?

#currying, named after Haskell Curry (1900-1982), is a technique of transforming a function that takes multiple arguments into a sequence of functions, each taking a single argument. For example, a function f(a, b, c) becomes f(a)(b)(c).

This is accomplished using closures. When you call f(a), it returns a new function that "remembers" the value of a. When you then call that returned function with b, it returns another function that remembers both a and b, and so on. This ...

Closure Explained!

It simply means a function can access variables from its outer function, even after the outer one finishes running. This "closed-off" space with remembered variables is the #closure.

#programming #javascript #webdev

What is TanStack?

#TanStack is a collection of #JavaScript libraries that provide convenient tools for common problems when building a web application, such as data fetching and caching, client-side routing, state management and more.

They're also working on a full-stack React framework called 'TanStack Start', which is currently in beta. It will include SSR, Streaming, Server functions, bundling (Vite) and more.

https://tanstack.com/

#react #framework #webapp

TanStack | High Quality Open-Source Software for Web Developers

Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.

Merry Christmas everyone! 🎄 🎅

#santa #programming #christmas

...useful for complex calculations.

#webdev #programming

What is a Generator in #JavaScript?

A #generator is like a regular function, but with stepwise execution control. Instead of executing from start to finish in one go (like normal functions), a generator can pause and resume its execution, remembering its state and continue evaluating from there.

To do that, we must use the 'yield' keyword. If we use 'return', we will stop our Generator and can return a final value.

So a Generator can 'generate' something on demand, which can be...