HNHacker News
TopNewBestAskShowJobs

ardfard

81 karma · joined December 2, 2011

submissionscomments
ardfard··on Enforcing Modularity in Rails Apps with Packwerk
Agree with this. Imagine how hard it is to maintain just one service? Now multiply this by the number of your Microservices. Change to Microservices should come naturally when the org need it, for example when teams in a different functions start to fight to merge their changes to the monolith.
ardfard··on Rust Is Surprisingly Good as a Server Language
Have you try Haskell? The most used compiler, GHC, shipped with it's own REPL and it's quite good. Something I missed when coding in Rust.
ardfard··on On Marketing Haskell
Can you explain what Haskell fall behind in term of writing web servers? As someone who wrote Node and Haskell web apps in the past I don't think it's true. Let't take a look at one of premier Haskell web framework Yesod. It has support for authentication, http/2, https, middlewares, logging, etc. I don't think there is any "modern web protocols" that Haskell cannot support. It's only a language anyway. It popular and powerful enough for people to implement something novel with it.

I know Haskell had been used for testing-bed for programming language ideas because making abstractions in Haskell is freaking easy. But you can just ignore them and stick to boring, working and practical subset of the language. The language already been heavily used in industries so I know for a fact that it's fit for production use. I myself did deploy Haskell apps to production (Telegram bot for personal use) and never encounter any problem.

ardfard··on On Marketing Haskell
> What does Haskell have? It has Req (and a bunch of other also rans), and the docs for Req are atrocious, spanning a staggering 1 (one) example and then a meandering essay on the deficiency of other Haskell HTTP clients. It's not good enough.

For HTTP request library, most would recommend Wreq. Being most popular, the documentation is really good I might say with most used API have their own example [1]. You can also easily find great tutorial on the net, like http://www.serpentine.com/wreq/tutorial.html for example. Honestly I never use Req myself and looking at the documentation myself, even though I don't it's lacking, I think it's not really geared toward Haskell beginners so maybe you have a point there.

As a novice Haskell programer who only use it for side projects, I don't think the documentation is that bad and it's only getting better. Most popular libraries like database clients and web frameworks have intensive documentation and tutorial nowadays.

I agree with you for the state of IDE support, it leaves something to be desired. But people are still working on it[2]. For now I mostly use vim with help of linter and formatter. The great thing about good type system is, you can still do much even without great IDE support. Haskell already have working and great REPL support that make development a breeze so it helped. I'll still take Haskell over OCaml or Scala anyday. Rust is great and I love it so much that it's my go to language for something system programming or networking related, but I don't think it's a good match if you want to learn functional programming.

[1] https://hackage.haskell.org/package/wreq-0.5.3.2/docs/Networ...

[2] https://github.com/haskell/haskell-language-server

ardfard··on I Was Wrong about Nix
Nix can run on WSL though. So it indirectly runs on Windows just like Docker run on Windows...
ardfard··on I Was Wrong about Nix
You don't really need to use NixOs to use Nix really. I use Nix inside my Ubuntu laptop to pin all my projects dependecies and it worked great.
ardfard··on How much longer will we trust Google’s search results?
Maybe that's the point. Google is much so much easier that even if I want to read article on Wikipedia, I still search it first on Google.
ardfard··on Software projects written in Haskell
To be fair, most asked questions about Haskell that people always have is if Haskell is so good and not just purely for academics then where is Haskell used in industry? Or is there really huge and complex software projects written in Haskell?
ardfard··on Atta Elayyan, Developer of MetroTube and LazyWorm Apps, Killed in Christchurch
Ah I see. Yes, coming for non-native speaker, english is sometime confusing.

Anyway Islam seems like reactionary if you look at it from today standards and in need of a reform (which I believe it's happening right now). But it really had some progressive ideas for the times even compared to their neighbour medieval Europe.

ardfard··on Atta Elayyan, Developer of MetroTube and LazyWorm Apps, Killed in Christchurch
Islam was a reactionary to the 6th century tribalistic pagan arab . See the history of early Islam [1]. It encompasses changes including racial equality, Women's right and social security.

[1] https://en.wikipedia.org/wiki/Early_social_changes_under_Isl...

ardfard··on ReasonML – React as first intended
ReasonML is a language that transpiles to JS, not a view library so it's not gonna replace React. The more appropriate question is why someone use this for developing React app rather than using plain JS? The answer is IMO because React paradigm lent itself better with functional way of handling state like immutability and persistent data structures that's why ReasonML is more like a perfect match.
ardfard··on Comprehensions in Python the Jedi way
Really? I am pretty much mind-blown when the first time I learned about this. Given that my background is Mathematics, I thought it was pretty elegant and also looked very intuitive.
ardfard··on JavaScript's world domination
You could always use transpile to js language like CoffeeScript or ClojureScript for a nicer syntax. Combines it with build system like Gulp or Grunt really makes the experiences pretty painless.
ardfard··on Alamofire: HTTP Networking in Swift
Thanks for your great works! I am using Alamofire on my project right now. Do Alamofire support or will support async image loading via URL just like AFNetworking? I can't find the API anywhere on the docs.
ardfard··on Why Stack Overflow in Portuguese?
Yeah in Indonesia at least we just use them straight away. It's because not only it sometime hard to find synonymous meaning in our native vocabularies it also not sound as natural when you translate them. Everybody understand them anyway if you said them in English.
ardfard··on Why Stack Overflow in Portuguese?
I can relate to this too. This is why I lack participation in HN discussions even though I've been here for about 3 years and always checking HN regularly. English is my third language and I barely speak it at home. So I still feel really uncomfortable and difficult to express my mind in English.
ardfard··on Gisp: A Lisp that compiles to Go
This exactly my thought too. It looks like everybody who already know Lisp will developed some sweet spots for it. My guess once you experience the Lisp kool-aid, it'll be hard to be apart with it. You'll miss it whenever you code.
ardfard··on If you had to start over, what technologies would you learn in 2014?
Agreed too for your opinion about how to do a startup. But I want to add C to your full stack suggestion. Sometimes it pays off to know low-level details about your choice of technologies. Almost every important technologies that I know is implemented in C.
ardfard··on Ask HN: Have your parents done anything to make you interested in Science or IT?
Beside bought me a computer, they did nothing. I found my fascination of computer science by tinkering myself.
← PreviousPage 2 of 2