873 karma · joined Jan 2, 2016 (10y ago) · 422 submissions
comment 10y ago · link · parent
https://github.com/fantasyland/fantasy-land
Also - does anyone show me a practical usecase of the reader monad ? cant you just use partial functions ?
if I am not mistaken isn't reader monad just :
foobar.config ({'name':'hello'});
foobar.run ({'age':'34'});
comment 10y ago · link · parent
Whoever wrote this article has negative knowledge about the state of AI.
edit:
Its also slightly insulting that this person thinks that the modern programmer spends all their time writing if/else/then statement.
comment 10y ago · link · parent
As an extremely vocal individual, being vocal actually is a loss in productivity. When I am trying to communicate what I am doing to my co-workers - it leads the project from slowing down - and me unable to meet my deadlines.
This is why I do not like to waste my time explaining others what I am doing. Its more productive for them to specify the Inputs and Outputs and me doing my thing.
comment 10y ago · link · parent
I am tired of this meme "america has the best labor and environmental laws"
cost of things are higher in america due to inefficiencies - not because of better quality ( I know it might be hard for you to believe it ! )
comment 10y ago · link · parent
Why did jobs move overseas ? If I am a business owner it makes absolutely no sense for me to pay 10x wages just for the privilege of hiring american workers. And if Laws do not change to take into account this differential more and more businesses will leave america.
comment 10y ago · link · parent
Being self sufficient for war and producing excess agriculture product and dumping it on foreign markets are two completely different things.
And two can play at that game - china can make the same 'national security' nonsense argument about information espionage when it comes to the internet.
And in the modern world - the internet is more useful then food for a nation state - america can lose 30 million people and still win a total war as long as its nukes are functional.
Its all about protectionism.
comment 10y ago · link · parent
http://radar.oreilly.com/2014/10/resume-driven-development.h...
I do RDD since I want to watch the world burn and reap as much benefit from it before I drop dead.
comment 10y ago · link · parent
I think if every programmer started using LISP we would have a massive unemployment crisis - since many software engineers would lose their jobs - as most are forced ( due to the nature of capitalism ) to sell snake-oil solutions to problems already solved 50-60 years ago.
--
I am not a Lisp programmer , so no accusation on smugness pls. I just ended up using Lisp concepts daily when programming terrible languages since that is what the market wants :) # Resume Driven Development
comment 10y ago · link · parent
I think npm is great - but people need to ship github respos. Its much better for various reasons - for example you can do.
npm install user/package
it makes the user more aware of the creator and implicitly makes the community better.
anyways, I can just hope more people use git.
comment 10y ago · link · parent
Examples of this would be web-socket , http-requests , etc.
however elm and cycle.js try to shoe-horn this idea everywhere - which I think is not needed.
Not every event needs to be subscribed to - it pollutes your global stream. Use global stream only when you need to deal with things that move out the execution context of your program.
comment 10y ago · link · parent
It was about the future of global energy demand. The person giving the presentation had this graphs - all they could see was growth in global oil and gas demand.
During the seminar I asked one of the presenter about global warming, and how they hope to tackle it.
At least their was no global warming denial but it was unfathomable to them that something like solar could even compete with energy generation using natural gas and oil.
Of-course even I knew back then that solar will not be able to compete - even if solar could be cheapened - it wasn't like these producers had razor thin margins.
A decade later - how things have changed.
comment 10y ago · link · parent
I would love to see evidence for you making that statement. Almost every programmer would put out their fav programming language as the 'right' way to program.
> everything except HTTP servers with absurd numbers of concurrent connection
Once you introduce async operations in your code - you need to follow the execution path through. http request can be async - but then what if the http request results you doing a db lookup or some form of file handling ? you need to make the whole thing event driven.
comment 10y ago · link · parent
Its much easier to do your own research and find the best module to solve a particular problem you are having then to shoehorn into some larger monolithic framework.
Also its a lot more fundamental then that - Node.js has prolly the fastest iteration cycle for any platform out there since its so easy to create your own module - it leads to some sort of Cambrian explosion of innovation and experimentation.
EDIT:
Also OP seems to think callback hell and async programming is bad. The important thing is those things are problems for python/.... too !
Its just that python doesn't have a good programming model to even begin to address those concerns.
JavaScript at-least tries to say - "hey this is a problem we need to deal with - concurrency is a issues we all face "
So when devs complain about callback hell - its just that they have never tried to use python to do async in a neat way.