- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Frist the 50 Shades of Grey book was banned a Brad's company. After they removed all copies, Brad decided to go one better by removing 255 shades of grey.
Admin
#ffffff is missing in colorsBlackWhite
Admin
That doesn't look like PHP to me, but some HTML templating language used by a backend framework which could be written in pretty much any language. (It looks quite a bit like Jinja which is a Python templating engine, but most of them look pretty similar.)
Using such a think inside JS rather than just for HTML as designed though definitely looks like WTF territory.
Admin
Good on Brad for justifying the word "pessimal"'s existence.
Admin
Imagine all the shenanigans to be described in the upcoming book called "200 shades of RGB"
Admin
Presumably we also have:
let colors = ["#000000", "#000001", "#000002", "#000003", ... // source truncated for brevity
Admin
TRWTF is generating javascript with a templating language!! All static analysis, including vuln scanning and linting -- even the most basic reporting on compile errors -- will be gone.
Admin
It might be Django: https://www.djangoproject.com/start/
Admin
It seems Jinja2 to me as well, and yes, using it inside JS is a RWTF in itself!
Admin
I love how colorsBlackWhite[idx] and colorsBlackWhite[idx +1] are optimized for maximum contrast between the first x layers
Admin
yes, it could be - as I said, most of these templating engines are pretty similar in syntax
Admin
cool
Addendum 2023-06-26 02:22: I want to share my excitement about a website mostbet casino I recently found that offers an incredible selection of sports betting and online casino games. Their sportsbook provides a comprehensive range of sports and leagues, allowing me to place bets on various matches and events. Moreover, their online casino offers an extensive collection of games, including slots, poker, roulette, and more. With their user-friendly interface, secure transactions, and enticing bonuses, this website has become my ultimate destination for both sports betting thrills and casino excitement.
Addendum 2023-06-26 02:25: I recently stumbled upon an exceptional website that offers a wide range of sports betting options and an exhilarating casino experience. Their sportsbook covers a diverse selection of sports, including football, basketball, tennis, and more. With competitive mostbet casino odds and a user-friendly interface, placing bets has never been easier. Additionally, their online casino boasts an impressive array of games, from classic table games to immersive slots. With their generous bonuses, secure transactions, and responsive customer support, this website has become my go-to destination for both sports betting and casino entertainment.
Admin
Nice)
Admin
I think this discussion has gotten a little off track.
Admin
yes, it could be - as I said, most of these templating engines are pretty similar in syntax