Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codygman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
721.
▲
by
codygman
12y ago
I just wanted to say I agree to everything you just said. I don't feel like I've heard this viewpoint expressed better before.
722.
▲
by
codygman
12y ago
To ease your Haskell experience consider using LTS Haskell or Stackage to avoid Cabal hell: https://www.fpcomplete.com/blog/2015/01/announcing-lts-haske... http://www.stackage.org/
723.
▲
by
codygman
12y ago
Not the parent, but I made the same transition a couple of years ago. I emailed you something I've wrote in Haskell that might be relevant to you but didn't want to publicize too much yet.
724.
▲
by
codygman
12y ago
This can be true, but with discipline you can use superior technologies that may not quite be as popular as Java/C/Javascript/PHP but have all the libs needed for your use case.
725.
▲
by
codygman
12y ago
I actually did the exact same thing a couple years ago. > cabal hell can really suck Agreed, prepare to be happy: https://www.fpcomplete.com/blog/2015/01/announcing-lts-haske... > Haskell takes much lon
726.
▲
by
codygman
12y ago
Think about how that would have changed if they had a simple text editor with parenthesis highlighting.
727.
▲
by
codygman
12y ago
Xmonad is buggy? I've been using it for 4 years and never had a problem. I actually also use it on multiple displays.
728.
▲
by
codygman
12y ago
You can have power + fast: Haskell, Clojure, SBCL, Ocaml, Scala
729.
▲
by
codygman
12y ago
Good point.
730.
▲
by
codygman
12y ago
Thanks, I forgot about the warnings. It's been a while since I've used Go.
731.
▲
by
codygman
12y ago
In the rust example error handling is enforced via the type system whereas with Go it depends on your (and others) discipline.
732.
▲
by
codygman
12y ago
I don't think I'd call the IO monad "dirty" since it's still pure. Also "dirty" make it sounds like a hack.
733.
▲
by
codygman
12y ago
You'd probably enjoy Haskell more than Go as a Rubyist imo. Most Rubyist I've known seem to really like Haskell.
734.
▲
by
codygman
12y ago
I wonder how long it will be until Rob Pike decides that "Handling error values should be enforced by the type system".
735.
▲
by
codygman
12y ago
(group-by :author articles) groupBy ((==) `on` author) articles What's wrong with cheating? :P
736.
▲
by
codygman
12y ago
> You could use Either, but it doesn't give you any guarantee that you'll get a string back 1. It's better not to use strings and instead use a user defined error type. 2. What do you mean "doesn't give you any
737.
▲
by
codygman
12y ago
What about this Haskell example doing the same tasks? https://news.ycombinator.com/item?id=8878421
738.
▲
by
codygman
12y ago
I linked a Haskell version above as well: https://news.ycombinator.com/item?id=8878421
739.
▲
by
codygman
12y ago
Here's the Haskell equivalent for anyone curious (Beware of curry[0]!): data Article = Article { title :: String , author :: String , tags :: [String]
740.
▲
by
codygman
12y ago
formatted Scala code by hibikir from above in thread[0]: def topJavaArticle(articles:List[Article]) = articles.find(_.tags.contains("Java")) def javaArticles(articles:List[Article]) = articles.filter(_.tags.contains(&qu
741.
▲
by
codygman
12y ago
Python is being hurt by Python 3.0 changing so much.
742.
▲
by
codygman
12y ago
spacemacs looks amazing, thanks for that!
743.
▲
by
codygman
12y ago
That sounds like something you'd use the state monad for if I understand correctly. Can you provide an example of semi unification where Haskell would be not so great?
744.
▲
by
codygman
12y ago
I believe spacecowboy_lon is referring to functions opposed to methods. For those that don't know the difference a method is basically a function that has access to the state of an object (correct me if my definition is wrong or sucks)
745.
▲
by
codygman
12y ago
In at least two of your examples you could pass in an error handling function (or class) and it would still be a net win. Analyzing this further would require having a more fleshed out example.
746.
▲
by
codygman
12y ago
That would be very interesting to see!
747.
▲
by
codygman
12y ago
For me: I can hack something together quickly cutting corners if needed, then refactoring is easy and almost always works on compile when you get around to fixing things up.
748.
▲
by
codygman
12y ago
It would most likely be in the IO monad since IO would be happening. As for whether monads would help your code (and I still think they would) I'll need a larger example. In a small example abstraction and reuse aren't really appa
749.
▲
by
codygman
12y ago
Yeah, a bsd-licensed Shen is something I'd be interested in as well.
750.
▲
by
codygman
12y ago
Cool, now we have something to work with. However at such a high level no paradigm's differences (much less pros/cons) would be apparent. Would you mind implementing those individual functions? Actually it might be easier to use s
More ›