CuriousCoder's Avatar

CuriousCoder

@chopsueey.bsky.social

Posting webdev and programming stuff https://linktr.ee/curiouscoder

11 Followers  |  5 Following  |  35 Posts  |  Joined: 29.11.2024  |  1.7367

Latest posts by chopsueey.bsky.social on Bluesky

2b||!2b

27.11.2025 15:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
State of React 2024 The 2024 edition of the annual survey about the latest trends in the React ecosystem.

State of React 2024 Survey Results are out!

2024.stateofreact.com/en-US

#javascript #react #stateofreact #webdev

16.02.2025 16:03 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
The sentence: 'The word "font" comes from the Old French word "fonte", which means "[something that has been] melted; a casting."'
Above an ilustration that shows different metal castings for printing single characters.

The sentence: 'The word "font" comes from the Old French word "fonte", which means "[something that has been] melted; a casting."' Above an ilustration that shows different metal castings for printing single characters.

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

17.01.2025 17:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

you to create specialized functions by partially applying arguments.

#programming #javascript #webdev

02.01.2025 20:52 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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

02.01.2025 20:52 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Code example of Currying in JavaScript.

Code example of Currying in JavaScript.

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

02.01.2025 20:52 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Closure code example in javascript

Closure code example in javascript

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

28.12.2024 15:27 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

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

26.12.2024 15:25 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Logo of TanStack

Logo of TanStack

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

26.12.2024 15:25 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
An illustration of Santa on his sleigh programming on his laptop while being pulled by his reindeer.

An illustration of Santa on his sleigh programming on his laptop while being pulled by his reindeer.

Merry Christmas everyone! πŸŽ„ πŸŽ…

#santa #programming #christmas

25.12.2024 13:28 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Generator - JavaScript | MDN The Generator object is returned by a generator function and it conforms to both the iterable protocol and the iterator protocol.

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

24.12.2024 18:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Illustration of a office desk with a monitor displaying "Generators in JavaScript", in comic-style

Illustration of a office desk with a monitor displaying "Generators in JavaScript", in comic-style

Code example for creating a basic Generator in JavaScript

Code example for creating a basic Generator in JavaScript

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

24.12.2024 18:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
code example showing functions used as variables in javascript

code example showing functions used as variables in javascript

What is a First-Class-Citizen in Programming?

When an entity (like a function) is considered a first-class citizen, it means that it can be used just like other fundamental data types (e.g., numbers,
strings):

#programming #javascript #python #webdev

22.12.2024 13:20 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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

20.12.2024 14:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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

20.12.2024 14:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
A simple, comic-style illustration depicting a person thinking about JavaScript functions. The person is cartoonish, with a lightbulb above their head

A simple, comic-style illustration depicting a person thinking about JavaScript functions. The person is cartoonish, with a lightbulb above their head

When to use Normal Functions in #JavaScript?

In general, normal functions are a bit more verbose and readable compared to Arrow Functions.

Function declarations are fully hoisted, meaning you can call them before they are defined in your code. This is useful for #code org...

20.12.2024 14:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image 18.12.2024 00:01 β€” πŸ‘ 7989    πŸ” 618    πŸ’¬ 125    πŸ“Œ 30
Preview
State of JavaScript 2024 The 2024 edition of the annual survey about the latest trends in the JavaScript ecosystem.

State of JS 2024 Survey Results are out!

Take a look here:
https://2024.stateofjs.com/en-US

#javascript #stateofjs #webdev

18.12.2024 13:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
An illustration of two cogwheels with the labels: 'Main thread' and 'Web Worker'.

An illustration of two cogwheels with the labels: 'Main thread' and 'Web Worker'.

What is a Web Worker?

Web workers are a powerful feature in #JavaScript that allow you to run scripts
in the background, separate from the main thread of your web application.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API

#webworker #webdev #performance

17.12.2024 20:02 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Naming things and...

#programming #webdev #javascript #gamer

13.12.2024 16:53 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
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.

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

09.12.2024 16:09 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

What is a Progressive Web App?

A #PWA is a type of web application that uses modern web features to deliver
an app-like experience. It is basically a website installed as an app and
integrated in your OS with features like your other applications.

1. Offline Access
2. Fast Performance
3. Respon...

09.12.2024 16:09 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Code example for the Set-object in javascript

Code example for the Set-object in javascript

The Set object in JavaScript!πŸ’‘

The Set object is a collection of unique values. Unlike arrays, sets do not
allow duplicate values, making them useful for storing unique items.

#javascript #webdev #programming

06.12.2024 15:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
React v19 – React The library for web and native user interfaces

🚨 ---NEWS ALERT--- 🚨

React 19 is now stable!

Read the blogpost:
https://react.dev/blog/2024/12/05/react-19

#react #programming #web #webdevelopment

06.12.2024 09:00 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
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:

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

05.12.2024 20:17 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
An illustration of a comic arrow with the label: javascript on it.

An illustration of a comic arrow with the label: javascript on it.

When to Use Arrow Functions in #JavaScript

Arrow functions are concise and great for simple logic, like callbacks (() => 0).

They feature lexical #this scoping, inheriting this from where they are declared.

This removes the need to manually bind (call, apply, or bind) or store this in a ...

05.12.2024 20:17 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

built-in HTML-Elements. You can roughly think of it like React Components, but with plain VanillaJS.

https://developer.chrome.com/docs/css-ui/declarative-shadow-dom

#webdevelopment #webstandard

03.12.2024 17:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Declarative Shadow DOM Β |Β  web.dev Declarative Shadow DOM is a new way to implement and use Shadow DOM directly in HTML.

What is the Shadow DOM?

The #shadowDOM is a web standard that enables encapsulation of #HTML and #CSS,
allowing developers to create components with isolated styling and structure.

Those so called web components are like custom HTML-Elements, but with all the utilities and properties of...

03.12.2024 17:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

This method merges the quick loading of the initial page with the interactivity of an application, which loads while the initial page is being loaded and then takes over.

For more see:
https://jamstack.org/
https://snipcart.com/blog/jamstack (The illustration I used)

02.12.2024 11:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
An illustration showing the different technologies (like React or Gatsby) for the corresponding abbreviation: J - JavaScript, A - APIs, M - Markup

An illustration showing the different technologies (like React or Gatsby) for the corresponding abbreviation: J - JavaScript, A - APIs, M - Markup

What is the JAMstack?

The #JAMstack is basically a pattern in webdevelopment that consists of:

J - #JavaScript
A - #APIs
M - #Markup

One popular approach is to fetch the dynamic data on the frontend (in a SPA like React) and serve your static content on the initial page load.

02.12.2024 11:00 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@chopsueey is following 5 prominent accounts