#techtweets
`git config --global --add --bool push.autoSetupRemote true`, starting Git 2.37.0, will automatically set the up the upstream branch, and will save you from `git push --set-upstream origin feat/awesome-feature`

#techtweets #day196
April 29, 2025 at 6:25 PM
React 18 introduce `useTransition` and `setTransition` to allow developers to handle non priority updates.

The code inside the hook or the method will be slightly delayed to keep your UI responsive, even if you might not see the difference.

#techtweets #day101
April 29, 2025 at 6:19 PM
[ Pre-order, Amazon ] Bose New QuietComfort Ultra Bluetooth Headphones (2nd Gen), Wireless Headphones with Spatial Audio, Over Ear Noise Cancelling with Mic, Up to 30 Hours of Play time, Black

List Price: $449.00

#BoseHeadphones #techtwitter #ad #amazonfinds2025 #technology #techtweets #amazonus
Bose New QuietComfort Ultra Bluetooth Headphones (2nd Gen), Wireless Headphones with Spatial Audio, Over Ear Noise Cancelling with Mic, Up to 30 Hours of Play time, Black
Awaken your sound with QuietComfort Ultra Headphones (2nd Gen). Obsessively engineered with Bose’s best noise cancellation for headphones, plus spatialized audio to expand sound, every beat hits harder and every melody takes up more space. Bose Immersive Audio takes what you’re hearing out of your head and places it in front of you for a more natural listening experience. CustomTune technology personalizes your audio by analyzing the shape of your ears and adapting the sound so everything you listen to hits exactly as it should. With up to 30 hours of battery life (23 with Immersive Audio)* and unrivaled comfort from luxe materials, these wireless Bluetooth headphones let you sink deeper into your favorite songs and sounds. The earcups gently hug your ears, and the headband evenly distributes pressure while sleek, polished metal arms add a stylish touch. Easily pair two devices simultaneously with Bluetooth multipoint connectivity and keep track of what you have paired in the Bose app. * Testing conducted by Bose with active noise cancelling on and audio playback at a loudness of 75dBSPL. Battery life varies based on settings and usage.** Quick charge testing conducted by Bose by charging battery-depleted headphones for 15 minutes, then resuming audio playback at a loudness of 75dBSPL. Battery life varies based on settings and usage. Time to achieve fully charged headphones was determined by charging battery-depleted headphones to 100%.
amzn.to
September 5, 2025 at 6:28 PM
[ Amazon, Pre-order ] Belkin MagSafe Charger Compatible, 2-in-1 Charging Station, Qi2.2 25W Magnetic Wireless Charger Dock, Foldable Stand, with 5W USB-C Port, for iPhone 16/15/14, AirPods (45W Adapter Included)

Price: $59.99

#technology #techtweets #ad #amazonus #amazonfinds #apple #GooglePixel10
Belkin MagSafe Charger Compatible, 2-in-1 Charging Station, Qi2.2 25W Magnetic Wireless Charger Dock, Foldable Stand, with 5W USB-C Port, for iPhone 16/15/14, AirPods (45W Adapter Included)
Power your iPhone from 0-50% in just 29 minutes with this compact, foldable charger, perfect for home use or on the go. Featuring ChillBoost™, our passive cooling technology engineered to reduce heat, you can safely fast charge 2 devices simultaneously (iPhone and AirPods). And with an extra USB C port, you can charge a smartwatch or other device. Plus, it comes with the coverage needed to ensure your peace of mind.*** *Based on internal testing, charging delivers up to 25W of power, compared to a 5W Qi charger. Actual results will vary. **Based on internal testing. Belkin Qi2 25W wireless technology charges iPhone 16 from 0-50% in 29 minutes using iOS 26 or newer. Charge time varies with environmental factors; actual results will vary. ***Belkin will repair or replace electronic devices damaged by an electrical charge while properly connected to this product, up to $2500/€2000/£1500. Visit belkin.com/cew for details. Belkin is an established accessories market leader creating high-quality, innovative tech solutions for 40 years. Specifications: 25W fast charging – Qi2 v2.2 MPP certified 5W BPP Qi pad for AirPods Hinge and adjustable viewing angle (65 degrees for iphone)​ Compatibility: iPhone 16 Pro Max, iPhone 16 Pro, iPhone 16 Plus, and iPhone 16, iPhone 15, iPhone 15 Plus, iPhone 15 Pro, iPhone 15 Pro Max, iPhone 14 Series, iPhone 13 Series, iPhone 12 Series, AirPods 4th Gen, AirPods 3rd Gen, AirPods Pro 2nd Gen, AirPods Pro 3rd Gen, AirPods Pro 4th Gen, Google Pixel 10 Pro XL, Pixel 10 Pro Fold, Pixel 10 Pro, Pixel 10, and more. Housing (excluding cable and power adapter) is made of a minimum of 85% post-consumer recycled plastic. 100% plastic-free packaging 2-year warranty; $2,500 CEW*** Package Includes: UltraCharge 2-in-1 Convertible Magnetic Charging Stand 45W USB-C Power Supply Unit 60W 5ft / 1.5M USB C to USB C cable
amzn.to
August 23, 2025 at 1:04 AM
`useWhyDidYouUpdate("MyComponent", props);`

This hook will let you know from the console the attributes of an object that have been updated, causing rerendering.

You should use it to avoid unnecessary renders.

#techtweets #day200
April 29, 2025 at 6:25 PM
When writing JavaScript, you should always pick functions over classes.

For the same result, the code generated by Babel with be smaller with functions.

#techtweets #day199
April 29, 2025 at 6:25 PM
You can use intersection types to extends an existing TypeScript type.

It is useful to reuse and factorize some pieces of definitions.

#techtweets #day198
April 29, 2025 at 6:25 PM
With ECMAScript 2022, JavaScript now has private fields in classes.

You need to prefix an attribute or a method with # to make it private.

#techtweets #day197
April 29, 2025 at 6:25 PM
The object-fit CSS property will keep your image with a good ratio and the box will either contain the image perfectly or crop it.

#techtweets #day195
April 29, 2025 at 6:25 PM
High order component add a generic behavior to a component.

It can be helpful to wrap an element with a descriptive tooltip.

#techtweets #day194
April 29, 2025 at 6:25 PM
You can load polyfills with the `nomodule` attribute: modern browser will ignore the script while old will not understand the `nomodule` attribute.

#techtweets #day193
April 29, 2025 at 6:25 PM
To create truly readonly objects in TypeScript, you can use the `as const` suffix to a variable declaration.

Any property or sub-property will then become readonly.

#techtweets #day192
April 29, 2025 at 6:25 PM
The padStart and padEnd functions are adding a specific character at the start or the end of your string to reach a specific string length.

#techtweets #day191
April 29, 2025 at 6:25 PM
Get the current branch name of a git repository in a single command: `git rev-parse --abbrev-ref HEAD`

It can give you superpowers when creating a shell script.

#techtweets #day190
April 29, 2025 at 6:25 PM
With the CSS aspect-ratio, you can define the size of an element without knowing about the final rendered width of your element.

It might help you avoid layout shifts

#techtweets #day189
April 29, 2025 at 6:25 PM
`setInterval` is not directly compatible with React, as it needs to match start and stop with a component mounting and unmounting.

The hook that solves that uses refs and effects to manage the interval correctly.

#techtweets #day188
April 29, 2025 at 6:25 PM
With facades, you can improve your page performances: by loading a lite version of a third party script -such as YouTube, Twitter, and more-, you can lower the initial load time of the page.

Learn more on#techtweets #day187

web.dev/third-party-fa…
Lazy load third-party resources with facades  |  Lighthouse  |  Chrome for Developers
Learn about the opportunities to lazy load third-party resources with facades.
web.dev
April 29, 2025 at 6:24 PM
Did you know that you can group your TypeScript code inside namespaces?

It will act like an object, but it will also merge multiple definitions if included in the same namespace

#techtweets #day186
April 29, 2025 at 6:24 PM
There is a `showPicker()` method on HTML `` elements that can open the detailed view for `date`, `month`, `week`, `time`, `datetime-local`, `color`, and `file` types.

This can also be triggered for ``.

#techtweets #day185
April 29, 2025 at 6:24 PM
Find files (and lines) where a specific text is in tracked files with git grep:

`git grep --heading --line-number 'text to find'`

--heading will group lines by file
--line-number (or -n) will show... line numbers.

#techtweets #day184
April 29, 2025 at 6:24 PM
The CSS order property allow you to display items in a different order.

It is very helpful on responsive designs or to priorise the right information for screen readers -a title is more important than an image.

Use it with care however.

#techtweets #day183
April 29, 2025 at 6:24 PM
The useKeyPress hook returns true when a specific key is pressed.

`const forward = useKeyPress("w");`

You might want to use it for a `wasd` navigation for example.

#techtweets #day182
April 29, 2025 at 6:24 PM
There is a new way to make your browser to preload data: you can use the early hints HTTP response.

You will provider the browser a first response with files to load while generating the page.#techtweets #day181

developer.mozilla.org/en-US/docs/Web…
103 Early Hints - HTTP | MDN
The HTTP 103 Early Hints informational response may be sent by a server while it is still preparing a response, with hints about the sites and resources that the server expects the final response will link to. This allows a browser to preconnect to sites or start preloading resources even before the server has prepared and sent a final response. Preloaded resources indicated by early hints are fetched by the client as soon as the hints are received.
developer.mozilla.org
April 29, 2025 at 6:24 PM
Typescript decorators are a simple way to apply an high order function on a method or a class.

It can be used to measure a method's performance or inject additional parameters among many other use cases.

#techtweets #day180
April 29, 2025 at 6:24 PM