Better HN
topnewbestaskshowjobs
Log inSign up

0x0dea

28 karma · joined May 16, 2015 (11y ago) · 16 submissions

Submissions

comment 10y ago · link · parent

Do you know what year it is?

comment 10y ago · link · parent

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

comment 10y ago · link · parent

Couldn't find a probabilistic testing library, eh?

comment 10y ago · link · parent

In a similar vein: https://www.destroyallsoftware.com/talks/the-birth-and-death...

comment 10y ago · link · parent

The magic __COUNTER__ macro supported by some compilers can be used to simulate gensym.

comment 10y ago · link · parent

Does the body have ways of shutting that down?

comment 10y ago · link · parent

http://wordsmith.org/anagram/anagram.cgi?anagram=SerpentHill...

Subtle.

comment 11y ago · link · parent

https://en.wikipedia.org/wiki/Interstitial_webpage

comment 11y ago · link · parent

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"]

comment 11y ago · link · parent

    $ whatis code
    code: nothing appropriate.

comment 11y ago · link · parent

https://www.destroyallsoftware.com/talks/the-birth-and-death... is non-fiction.

comment 11y ago · link · parent

"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.