Better HN
topnewbestaskshowjobs
Log inSign up

jcyw

25 karma · joined Nov 29, 2015 (10y ago) · 22 submissions

Submissions

comment 8y ago · link · parent

The idea of functional core is cool. I find domain-driven design a better guide for implementation. In a nut shell, there are three types of objects: value, entity, and service. Both value and entity are functional and stateless objects. A service object maps between stateless objects and may cross the domain boundary (such as network, IO, etc). When I do this in java, a service object would have interfaces returning CompletableFuture of Value or Entity objects.

InfoQ has a very nice summary of DDD book: https://www.infoq.com/minibooks/download/domain-driven-desig...

comment 8y ago · link · parent

This is the github repo featured in the video: https://github.com/bf4/toot

comment 10y ago · link · parent

Im in seattle. Where can I find japanese coffee? :p

comment 10y ago · link · parent

There should be mentions about CAP theorem, and tradeoffs about consistency vs availability. Sometimes you dont care as much about CAP-consistency than availability or scalability.

comment 10y ago · link · parent

I found this equally true for the other side of argument too. Some people choose to ignore that Polymorphsim is a dynamic typed behavior. (Its general being multiple dispatch.) And the faith to compiler seems not come from the understanding of what a compiler is. The author of the original post doesnt seem to recognize Java is also a slow, interpreted language. Haha.

comment 10y ago · link · parent

oh wow. like a real time streetview monitoring the society?

comment 10y ago · link · parent

We had Godel on the limitation of logic and Turing on the limitation of computation. I think AI will only change the way human calls intelligence. We used to call people who can mentally calculate large numbers genius. Lots of that has to be re-defined.

comment 10y ago · link · parent

Ban the sea trade and the tea. History repeats.

comment 10y ago · link · parent

I stil think it would be better to guide programming using principles, not practices. To avoid fragile code, remember the open closed principle. To avoid wrong abstraction, think single responsibility and substitution principle. The author is right about interface segregation. :)

comment 10y ago · link · parent

Pay $10 to become VIP level one. It removes ads in browser. $20 for VIP II: rendering css on your page. $30 for VIP III: able to run javascript. $40 for ES5 support.

comment 10y ago · link · parent

I was expecting Java8 Optional...

comment 10y ago · link · parent

Interesting. Considering they stop people selling stock last time. Ha. Lets keep an eye.

comment 10y ago · link · parent

You have no idda how China controls media and press. Recent incident in Hong Kong revealed China abducted 5 bookstores staff because they publish book about political gossip of the communist party. Journalist and Newspaper were directly controlled by the Party in China. Media companies are required to have a Party Secretary in their board. Comparing that to Fed is vastly irrelevant.

comment 10y ago · link · parent

They are not lacking experience. Communist believe in centralized control, not free market.

comment 10y ago · link · parent

The argument is you do not need a load balancer because performance of one host is good enough. But that would become a single point of failure. And thats why AWS is so awesome. Start with an autoscaling group when you create your ec2 instance, you dont really need alot configuration.

comment 10y ago · link · parent

Its more like, with 2gb ram and 2.0ghz cpu, how many requests can you handle? Its not surprising language like C++ would win.

comment 10y ago · link · parent

No one doubs the performance of C++. What I would really like to see is arguments about speed of development, ease of testing, etc. This articles argues alot about language features or libraries, but what about the bigger picture? It is not enough for the HTTP server be fast. It also needs to do REST API, auth, etc. How does that compare to for example node/js.

comment 10y ago · link · parent

and HTTPS :)

comment 10y ago · link · parent

I have some good experience with qwiklab. Their self-paced lab starts with UI, then turned to aws cli. They also give a nice lesson on CF.

comment 10y ago · link · parent

The most well known ones would be Sung and Ming, and Ching. Emphasis are on ratio of width of horizontal or vertical strokes. And they are always sans, with little triangle at the end of strokes.

comment 10y ago · link · parent

what did they actually use to achieve this?