Better HN
topnewbestaskshowjobs
Log inSign up

nulldata

90 karma · joined Jun 27, 2013 (13y ago) · 45 submissions

Submissions

comment 12y ago · link · parent

Nice article though some of the code is less elegant than it could be, normally you would match the option to unwrap it and then match it's value, instead of doing a lot of 'Some( .. )' matches.

  let first_character = match line.chars().next() {
    Some( v ) => v,
    None => return
  }
  
  match first_character {
    '# => println!("Comment"),
    ...
  }

comment 12y ago · link · parent

Another less verbose way of handling the results of the writes is the 'and_then' method which short circuits on 'Err' or otherwise calls the given closure ( which only borrows it's environment ) with the previous value and returns the 'Result'.

comment 12y ago · link · parent

I found both learning and just writing in Haskell a joy, and I can recommend it full-heartedly. It might be a little hard to get started with ( especially if you're not familiar with functional programming ), but it's really awesome, interesting, and just flat out fresh once you get into it.

comment 12y ago · link · parent

Reminds me a little bit of NodeBox

comment 12y ago · link · parent

That's defiantly an important factor, I programmed with light ( high contrast ) colour themes for 3 years. I got frequent headaches ( especially at night time ), but then I switched to a dart theme ( Monokai <3 ) and I barely get any headaches while coding any more.

comment 12y ago · link · parent

He has some good points, but it mostly just sounds like a pointless rant. And nitpicking every flaw with these nations just because he has gotten tired of the positivity surrounding their "success" comes off as just childish.

37.

Langner - Language for Expressing Strategies (Python Lib)(langner.io ↗)

1 points · by nulldata · 13y ago · discuss

comment 13y ago · link · parent

I can't expect the user to have an internet connection when needed. And having to send something vital as this over an HTTP is just not an option.

39.

Ask HN: What's the most secure cross-platform RNG option?

2 points · by nulldata · 13y ago · 6 comments

comment 13y ago · link · parent

Programmers' Day, Friday the 3th and my birthday!

comment 13y ago · link · parent

Yup, and my sister's is 9/11.

comment 13y ago · link · parent

That's on my birthday! How appropriate.

43.

IceLeaf, a lightweight lexing , parsing and AST handling library for Python.(github.com ↗)

2 points · by nulldata · 13y ago · discuss

12