News for hackers. Stuff that matters.

jcyw

Re:Functional core, imperative shell (2012) on Saturday September 22, 2018 @02:20PM (#18047215)
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...

Re:Functional core, imperative shell (2012) on Saturday September 22, 2018 @02:05PM (#18047130)
This is the github repo featured in the video: https://github.com/bf4/toot
Re:The Japanese Iced Coffee Method (2012) on Friday June 24, 2016 @01:18PM (#11971637)
Im in seattle. Where can I find japanese coffee? :p
Re:SQL vs. NoSQL Databases: What’s the Difference? on Thursday May 12, 2016 @12:31PM (#11684673)
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.
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.
oh wow. like a real time streetview monitoring the society?
Re:AlphaGo beats Lee Sedol 3-0 [video] on Saturday March 12, 2016 @01:37PM (#11273895)
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.
Ban the sea trade and the tea. History repeats.
Re:Write code that is easy to delete, not easy to extend on Saturday February 20, 2016 @02:24AM (#11139265)
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. :)
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.
Re:Getting rid of NULL on Monday January 18, 2016 @04:22PM (#10927058)
I was expecting Java8 Optional...
Re:Chinese Markets Halted, Equities Plunge Another 7% on Thursday January 07, 2016 @02:23PM (#10860077)
Interesting. Considering they stop people selling stock last time. Ha. Lets keep an eye.
Re:China stock trading halted early after 7% plunge again on Wednesday January 06, 2016 @11:21PM (#10855963)
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.
Re:China stock trading halted early after 7% plunge again on Wednesday January 06, 2016 @11:16PM (#10855946)
They are not lacking experience. Communist believe in centralized control, not free market.
Re:Starting a tech startup with C++ on Saturday January 02, 2016 @02:34PM (#10827523)
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.
Re:Starting a tech startup with C++ on Saturday January 02, 2016 @02:14PM (#10827424)
Its more like, with 2gb ram and 2.0ghz cpu, how many requests can you handle? Its not surprising language like C++ would win.
Re:Starting a tech startup with C++ on Saturday January 02, 2016 @02:12PM (#10827415)
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.
Re:Am I hacked? Oh, it's just Vodafone on Saturday December 26, 2015 @09:04PM (#10796095)
and HTTPS :)
Re:AWS mistakes to avoid on Saturday December 26, 2015 @03:53PM (#10795269)
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.
Re:The long process of creating a Chinese font on Friday December 18, 2015 @08:50PM (#10762246)
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.
Re:Google Developers Case Study Showcase of Google+ Redesign on Sunday November 29, 2015 @05:46AM (#10644325)
what did they actually use to achieve this?