-
Zash
`curl https://docs.modernxmpp.org/ | grep description`
-
Ge0rG
Curling!
-
jonas’
:D
-
MattJ
Sigh, Python I guess
-
MattJ
site_description: default `null`
-
Zash
Python
-
Ge0rG
since when is `null` Python?
-
MattJ
YAML
-
MattJ
Processed by Python
-
MattJ
converted to HTML
-
MattJ
Parsed by a web browser
-
Ge0rG
Time for some yaml shaving?
-
MattJ
What could go wrong?
-
MattJ
Zash, fixed and deployed, thanks
-
Zash
Thanks
-
jonas’
MattJ, still better than ruby, where you would’ve gotten "" instead of "nil" ("None")
-
jonas’
the countless times I hunted after empty strings in ruby things which turned out to actually be nils
-
MattJ
That would have been arguably more correct in this specific case :)
-
Ge0rG
"Nun"
-
MattJ
Not sure I want the site appearing in search results with the description "None"
-
jonas’
correct, but harder to track down when it isn’t
-
jonas’
a "None" is a dead giveaway what happened, a "" isn’t
- pep. whistles "option type"
-
jonas’
bonus when some string operations sometimes(!) return nil instead of a string
-
jonas’
irb(main):001:0> "foo\n".delete!("\n").to_s => "foo" irb(main):002:0> "foo".delete!("\n").to_s => ""
-
jonas’
because that’s totally obvious
-
MattJ
:)
-
Ge0rG
jonas’: that demands for a NaS return value.
-
jonas’
Ge0rG, like, nil?
-
jonas’
irb(main):001:0> "foo".delete!("\n") => nil
-
Ge0rG
jonas’: no, like NaN, but for strings.
-
Ge0rG
NaN != NaN, but nil == nil
-
jonas’
ah
-
Ge0rG
https://i.imgur.com/5pFXFbR.jpg
-
jonas’
:D
-
MattJ
I always forget how bad JavaScript is
-
debxwoody
:-)
-
Ge0rG
MattJ: s/JavaScript/computing/