Search

Nalezeno "reduce": 261

Bitcoin Mining Helps Oil Companies Reduce Carbon Footprint


Natural gas acquired as a byproduct of oil extraction has become synonymous with wasted energy. In certain areas, drilling companies are unable to find a profitable market for the excess fuel. It’s often vented into the atmosphere. Startups are now offering on-site systems that utilize...

Tips for rolling your own lazy loading


You may have heard (or even issued the call) that “we can just use lazy loading!” when looking for a way to slim down a particularly heavy web page. Lazy loading is a popular technique for gradually requesting images as they come into view, rather than all at once after the HTML of the page...

Getting to Know the useReducer React Hook


useReducer is one of a handful of React hooks that shipped in React 16.7.0. It accepts a reducer function with the application initial state, returns the current application state, then dispatches a function. Here is an example of how it is used; const [state, dispatch] = useReducer(reducer...

Getting to Know the useReducer React Hook


useReducer is one of a handful of React hooks that shipped in React 16.7.0. It accepts a reducer function with the application initial state, returns the current application state, then dispatches a function. Here is an example of how it is used; const [state, dispatch] = useReducer(reducer...

How to Cold Store Your Cryptocurrency for Safekeeping


If you’re new to the crypto scene you might have heard about people moving their assets into cold storage or cold wallets but were unsure exactly what this entails. Simply put, it means storing your crypto offline to reduce access to hackers. Here’s how you can easily freeze your coins...

PR: TRCE – Crypto Exchange Set To Launch In Q4 2019


The Real Cryptocurrency Exchange (TRCE) is a Seychelles Cryptocurrency company headquartered in Buenos Aires, Argentina (2019) with plans to open offices in Spain (2020) and Singapore (2021). The mission at TRCE is to reduce the access gap in the Cryptocurrency Market worldwide, primarily focusing...

Reducing motion with the picture element


Here’s a bonafide CSS/HTML trick from Brad Frost and Dave Rupert where they use the <picture> element to switch out a GIF file with an image if the user has reduced motion enabled. This is how Brad goes about implementing that: <picture> <!-- This image will be loaded if...

Saudi Arabia States Oil Producers are Looking to Reduce Inventories


One commodity that almost always sends investors into a bit of a tizzy is oil, and due to the current fragility in the oil market, there has been a lot of concerns from investors all over the world. In a recent report, Bank of America had even stated that the price of Brent crude could … The...

Asian Stocks Show Upward Trend as Trade War Worries Ease


The US President Donald Trump seems to have softened his stand and is looking for a compromise from China that resulted in the Asian stocks rising from a 14 week low. The Asian stocks also rode high on the optimism that the Beijing government will inject more stimulus to the Chinese economy as they...

Using Array reduce


Every developer who specializes in any programming language will tell you there’s a powerful tool the language provides that they rarely use and wish they knew more about. For me, it’s Array.prototype.reduce. I quite enjoy the other Array methods like map, filter, and find, but reduce...

The Thinking Behind Simplifying Event Handlers


Events are used to respond when a user clicks somewhere, focuses on a link with their keyboard, and changes the text in a form. When I first started learning JavaScript, I wrote complicated event listeners. More recently, I've learned how to reduce both the amount of code I write and the number...

Earth day, API’s and sunshine.


Cassie Evans showcases some really nifty web design ideas and explores using the API provided by the company her team over at Clearleft recently hired to cover their building's roof with solar panels. Cassie outlines her journey designing a webpage that uses the API to populate some light data...

An Illustrated (and Musical) Guide to Map, Reduce, and Filter Array Methods


Map, reduce, and filter are three very useful array methods in JavaScript that give developers a ton of power in a short amount of space. Let’s jump right into how you can leverage (and remember how to use!) these super handy methods. Array.map() Array.map() updates each individual value in...

Chrome Lite Pages


The Chrome team announced a new feature called Lite Pages that can be activated by flipping on the Data Saver option on an Android device: Chrome on Android’s Data Saver feature helps by automatically optimizing web pages to make them load faster. When users are facing network or data constraints...

The Bottleneck of the Web


Steve Souders, "JavaScript Dominates Browser CPU": Ten years ago the network was the main bottleneck. Today, the main bottleneck is JavaScript. The amount of JavaScript on pages is growing rapidly (nearly 5x in the last 7 years). In order to keep pages rendering and feeling fast, we need to focus...

Using React and XState to Build a Sign In Form


To make a sign in form with good UX requires UI state management, meaning we’d like to minimize the cognitive load to complete it and reduce the number of required user actions while making an intuitive experience. Think about it: even a relatively simple email and password sign in form needs...

Understanding the Almighty Reducer


I was reently mentoring someone who had trouble with the .reduce() method in JavaScript. Namely, how you get from this: const nums = [1, 2, 3] let value = 0 for (let i = 0; i < nums.length; i++) { value += nums[i] } ...to this: const nums = [1, 2, 3] const value = nums.reduce((ac, next)...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace