thedailywtf.com

CodeSOD: What Condition is This (opens in new tab)

Untodesu sends us this submission, with this comment: Literally no idea what kind of drugs the guy was taking but nonetheless we've rewritten it to be just a two-liner Well, that doesn't tell us a lot about what to expect from the code, but let's take a look. QStringList TableViewAssembly::parametersFilter(ProbePart::Type type, int pos, QList probeDesign) { QString to, from; if(pos == -1) { if(probeDesign.length() == 0) { to = "*"; from = "AutoJoint"; } else { to = probeDesign.at(0...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help