#Javascript
113 notas · última:
LiveView Is Not a Zero-JS Framework, It’s a Zero-Boring-JS Framework
The post argues that LiveView can cover most app needs without much JavaScript, while still leaving client-side code for richer browser-only features and hooks.
Pin your dependencies in package.json
The page explains how dependency version ranges work in package.json and argues for exact versions to keep JavaScript projects consistent, reliable, and safer across environments.
4 tools to supercharge your Jest Testing and increase your productivity while testing
The page recommends four Jest additions to speed up feedback, narrow test runs, improve assertions, and keep console output clean during development.
The evolution of fullstack engineers
The episode traces how fullstack work widened from front end and back end split to broader, more flexible roles shaped by JavaScript, APIs, frameworks, security, and deployment needs.
The fate of “small” open source
The post argues that LLMs make small utility libraries less necessary, which weakens both their reason to exist and their role in teaching developers. Open source still matters, but the author thinks its value is shifting toward larger, more inventive, or niche work.
A crash course in memory management
Explains memory as fixed-size boxes with addresses, contrasts JavaScript’s automatic garbage collection with manual allocation and freeing in C, and links that tradeoff to performance and bugs.
33 JavaScript Concepts Every Developer Should Know
Repository with 33 core JavaScript concepts, each with explanations, practical examples, and curated resources, plus extensions on language mechanics, objects, memory, events, and data.
how fast is javascript? Simulating 20,000,000 particles
The text shows, step by step, how the JavaScript simulation improves by using TypedArrays, SharedArrayBuffers, web workers, double buffering, and a final shader to reach 20 million particles.
Applying SOLID Principles in JavaScript and TypeScript Framework
The article shows how SOLID principles apply in React and Angular with JS and TS examples, using refactors to separate responsibilities, ease extension, and reduce coupling.
Top 7 React Hooks you must know
The text presents seven React hooks and summarizes what each one is for: state, memoization, unique ids, callbacks, effects, refs, and context, with a focus on more modular and maintainable code.
Why React Won the Front-End Race
The page argues that React won because it has Meta’s backing, a flexible component model, the Virtual DOM, hooks, a huge ecosystem and React Native, even if all that adds complexity.
Dependency Injection made simple
The page explains dependency injection as passing an object to the constructor or setter of a dependent class, which decouples the code, makes testing easier, and uses interfaces in strongly typed languages.
Daily JavaScript Challenge #JS-126: Rotate Matrix 90 Degrees Clockwise
JavaScript challenge asks for a function that rotates an N x N matrix 90 degrees clockwise, performs the operation in-place, and tests the solution on the provided cases.
37 Tips from a Senior Frontend Developer
The text brings together career and practice advice for frontend: mastering fundamentals, practicing, asking for help, communicating value, learning continuously, and collaborating well with the team.
17 Tips from a Senior React Developer
The text gathers 17 tips for learning React more clearly: mastering JavaScript, using the documentation, building projects, avoiding too many libraries, abstractions too early, and frameworks without need.
Handle User Interactions: Five Essential Event Bindings in Angular 18
Ugo Chukwuebuka walks through Angular 18's input, blur, change, click, and submit event bindings with a working form example for each.
How to build scalable micro-frontends with Vike and Vite
A tutorial pairing Vike's server-side rendering with vite-plugin-federation to share a component across independent Vue and React apps at runtime.
99% of frontend devs don't use this
Antonio Moruno Gracia argues data-* attributes beat closures inside React's .map() when React.memo or useCallback need a stable function reference to actually work.
The Secret Life of JavaScript: The Generator
Explains JavaScript generator functions through a teaching dialogue: the yield keyword, the {value, done} object, the iterator protocol, and passing values back in via .next().
Should Junior Developers Still Learn JavaScript the Hard Way?
Argues junior developers should still learn JavaScript fundamentals — closures, scope, the event loop — before frameworks, blaming boring teaching, not the material, for why it feels pointless.
Let's make the worst htmx ever!
The article builds a tiny htmx clone in JavaScript, then adds triggers, targets, swapping, custom events, server headers, and plugins through a scan/send/swap loop.
Practical Introduction to Async Generators in JavaScript
The article explains how generators pause and resume execution, why async generators fit streamed data, and how they support a modular ETL pipeline that processes rows one at a time.
Why would anyone need JavaScript generator functions?
The article explains that generators are a low-level JavaScript tool useful for lazy iteration, infinite sequences, and message passing between functions, even if many developers rarely need them directly.
Prototype-Based Programming
In prototype-based programming there are no classes. Objects inherit directly from other objects through a prototype link.
Image Flow 0.9 – Cool Javascripts By Ethical Swinger Coders
The page presents Image Flow as a Cover Flow-inspired JavaScript effect with keyboard, mouse wheel, and drag navigation. It lists no dependencies, free use, and small size, and notes that lightbox support is not built in.
10 Refactorings to Boost your Clean Code Skills
The article argues that clean code grows from small refactorings. It groups common changes into extract and move operations, then shows how each one helps make code clearer, safer to change, and easier to read.
JavaScript Visualized: Prototypal Inheritance
Explains how JavaScript objects inherit through the prototype chain, why built-in methods are available on strings, arrays, and objects, and how constructor functions, classes, and Object.create relate to that model.
‘The best thing we can do today to JavaScript is to retire it,’ says JSON creator Douglas Crockford
Douglas Crockford says JavaScript has become a barrier to progress because the language and its ecosystem keep growing more complex, and he argues the web needs a new language and a redesigned browser interface.
Code Smell 155 — Multiple Promises
Waiting for promises one by one creates indeterminism and a performance bottleneck. If all results are needed, they should be awaited together with Promise.all.
The Simplest Case for Unit Tests: Pure Functions
Pure functions are easy to cover with unit tests because their output depends only on inputs. The article shows how tests expose edge cases in strings, money calculations, and math operations.
11 Powerful JavaScript One-Liners Worth Knowing
A set of 11 JavaScript one-liners for counting characters, checking empty objects, waiting, comparing dates, redirecting, handling touch support, DOM insertion, shuffling arrays, reading selected text, random booleans, and averaging arrays.
The Case for C# and .NET
The page argues that server-side JavaScript brings dependency sprawl, security risk, weaker performance, and productivity costs, while modern .NET and C# offer a more secure, faster, and lower-maintenance backend path.
8 new JavaScript features to start using today
The article reviews eight ECMAScript 2022 features, including class fields, regexp match indices, top-level await, negative indexing with .at(), hasOwn, static blocks, and Error cause.
Let’s Make a QR Code Generator With a Serverless Function!
The article shows how to move QR code generation into a DigitalOcean serverless function so the heavy qrcode package stays off the main site bundle and the function can be called through a URL.
JavaScript Higher-Order Functions: A Complete Guide
Explains how higher-order functions in JavaScript rely on first-class functions and shows patterns for passing, returning, and combining functions, plus common built-in uses.
5 Tips For Writing Cleaner Code
The page gives five coding habits for clearer JavaScript: avoid unnecessary nesting with early returns, destructure object parameters, prefer pure functions, keep functions focused, and use meaningful variable names.
JavaScript Concepts Every Programmer Should Know
The article reviews core JavaScript ideas that make development easier, including arrow functions, reduce, asynchronous execution, async scripts, async/await, and promises.
Object-Oriented Programming Explained Like Never Before
The article defines OOP in JavaScript and walks through classes, objects, abstraction, encapsulation, inheritance, and polymorphism with car and student examples.
The Array Methods Coming to JavaScript in 2022
The article explains a Stage 3 proposal that adds non-destructive array methods to JavaScript so code can copy an array and then reverse, sort, splice, or replace one item without mutating the original.
Memoization in JavaScript
The article introduces memoization as a speed optimization technique that caches results for repeated inputs, then shows a simple `myMemoize()` wrapper for reusing computed outputs and optionally binding context.
