- 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
Hmm, is this C#?
This does not work in Studio 2026, as you can not use || with bool? types.
I was beginning to think specialRuleCode() should only be called when the user is not null.
Edit Admin
It's difficult to teach junior engineers that we're here to write software, not play code golf.
Admin
Dishonour on you! Dishonour on your cow!
Admin
camelCase "betaMode" and "specialRuleCode" - it's probably javascript which doesn't care about "types"
Admin
Nah, smells like JavaScript/TypeScript to me.
Or maybe, since the guilty party is apparently a Klingon, it would be RaktajinoScript?
Admin
looks like conditional rendering in react. the most common pattern is
{cond && <Element />}because JS is a statement based language so when you use a normalifyou need to put it in a function. with svelte you can just do{#if cond} <Element /> {/if}Edit Admin
To betaMode or not to betaMode.
Edit Admin
You haven't read TDWTF until you've read it in the original Klingon.
Edit Admin
Better Klingon than Vogon.😆
Admin
Don't ignore compiler/linter warnings, people!
Edit Admin
If it's JavaScript it can't be very old, since the conditional chaining operator
?.is a relatively recent addition.Edit Admin
This feels like a Zen koan.
One day Tokusan told his student Ganto, “I have two monks who have been here for many years. Go and examine them.” Ganto picked up an ax and went to the hut where the two monks were meditating. He raised the ax, saying “If you say a word, I will cut off your heads; and if you do not say a word, I will also cut off your heads.”