9999px engineering
Capucine Aubert
路
il y a 1 mois
CSS
馃 2.8
WTF score
CSS
.wrapper {
width: 9999px;
position: absolute;
}
馃挰 2
馃敡 1
Object comparison optimism
Capucine Aubert
路
il y a 1 mois
Java
馃 3.6
WTF score
Java
if (role == "ADMIN") {
}
馃挰 2
馃敡 1
Everything is global
Capucine Aubert
路
il y a 1 mois
JavaScript
馃 4.0
WTF score
JavaScript
var user; var config; var state;
馃挰 2
馃敡 1
Retry logic powered by denial
Capucine Aubert
路
il y a 1 mois
JavaScript
馃 3.6
WTF score
JavaScript
function retry() {
return retry();
}
retry();
馃挰 2
馃敡 1
The N+1 festival
Capucine Aubert
路
il y a 1 mois
PHP (Laravel)
馃 3.2
WTF score
PHP (Laravel)
$users = User::all();
foreach ($users as $user) {
echo $user->posts;
}
馃挰 2
馃敡 1
User-controlled WHERE clause
Capucine Aubert
路
il y a 1 mois
SQL
馃 3.2
WTF score
SQL
SELECT * FROM users WHERE email = '$email'
馃挰 2
馃敡 1
Sleep as synchronization strategy
Capucine Aubert
路
il y a 1 mois
Python
馃 3.6
WTF score
Python
import time time.sleep(5) process_data()
馃挰 2
馃敡 1
The @ operator blanket
Capucine Aubert
路
il y a 1 mois
PHP
馃 3.6
WTF score
PHP
@move_uploaded_file($tmp, $dest);
馃挰 2
馃敡 1
Authentication by wishful thinking
Capucine Aubert
路
il y a 1 mois
PHP
馃 2.3
WTF score
PHP
if ($isAdmin = true) {
return view('admin.dashboard');
}
馃挰 3
馃敡 1