HNHacker News
TopNewBestAskShowJobs

TheAsprngHacker

873 karma · joined November 3, 2017

submissionscomments
TheAsprngHacker··on Is `let foo = () = foo;` good or bad?
For identifier validity checking and recursion, you should look into let-rec and its differences from ordinary let. As for API checking, you would probably be using typeclasses or interfaces to specify an API. Even if the individual URL objects do not exist yet, a URL type should exist (at compile-time) that defines what operations are valid. I don’t think that a separate function would need to be generated for each link, but you can build arbitrary operations at runtime with first-class functions.
TheAsprngHacker··on Ask HN: Is There a Hacker News for Politics?
Others have mentioned several subreddits; I would like to recommend r/NeutralPolitics. I occasionally browse it and I'm blown away by the quality of the discussion compared to the discussions at other popular political subreddits, e.g. r/politics. Neutralpolitics's success is probably due to its rules and moderation, which help promote constructive discussion, and its lesser traffic compared to other political subreddits, meaning that it doesn't suffer from the unconstructive comments that result from the popular audience.
TheAsprngHacker··on Functional Geekery Episode 48 – Matthias Felleisen [audio]
A friend recently introduced me to Matthias Felleisen and I found the interview when searching his name on DuckDuckGo.
TheAsprngHacker··on Ask HN: Do you know any reliable and unbiased news site?
I think that all sources have biases, whether intentional or otherwise. You mention "big news channel" as an example of "fake news;" alternative news outlets can also be biased, but IMO the opinions can actually be a benefit so that you understand viewpoints not expressed in the establishment. On a related not, you could also read different (mainstream) news outlets from across the aisle and compare the different presentations of information.

That being said, I think that Reuters a lot less biased than a lot of other mainstream media. Although I couldn't find a source when a glimpsed at the Reuters news site, Wikipedia claims that Reuters has a "value-neutral" language policy: https://en.wikipedia.org/wiki/Reuters#Policy_of_objective_la...

TheAsprngHacker··on C++17 Standard Published
The process for proposals is at https://isocpp.org/std/submit-a-proposal
TheAsprngHacker··on Type-safe GraphQL with OCaml
If you don't make type mistakes, good for you, but why not let the compiler or interpreter provide a safety net, just in case? In addition, static typing makes refactoring easier because you can confidently redesign your code and let the implementation tell you which types you haven't yet adjusted. Besides, type inference means that you do not even have to write out the type yourself in many cases. (However, to do so is better for documentation.)

Also, why do you think that Microsoft is secretly pushing static typing? /Maybe/ it's shilling for TypeScript, but there are a lot of other statically typed languages that compile to JavaScript, such as Elm.

TheAsprngHacker··on Ask HN: Is anyone here actually against Net Neutrality?
Are you a libertarian? You remind me of John Stossel. https://youtu.be/5hqzpD9drdc?t=5m29s
TheAsprngHacker··on Ask HN: What is the etiquette regarding duplicates?
Thank you! My apologies for not seeing the page.
TheAsprngHacker··on Ask HN: What are some good (programmer) jokes that you know?
https://stackoverflow.com/questions/234075/what-is-your-best...
TheAsprngHacker··on The long goodbye to C
Is Go really comparable to C?
TheAsprngHacker··on Ask HN: What are resources for learning C++?
How much programming experience do you have? For example, have you used other low-level languages or do you come from more abstract languages?

I use cplusplus.com and cppreference.com as a general reference. To learn best practices, I read Herb Sutter's books.

← PreviousPage 6 of 6