CuriousCoder
chopsueey.bsky.social
CuriousCoder
@chopsueey.bsky.social
Posting webdev and programming stuff

https://linktr.ee/curiouscoder
you to create specialized functions by partially applying arguments.

#programming #javascript #webdev
January 2, 2025 at 8:52 PM
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 approach increases modularity and code reusability by allowing ...
January 2, 2025 at 8:52 PM
...React framework called 'TanStack Start', which is currently in beta. It will include SSR, Streaming, Server functions, bundling (Vite) and more.

https://tanstack.com/

#tanstack #javascript #framework #webapp
December 26, 2024 at 3:25 PM
...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 useful for complex calculations.

#webdev #programming
Generator - JavaScript | MDN
The Generator object is returned by a generator function and it conforms to both the iterable protocol and the iterator protocol.
developer.mozilla.org
December 24, 2024 at 6:39 PM
...methods, or for more reusable library functions.

But there is more (as always):
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions

#programming #javascript #webdev
December 20, 2024 at 2:50 PM
...anization.

Their this binding is dynamic - so "this" depends on where we call the function, not where we wrote them - which is perfect for using them as object methods and referring to specific class instances.

So, as a guideline, use them for more complex logic, as object..
December 20, 2024 at 2:50 PM
...sive Design
4. Push Notifications

They combine the best features of web and mobile apps, providing a fast,
reliable, and engaging user experience.

https://web.dev/explore/progressive-web-apps

#javascript #webdev #webapp
Progressive Web Apps  |  web.dev
In this collection, you'll learn what makes a Progressive Web App special, how they can affect your business, and how to build them.
web.dev
December 9, 2024 at 4:09 PM
variable.

Use them for short, simple logic or as 'inner' functions when you need to preserve this in nested functions or methods.

But there is more (as always):
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

#programming
Arrow function expressions - JavaScript | MDN
An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate limitations in usage:
developer.mozilla.org
December 5, 2024 at 8:17 PM