#Javascript
113 notas · última:
How to fix decimals arithmetic in JavaScript
Explains why decimal sums and subtractions can produce unexpected results in JavaScript, and shows two fixes: decimal libraries or scaling values before computing.
Learn CRUD Operations in JavaScript by Building TODO App
The page explains CRUD as create, read, update, and delete, then walks through two JavaScript projects: a social media post demo and a todo app that use form validation, template literals, and local storage.
How to write unit tests
The article explains what unit tests are, how they help with validation, refactoring, modularity, and speed, and suggests starting with scaffolding, mocking, structure, and test-driven development.
Introduction to Test-Driven-Development in React for Beginners
The article shows TDD in React by first writing tests for a Counter component, then implementing the component and an Increase button in App.js until the tests pass.
How To Solve Coding Problems Like A Pro
The article lays out a four-step approach to solving coding problems: understand the problem, divide it into subproblems, research what is missing, and write pseudocode before coding.
Automatically Format your code on Git Commit using Husky, ESLint, Prettier in 9 minutes
The article shows how to automate code formatting on commit with Husky, ESLint, Prettier, and lint-staged so a project keeps a consistent style when developers commit code.
8 techniques to write cleaner JavaScript code
The article lists eight ways to make JavaScript easier to read and maintain: pure functions, named or object parameters, destructuring, constants for hard-coded values, method chaining, promises, and async/await.
10 Awesome JavaScript Shorthands
The article collects ten JavaScript shorthands that reduce boilerplate in array handling, string interpolation, loops, object lookup, type conversion, and default values.
Temporal: getting started with JavaScript’s new date time API
The post introduces Temporal as a newer JavaScript date time API, explains its time zone and calendar model, and shows how its classes handle exact time, wall-clock time, and arithmetic.
Functional vs Object-Oriented Programming
The article defines programming paradigms, contrasts functional programming with OOP, shows a simple form example in both styles, and says most real problems use a mix of the two.
Replace axios with a simple custom fetch wrapper
The page argues that, in the browser, a small custom wrapper around fetch can replace axios for most needs while keeping the API simpler, smaller, and easier to maintain.
Extract Functions Arguments using Destructure in JavaScript
The page shows how to collect function arguments with rest parameters and unpack them with array destructuring, while distinguishing parameters, arguments, and the `arguments` object.
Iteration: A Gentle Introduction to Functional Programming
The page shows how to move from loops to reusable functional tools like forEach, map, prop, curry, and compose, making dependencies explicit and code easier to test and combine.
A Guide for Contributing to Any Open Source JavaScript Project Ever
The guide suggests choosing a project you use, starting with easier issues or documentation, reading CONTRIBUTING.md, and focusing only on the code tied to the issue you picked.
Stranger Things, JavaScript Edition
The post explains several surprising JavaScript behaviors, including map with parseInt, string coercion that produces 'banana', truthy and falsy values, loose array equality, and arithmetic coercion rules.
How to Use the JavaScript Fetch API to Get Data
The article shows how fetch() makes GET requests simpler than XMLHttpRequest, then demonstrates turning JSON into a list of Random User results and using Request objects for POST-style calls.
Refactoring: My 6 favorite patterns
The post outlines six refactoring patterns that improve readability, maintainability, and parameter handling, and shows how extracting logic into objects or methods makes code easier to change.
Implementando internacionalização (i18n) com JavaScript
O texto explica i18n e L10n, mostra por que internacionalizar software e apresenta opções em JavaScript para formatar números e datas, detectar idioma e lidar com dados de localidade.
2014’s JavaScript versus today’s (or: How my old code holds up today)
The author compares his 2014 JavaScript with his current practice and says his code has become cleaner through better structure, clearer functions, JSON-based data handling, templating, and heavier use of libraries.
Essential JavaScript Interview Questions
A list of JavaScript interview prompts covering scope, hoisting, strict mode, coercion, closures, recursion, async timing, and DOM traversal, with no answers shown in the captured text.
Tudo que você gostaria de saber sobre plugins jQuery e ninguém teve paciência de explicar
O texto explica por que criar plugins jQuery, como usar $.fn, evitar conflitos com $, manter encadeamento, lidar com opções e recorrer a padrões como jQuery Boilerplate e Widget Factory.
Entendendo Programação Funcional em JavaScript de uma vez
O artigo apresenta a programação funcional em JavaScript por meio de funções puras, higher-order functions, map, filter, reduce, currying e compose, com exemplos em ES5 e ES6.
VerbalExpressions/JSVerbalExpressions
JavaScript library that helps construct difficult regular expressions. It includes browser and Node.js setup, test and build commands, examples, API docs, and contribution notes.
10 Habits of a Happy Node Hacker (2016)
Heroku lists ten habits for app developers using Node.js: start with npm init, lock dependencies, use ES6, keep filenames lowercase, cluster apps, rely on environment variables, manage garbage collection, hook npm scripts, ignore generated files, and simplify builds and code.
The future of JavaScript is (almost) now
JavaScript has moved from browser scripting to a broad cross-platform ecosystem. ES6, better tools, and evergreen browsers are pushing the language deeper into web, mobile, server, and enterprise development.
Little helpers: a tweet-sized JavaScript templating engine
The post argues that for small, short-lived apps and messages, a tiny homemade JavaScript templating helper can be enough, and shows a tweet-sized function that replaces {placeholders}.
Common Misconceptions About Inheritance in JavaScript
The article argues that prototypal inheritance is distinct from classical inheritance, and that JavaScript’s usual object patterns are literals, factories, delegation, and composition rather than classes or constructors.
Keeping it simple: coding a carousel
The article argues for a carousel built with minimal HTML, CSS and JavaScript, using one active container class, one current item, and progressive enhancement instead of layered complexity.
Ember.js: 5 great resources for Rails developers
The page points Rails developers to five starting resources for learning Ember.js: a tutorial, a concepts writeup, a migration video, a Rails API example, and a resource collection.
JavaScript World Domination
The article argues that JavaScript spread from the browser to servers, tooling, desktop apps, and embedded devices because of standards, faster engines, and a growing ecosystem around node.js and related tools.
13 Factors to Consider While Choosing a JavaScript Charting Library
The article lists practical criteria for choosing a charting library, from browser and device support to customization, performance, export options, pricing, support, and the risks of small open source projects.
The Philosophy of Ramda
Ramda says it is a practical functional library for JavaScript programmers, built around small composable functions, immutable data, a shallow API, and parameter order that supports currying.
Java vs. Node.js: An epic battle for developer mind share
The article compares Java and Node.js across tooling, libraries, debugging, speed, threading, and code reuse, arguing that Java is stronger in mature infrastructure while Node.js wins on ubiquity and simplicity.
2015: The End of the Monolithic JavaScript Framework
The post argues that front-end development should move away from monolithic JavaScript frameworks toward smaller libraries and components, with less abstraction, more reuse, and stronger shared standards.
Essential JavaScript Links
A curated list of JavaScript resources, tools, libraries, communities, and people, selected as must-have links and grouped by use case, from reading and viewing to build, deployment, and discussion.
5 functions of the Console object you didn’t know
The page highlights five lesser-known Console methods for debugging in Chrome: assert, table, profile, group, and time, and briefly explains what each one does.
i18next para Internacionalização
O texto apresenta o i18next como solução para traduzir conteúdo em vários idiomas, usando JSON, data-i18n, detecção de língua e fallback para alternar entre português, inglês e espanhol.
Learning much javascript from one line of code
The post breaks down a one-line snippet that outlines every page element in a random color, using it to explain selector APIs, array-like objects, outlines, and bitwise tricks.
The Top 10 Mistakes AngularJS Developers Make
The article lists common AngularJS pitfalls around app structure, dependency injection, controllers, watchers, scope, testing, and jQuery, with practical guidance for scaling apps.
It Is Time to Learn JavaScript
The author argues that JavaScript has matured into a useful language across client, mobile, and server development, and that learning it can improve how developers write code in other ecosystems too.
