Top Tweets for #ForEach
await inside forEach doesn't wait. forEach drops the promise your callback returns.
On Node 24.22.1, forEach returned [] in 0ms. for...of returned [3, 1, 2] in 60ms, one at a time. Promise.all returned it in 31ms, all at once.
Use for...of for order and Promise.all for speed.
![dogadze's tweet photo. await inside forEach doesn't wait. forEach drops the promise your callback returns.
On Node 24.22.1, forEach returned [] in 0ms. for...of returned [3, 1, 2] in 60ms, one at a time. Promise.all returned it in 31ms, all at once.
Use for...of for order and Promise.all for speed. https://t.co/RoQjd6Enjz](https://pbs.twimg.com/media/HX4Obb8WAAA9qFM.jpg)
It’s a small quality-of-life improvement, but these kinds of IDE assists can save a bit of repetitive work.
What do you think—do you prefer the traditional enhanced for loop or forEach?
Eclipse IDE 2026-09 has a nice little improvement for Java developers.
Eclipse can now suggest converting an enhanced for loop to forEach using Quick Assist.
In the example, Eclipse transforms:
for (var p : props) { ... }
into:
props.forEach(p -> { ... });
@OyabureZakari forEach() 😁
Day 75 of #100DaysOfCode
Continuing DSA:-
-Doing STL from Striver's
-Vectors: iterators, auto, forEach loop, deletion in a vector
#LearnInPublic #buildInPublic
Day 74 of #100DaysOfCode
JavaScript:-
-Built a text-based RPG battle engine
-Base character class + 3 classes via inheritance
-Warrior/Mage/Archer, each with unique abilities and resources
DOM battle UI with animated HP bars next
#JavaScript #learningInPublic

Worked extensively with array methods that are used everywhere in modern JavaScript:
🔹 map()
🔹 filter()
🔹 reduce()
🔹 forEach()
Instead of memorizing them, I finally understood where and why to use each one.
3 DOM mistakes that got me today 🧵
1/ templist vs tempList → ReferenceError. JS is case-sensitive, no mercy
2/ querySelectorAll() gives you a NodeList. Set .style directly on it → TypeError. Use [0] or .forEach()
![himanshu_ji_y's tweet photo. 3 DOM mistakes that got me today 🧵
1/ templist vs tempList → ReferenceError. JS is case-sensitive, no mercy
2/ querySelectorAll() gives you a NodeList. Set .style directly on it → TypeError. Use [0] or .forEach() https://t.co/QUmXT7wF9K](https://pbs.twimg.com/media/HK8az2jbgAAAgdK.jpg)
Day 62 of #100DaysOfCode
JavaScript:-
-JavaScript callbacks
-forEach() method
#javascript #webdevelopment #learnInPublic
Day 61 of #100DaysOfCode
JavaScript:-
Made a password strength checker
Features:
Checks password strength (very weak to very strong)
Dynamic strength bar with different colors
Validates length, uppercase, lowercase and special characters
Revised learned js concept through this
I've done this before and I'm doing it again
Day 1 of #100DaysOfCode 📈 — this time going deeper, not just faster.
Learned JavaScript array methods today:
→forEach
→map
→filter
→reduce
→every
Small day. Compounding result.
Anyone else restarting something today?

10 JavaScript Array Methods Every Dev Must Know:
- .map() 🗺️ (Transform each element)
- .filter() 🔍 (Remove unwanted items)
- .reduce() ➕ (Accumulate values)
- .forEach() 🔄 (Loop through items)
- .find() 🎯 (Get first match)
- .some() / .every() ✅ (Check conditions)
- .includes() 🔎 (Check existence)
- .flat() 📐 (Flatten nested arrays)
- .sort() 📊 (Sort elements)
- .splice() / .slice() ✂️ (Modify arrays)
Which method did you discover late? 👇
Save this. 📌
#JavaScript #WebDev #Frontend #Programming #Tech
Day 100 of #100DaysOfCode 🌴
100 days 🎉
today — array methods. forEach, map, filter,
some, every, reduce. i won't lie though.
there's a guilt that js isn't fully complete
100 days and the language still has more to teach me.
maybe that's why learning never really stops

兄弟们,随着Google每个月赠金,都需要申领
会出现多个 10 赠金
如果你要更改结算账户的话
原来的命令只处理一个
所以,命令升级下,可以执行多个
document.querySelectorAll('.billing-account-selector > devsite-mwc').forEach(el => el.removeAttribute('disabled'))

领取Google开发者10刀赠金福利时,
勾选了“ 始终使用此结算账号”容易用超后被反薅,
但又无法取消的解决办法
造成问题的原因是,把赠金领取到试用结算账户,并且试用结算账户被关闭导致福利页面的赠金无法再被选择。
共三步解决⬇️
1、chrome按F12打开dev tools,在console中输入document.querySelector('.billing-account-selector > devsite-mwc').removeAttribute('disabled')并回车执行
2、选择结算账号并取消勾选“ 始终使用此结算账号”
3、点击申请按钮,则成功取消。

Day 7/100 #100DaysOfCode
Revisited JS fundamentals:
map() → returns new array, used for transformation
forEach() → no return, used for side effects
== vs ===
Always prefer strict equality for predictable codeSmall concepts, big impact 🚀

61- jornada do zero ao bounty 💻🏴☠️
🏴☠️HTB: jr cybersec - footprinting: servidor IMAP/POP3 (funcionamento, comandos, enumeração)
🏗️WEB-PHP: sintaxe (manipular string, arrays, arrays associativos, loop foreach)

most JS devs use forEach when they need a result.
stop that.
map, filter, reduce return values and chain together.
forEach is for side effects only.
this one switch will make your code 10x more readable.
I’ve been learning JavaScript seriously for going to a year now…
And one thing nobody talks about is how confusing simple things are at first.
Like…
slice vs splice
map vs forEach
async vs promise
Big O
Everyone explains it like it’s obvious.
Errores que puedes cometer cuando empiezas en PHP (o al menos los que cometía yo)
1️⃣ Usar == en vez de === sin pensar
PHP hace type juggling.
"0" == false es true.
Comparaciones débiles: bugs difíciles de detectar.
2️⃣ No activar strict_types
Sin declare(strict_types=1), PHP convierte tipos automáticamente.
Puedes pasar un string donde esperas int… y funciona, hasta que deja de funcionar.
3️⃣ Abusar de arrays para todo
Arrays para representar entidades, DTOs, config… todo mezclado.
Pierdes tipado, intención y control.
Los objetos existen por algo.
4️⃣ No entender el ciclo de vida de la request
Cada request es un proceso limpio, nada persiste.
Si algo se mantiene, viene de sesión, cache o DB… no de PHP.
5️⃣ Hacer queries dentro de bucles (N+1)
Un foreach con queries dentro parece inocente, en producción se convierte en cientos de queries innecesarias.
6️⃣ No usar Composer correctamente
Includes manuales, sin autoload PSR-4. El proyecto crece y ya no sabes de dónde viene cada clase.
7️⃣ No manejar bien errores y excepciones
O no capturas nada, o capturas todo sin criterio, el resultado suele ser el de errores ocultos o lógica imposible de seguir.
8️⃣ Mutar objetos sin darme cuenta
Asignas un objeto a otra variable y crees que es copia… no lo es. Ambas variables apuntan al mismo objeto: efectos laterales.
9️⃣ No entender null, isset() y empty()
isset() falla con null, empty() considera "0" como vacío.
Sin conocer estas diferencias, la lógica se rompe en edge cases.
🔟 No conocer Opcache
Optimizar código mientras PHP recompila todo en cada request.
Con Opcache activado, el rendimiento cambia completamente.
¿Qué errores cometías tú al principio? (Y no tan principio)
Day 35 of web dev cohort
Completed polyfills assignment implemented array methods from scratch
https://t.co/RWKbL0F7kb
push, pop, shift, unshift, splice, concat, slice, flat, indexOf, includes, Find, forEach, map, filter, sort, reduce
@Hiteshdotcom @piyushgarg_dev @ChaiCodeHQ
Good Evening Folks 🌄
Done 3 hrs of Web Dev .
What I learnt :
- Loops and functions in JS
- Different methods in JS :- forEach,
map , reduce
- Concept of Parent, child, children
- Concept of DOM - Manipulation
Now , I will be solving DSA questions.
Will post insights of it at night 👍.
Lesssgooooo Techies 💪

Use this for Powershell: $env:RUST_LOG='codex_api::sse::responses=trace'
codex exec --skip-git-repo-check --sandbox read-only --model gpt-5.3-codex 'ping' 2>&1 |
Select-String 'SSE event: {"type":"response.created"' |
Select-Object -First 1 |
ForEach-Object {
(($_.Line -replace '^.*SSE event: ', '') | ConvertFrom-Json).response.model
}
And this version copies the output straight into your clipboard as a Markdown table 👇
-------
powershell -NoProfile -Command "$depth=2; $root=(Get-Location).Path; $data=Get-ChildItem -Directory -Recurse -Depth $depth | % { $s=(Get-ChildItem -LiteralPath $_.FullName -File -Recurse -Force -EA SilentlyContinue | Measure Length -Sum).Sum; $rel=$_.FullName.Substring($root.Length).TrimStart('\'); [pscustomobject]@{Path=$rel; SizeGB=($s/1GB)} } | Sort-Object SizeGB -Desc; $md=@(); $md+=('| Size (GB) | Path |'); $md+=('|---:|---|'); foreach($r in $data){ $p=($r.Path -replace '\|','\|'); $md+=('| {0:N1} | {1} |' -f $r.SizeGB, $p) }; $md -join \"`n\" | Set-Clipboard"
-----
![FitHappensML's tweet photo. And this version copies the output straight into your clipboard as a Markdown table 👇
-------
powershell -NoProfile -Command "$depth=2; $root=(Get-Location).Path; $data=Get-ChildItem -Directory -Recurse -Depth $depth | % { $s=(Get-ChildItem -LiteralPath $_.FullName -File -Recurse -Force -EA SilentlyContinue | Measure Length -Sum).Sum; $rel=$_.FullName.Substring($root.Length).TrimStart('\'); [pscustomobject]@{Path=$rel; SizeGB=($s/1GB)} } | Sort-Object SizeGB -Desc; $md=@(); $md+=('| Size (GB) | Path |'); $md+=('|---:|---|'); foreach($r in $data){ $p=($r.Path -replace '\|','\|'); $md+=('| {0:N1} | {1} |' -f $r.SizeGB, $p) }; $md -join \"`n\" | Set-Clipboard"
-----](https://pbs.twimg.com/media/HA3qRETa8AAqJ3H.jpg)
@noor36758 Solving some exercises after learning setTimeout(), setInterval(), forEach(), arrow functions, addEventListener(), .filter(), and .map()
Chai aur JavaScript ☕
Day 2 done (Web Dev Cohort 2026 – Chai aur Code)
Learned:
Variables
Functions (Different Types)
Array Index Access
push | shift | unshift
map & forEach
Quote by @piyushgarg_dev Sir:
“Tum JavaScript ke saath nahi kheloge, toh wo khelegi tumhare saath.”

@_ita_chi In js map, create a new array. Foreach is used to do actions
What's the difference between .map() and .forEach()?
@OsokoyaF yeah.. foreach loop it looks totally different with that weird syntax will learn it and I'm planning to grind the basics... connected from my end..
“Stuck managing collections? Let for-each free you! Simplify iteration, reduce errors, and write cleaner code. #CodingTips #ForEach #CleanCode”

How to iterate an array to count elements PHP? https://t.co/eLGYNdkDSs #arrays #php #multidimensionalarray #foreach

today on: "If you own an hammer everything is a nail"
Why using a foreach if you can do the same in 40 lines more code, making it unreadable and hard to follow with a beautiful modern tool like .reduce() ?
#js #foreach #arrayreduce
Last Seen Hashtags on Sotwe
atlantameets
Seen from United Kingdom
millenialsvsgenZ
Seen from Korea
guyFucksShemale
Seen from Turkey
incestfamily
Seen from Germany
brosis
Seen from Singapore
hijabi #deepthroat
kastamonutravesti
Seen from Turkey
بارك_الله_لكم_وتقبل_إحسانكم
Seen from Korea
lüleburgaz
Seen from Turkey
SaatnyaBantuImogiri
Seen from Korea
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.2M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers




































