Better HN
topnewbestaskshowjobs
Log inSign up

wrong_variable

873 karma · joined Jan 2, 2016 (10y ago) · 422 submissions

Submissions

comment 10y ago · link · parent

so monads are just a way to define an api ?

so anything that is like this :

values = ['coffee','water']

AfterWebSocket = values.sendToWebSocket()

AfterWebSocket.compute (eachValue => x*2)

is that it ?

comment 10y ago · link · parent

I do not understand how the reader monad is different than promise.

It seems the reader monad just delays execution of some code until you call 'runWith' and you can define state variables throughout your code before calling runWith.

comment 10y ago · link · parent

So A reader Monad is similar to class inheritance. Where you provide a dependency ( like a inner class ).

The resulting class can also have other variables and inputs.

Is that a correct analogy ?

comment 10y ago · link · parent

If you are interested in learning about Algebraic structures and group theory from a very practical standpoint I highly recommend

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

I created my profile at 2012 - thanks for that information !

Is it possible for me to check the data link to look my name up.

comment 10y ago · link · parent

This is a good thing.

Its going to put downward pressure in the price of education. We really need an international market for education.

comment 10y ago · link · parent

As a web developer who is not a 'web bro'

React.

Redux.

Reflux.

Flux.

Relay.

Does anyone else see the madness in this ?

comment 10y ago · link · parent

quick someone write a left pad module for it !

comment 10y ago · link · parent

Almost like COBOL is using a time machine to talk to the future. Reminds me of Interstellar.

comment 10y ago · link · parent

Very Well Written,

How hard is it to program these types of systems ? Its sounds quite technically challenging to build an automated system that can easily steal information from Target etc.

comment 10y ago · link · parent

Getting an education has never been cheaper in 2016 then any other time in history.

What you are paying for is validating your knowledge when you go to college. I hope we start the argument by first getting the basic facts right.

comment 10y ago · link · parent

Dogs can be made to learn things - doesn't mean we allow them do surgery.

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

lol

comment 10y ago · link · parent

The sad part is the industries that do actually need some quality control are the ones that are completely unlicensed.

If a florist does something stupid - no one gets hurts.

But bankers,programmers treat their profession like the wild west.

comment 10y ago · link · parent

'hey! look at these introverted developers' meme

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 do not think Slovenia has terrible labor laws - in fact they get more vacations days ( 33 ) then american workers !

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

This is why Americans cannot have nice things.

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

Not really,

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

I didn't create the term RDD - that credit goes to

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

-- This is prolly the most arrogant opinion I have --

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 do not understand this obsession with npm.

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

subscriptions are great for handling black hole callbacks - callbacks that you cannot return back control to the callie.

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

When I was younger - pre 2008 - I went to a seminar in the middle east.

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

As a Londener - London sucks !

Would love to Live in Edinburgh - but the world's laundered money doesn't flow through Edinburgh :(

comment 10y ago · link · parent

As a life-long windows users I am curious what they mean by 'skilled in Linux' - I use the command line in windows when I am programming with core.utils and never saw the reason to switch to Linux.'

comment 10y ago · link · parent

you are right - its not possible to avoid left-pad-gate due to github being a similar company as npm ( in terms of law ).

But using git means its theoretically possible to have multiple registries - etc.

comment 10y ago · link · parent

<< Die heart Node.js fan >>

As much as I love Node.js, I have grown to dislike npm. Git + Github is a much nicer way to publish.

Also the whole left-pad fiasco.

comment 10y ago · link · parent

> There's not as much of a culture of writing APIs that way in Python because it's generally a terrible way to program

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

The same problems you cite for node.js are the reasons why a lot of devs love node.js.

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.

1
91011
15