HNHacker News
TopNewBestAskShowJobs

0x0dea

28 karma · joined May 16, 2015

submissionscomments
0x0dea··on Quick, Draw
Do you know what year it is?
0x0dea··on Fixing C
Vim auto-indents macro blocks just fine, and preprocessing isn't compilation. For your edification, clang-format is amazing: https://youtu.be/JSjoCisIHcM?t=1764
0x0dea··on Show HN: VeryAnts: Probabilistic Integer Arithmetic for Ruby
Couldn't find a probabilistic testing library, eh?
0x0dea··on Twitter: Years After the Alphabet Acquisition
In a similar vein: https://www.destroyallsoftware.com/talks/the-birth-and-death...
0x0dea··on A Better Varargs
The magic __COUNTER__ macro supported by some compilers can be used to simulate gensym.
0x0dea··on Japanese scientists have created a new type of hologram that you can feel
Does the body have ways of shutting that down?
0x0dea··on Design Patterns in Clojure
http://wordsmith.org/anagram/anagram.cgi?anagram=SerpentHill...

Subtle.

0x0dea··on The Future of the Web Is 100 Years Old
https://en.wikipedia.org/wiki/Interstitial_webpage
0x0dea··on Improving your code readability with namedtuples
Ruby's Struct is pretty nifty.

    Person = Struct.new :name, :age

    people = [
      Person.new('Alice', 42),
      Person.new('Bob',   23),
      Person.new('Carol', 30)
    ]

    people.sort_by(&:age).map(&:name)
    # => ["Bob", "Carol", "Alice"]
0x0dea··on What is code?

    $ whatis code
    code: nothing appropriate.
0x0dea··on Brython – A Python 3 implementation for client-side web programming
https://www.destroyallsoftware.com/talks/the-birth-and-death... is non-fiction.
0x0dea··on Experiments with Ruby and Go
"Ruby code can have a syntax error in a conditional..."

No, it can't. If this is something you've seen "many times", would you mind providing an example? Show me a program that Ruby tries to execute without having been able to parse it.