Stop using this:
if (obj.hasOwnProperty('key'))
Start using this:
if (Object.hasOwn(obj, 'key'))
Why it's better:
โ hasOwnProperty can be overridden
or shadowed on the object itself
โ Breaks on Object.create(null) objects
since they don't inherit from Object
โ Object.hasOwn() is static โ
always safe, always reliable
One of those subtle JS traps that
only bites you in production.
Modern browsers + Node 16.9+ โ
Find more JS tricks like this โ
https://t.co/9KP2xSCU6d
React devs โ this is why you get stale
API responses overwriting fresh ones:
You're not cancelling old fetch calls.
Here's the fix:
useEffect(() => {
const controller = new AbortController()
fetch('/api/search?q=' + query, {
signal: controller.signal
})
.then(res => res.json())
.then(data => setResults(data))
.catch(err => {
if (https://t.co/r1DVMUUpIf === 'AbortError') return
console.error(err)
})
return () => controller.abort()
}, [query])
Every time query changes, the old
request gets cancelled before the
new one fires.
No race conditions. No stale data.
Native browser API โ zero dependencies.
React devs โ this is why you get stale
API responses overwriting fresh ones:
You're not cancelling old fetch calls.
Here's the fix:
useEffect(() => {
const controller = new AbortController()
fetch('/api/search?q=' + query, {
signal: controller.signal
})
.then(res => res.json())
.then(data => setResults(data))
.catch(err => {
if (https://t.co/r1DVMUUpIf === 'AbortError') return
console.error(err)
})
return () => controller.abort()
}, [query])
Every time query changes, the old
request gets cancelled before the
new one fires.
No race conditions. No stale data.
Native browser API โ zero dependencies.
Found this on TechLogHub and it's a genuinely
different take on AI image tools:
Removerized โ AI image toolkit that runs
entirely in your browser.
No uploads. No servers. No data leaves
your machine.
What it does:
โ Background removal
โ AI-powered image upscaling
โ Batch processing
Built on ONNX Runtime Web + WebAssembly.
Models are cached in IndexedDB after
first load โ so it works offline too.
For devs who keep recommending privacy-first
tools to clients โ this one's worth bookmarking.
๐ https://t.co/1mIyVv57QB
You don't need a profiling library for quick
performance checks.
This is built into every browser and Node:
console.time('fetch-users')
await fetchUsers()
console.timeEnd('fetch-users')
// fetch-users: 143.21ms
Wrap any block of code.
Get exact milliseconds in your console.
Zero setup. Zero dependencies.
Great for spotting slow DB calls, API fetches,
or render functions before reaching for
heavier tools.
Stop writing this:
const last = arr[arr.length - 1]
Start writing this:
const last = https://t.co/q38TTkGkKH(-1)
https://t.co/ZgU2lZMR0c() accepts negative indices.
Clean, readable, and works on strings too:
"techloghub".at(-1) // "b"
No more off-by-one math just to grab the last element.
Supported in all modern browsers + Node 16.6+
Stop writing this:
const last = arr[arr.length - 1]
Start writing this:
const last = https://t.co/q38TTkGkKH(-1)
https://t.co/ZgU2lZMR0c() accepts negative indices.
Clean, readable, and works on strings too:
"techloghub".at(-1) // "b"
No more off-by-one math just to grab the last element.
Supported in all modern browsers + Node 16.6+
Found this on TechLogHub's open-source listings and it's a genuinely different take on terminals:
Horizon โ GPU-accelerated terminal on an infinite 2D canvas.
Instead of tabs/splits, you place terminals anywhere on a zoomable canvas. Built-in AI agent panels (Claude Code, Codex, Gemini CLI) run alongside your shells, with a live token-usage dashboard.
Rendering runs on Alacritty's engine, so it's fast โ 24-bit color, full Kitty keyboard protocol support.
Worth a look if multi-terminal juggling has ever broken your flow:
https://t.co/F0gPzvurrb
Most devs preload fonts but forget this one:
<link rel="preconnect" href="https://t.co/gX6w4j5IOr">
If you're hitting a third-party API, CDN, or analytics domain on every page load, preconnect tells the browser to start the DNS+TLS handshake early.
Saves 100-300ms before the actual request even fires.
Free win, one line.
Iโm scaling TechLogHub โ a curated platform for discovering tools, software, and open-source projects built by the community.
๐ก What is TechLogHub?
โข ๐ง Tech Stack Insights โ See what frameworks and tools power each product
โข ๐ Open Source Spotlight โ High-impact OSS projects
โข ๐ Builder Resources โ Free roadmaps, cheat sheets & code snippets
โ Add your product here:
https://t.co/mgQYeOAxXc
๐ OSS Spotlight: **HyperDX** on TechLogHub
Open-source observability platform that brings together logs, metrics, traces, errors, and session replays โ all in one beautiful interface.
Built on ClickHouse + OpenTelemetry for speed and scale. Self-hosted and developer-first.
Featured on TechLogHub ๐ https://t.co/ErVwx47uIH
Star the repo: https://t.co/lf41FyzxvT
Whatโs your favorite observability tool? Drop it below ๐
#OpenSource #Observability #DevTools #Monitoring #SelfHosted
๐ **65+ Free Developer Tools on TechLogHub**
All browser-based โข No signup โข No limits โข 100% free forever
Highlights:
โข JSON Formatter & Validator
โข Base64 Encoder/Decoder
โข SQL Formatter
โข cURL โ Fetch / Axios
โข JWT Decoder
โข llms.txt Generator (for AEO/GEO)
โข Slug Generator, Regex Tester, Image Tools & more
Work offline after loading. Your data never leaves your browser.
Try them now โ https://t.co/9TUJCXFgek
Whatโs your most-used free dev tool? Drop it below ๐
#FreeTools #DevTools #WebDev #Productivity
๐ OSS Spotlight: **esc-editor** by Ayush Parida
A feature-rich, TypeScript-friendly WYSIWYG editor for React with robust table support, image resizing, dark mode, and clean custom properties.
Perfect for building modern content editors, dashboards, or any app that needs powerful rich-text capabilities.
Featured on TechLogHub ๐ https://t.co/uJqwsYh5IW
Star the repo: https://t.co/5vkJPNDzkn
Whatโs your favorite rich-text editor? Drop it below ๐
#OpenSource #React #WYSIWYG #DevTools #IndieDev
๐ OSS Spotlight: **esc-editor** by Ayush Parida
A feature-rich, TypeScript-friendly WYSIWYG editor for React with robust table support, image resizing, dark mode, and clean custom properties.
Perfect for building modern content editors, dashboards, or any app that needs powerful rich-text capabilities.
Featured on TechLogHub ๐ https://t.co/uJqwsYh5IW
Star the repo: https://t.co/5vkJPNDzkn
Whatโs your favorite rich-text editor? Drop it below ๐
#OpenSource #React #WYSIWYG #DevTools #IndieDev
Be honest ๐
๐ฐ If you could go back to 2010, what would you do?
A) Buy Tesla stock ๐
B) Buy Bitcoin โฟ
C) Start a tech company ๐ป
D) Do all three ๐คฏ
@elonmusk