Better HN
topnewbestaskshowjobs
Log inSign up

hellofunk

9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions

John Bellick, Mexico City
Submissions

comment 8y ago · link · parent

> Overuse of oop concepts is just as harmful

The author's examples are not all about oop -- many of them having nothing to do with oop, they are just good advice for clean code in general.

comment 8y ago · link · parent

> Moderation in all things, especially moderation

Brilliant!

> being defensive inside your codebase probably means the code that you are writing is offensive. Don’t write offensive code.

There are some catchy insights here.

comment 8y ago · link · parent

Would like an example; this is hardly "solved" in C++. There is an old Boost library that does this, but it's not idiomatic and rarely used.

Unless you are using a different definition of named parameters, I've never seen C++ code in the wild that used them.

comment 8y ago · link · parent

Except for the "think less of them," part, I don't think it's inappropriate -- we all get to vote every second of the day for the companies that rule our world. We vote with our wallet every time we buy even the smallest thing, and we vote with our clicks when we choose to use web services.

It is far from the most extreme of social changes that have occurred in history to suggest people stop using a particular company's tools.

comment 8y ago · link · parent

I just went through the "Manage Your Information" option on the FB website itself. It's terrible, every individual option only has a link to a long document you must read to figure out how to manage your information for only that one particular setting. Then you must separately do that yourself following the instructions, then go back to the Manage Your Information screen and select another of the many topics there and do it all again -- for each individual item in the list.

FB really does not want to make it easy for you to quickly change all your settings.

comment 8y ago · link · parent

Upvote! There’s no reason for nice simple humor to be punished here, is there?

Classic HN response, to downvote most attempts at jokes. We’re talking about flying spiders here after all.

comment 8y ago · link · parent

The HN tolerance for humor once again showcased.

comment 8y ago · link · parent

Cool but this should not be surprising to anyone who has seen a SpiderMan movie. I'm just sayin.

comment 8y ago · link · parent

I'm going to play devil's advocate and call it:

Self-driving cars have killed pedestrians, Watson isn't doing all they wanted... is this the dawn of a new winter?

comment 8y ago · link · parent

There really is no limit to how bad a country or its leaders can behave. WWII wasn’t that long ago, we shouldn’t assume things can’t get out of hand again.

comment 8y ago · link · parent

Easy, yes. And more importantly, explicit, unlike the JS examples in this article.

comment 8y ago · link · parent

Anyone have a recommendation how to get started with AWS serverless options? There are so many AWS services and it isn’t intuitive when you login and see all the stuff you can do. Coming from Heroku where you do it all yourself, knowing when and how to break up functionality among AWS tools is not always clear.

comment 8y ago · link · parent

Agreed. Capitalism and the prioritized pursuit of profits have only created the problem of poverty and wealth gaps that we now find affecting everyone.

comment 8y ago · link · parent

Ycombinator is already doing active research in this area, and a few European countries have already put it into practice in test cities.

comment 8y ago · link · parent

Basic income. The older I get the more I strongly hope that the future finds some version of the ideas currently in research and testing regarding basic life support to all peoples. There is so much to gain by doing so, for everyone, whether you personally need it or not.

comment 8y ago · link · parent

That's cool, but it's hardly the idiomatic workflow for C++. Maybe that will change; it should!

comment 8y ago · link · parent

> let me get to a prototype more quickly

The nice thing about gradual typing is if you get to a proof-of-concept, you can then layer in types for static analyzers to make it more robust. Sure it's not Rust-level safety, but it works for very demanding projects. Heck, all of Instagram is built on Python, and they use the static type analysis in their workflow just like this.

It's just a compromise everyone needs to find on their own or for a specific project.

comment 8y ago · link · parent

Do you not find that lack of a REPL-oriented workflow inhibits productivity? I sure do. I love C++ and don't use Rust beyond hobby interest, but being able to do things interactively is definitely an advantage in languages like Python.

comment 8y ago · link · parent

But static typing != static typing. There are many different degrees of type safety, some much more strict than others. It is often about more than just "finding the right type," as you say. How much does the compiler require features of a type to be implemented, even if they are not used, in order for it to be a certain type, or just use one featureset of a protocol/trait that it adopts? You can easily write types that eventually require a large amount of boilerplate in some languages to just do something fairly basic that is not as complex as what the compiler asks you to do.

comment 8y ago · link · parent

I'm a fan of this multi-language trend of gradual and optional typing. Static typing has definite benefits, but there are also diminishing returns on productivity as a language becomes more and more statically safe. Often times, type safety is a rabbit hole that can easily turn a language into what some call a "puzzle language," where the efforts to please the compiler become non-intuitive and take long times to figure out. Some of the classes in Swift for example have to adopt a hundred protocols just to compile. Rust is an even more extreme example. You might get extra safety, but at significant development cost.

Gradual typing in Python is a happy medium that lets the developer decide (to some degree) on the workflow up front. It's a nice compromise for a wide range of work.

I love this explanation from a few months ago:

https://blog.merovius.de/2017/09/12/diminishing-returns-of-s...

comment 8y ago · link · parent

I love C++ but it is hard to deny the vast workflow improvements that come with languages that utilize a REPL, like Python or Julia or Matlab/Octave. Being able to poke at your code or data and experiment without a compile/run/debug cycle is a huge advantage to productivity.

comment 8y ago · link · parent

> Polite discourse

Everything is polite at first, until it gets big. This has been true of all social media platforms in history.

comment 8y ago · link · parent

I can disprove your theory in two ways: I do not use this acronym. And, neither does my mother. That’s two people to discredit your hypothesis. And both myself, and my mother, belong to the group called “everyone“.

comment 8y ago · link · parent

It’s not surprising if you read in the docs that it is an intended feature.

comment 8y ago · link · parent

I don’t have the answer, but I wish to say this is a very excellent question, because many people think that all therapists or psychiatrists are created equal, and this is so far from being the reality. Most of the therapists or psychiatric professionals I’ve encountered or have had family members deal with, have been, in my experience, quite terrible at what they do. There been a few shining stars, and the rest probably shouldn’t have been in the field.

comment 8y ago · link · parent

My point stands if by “updating DOM” it is meant the developer approach to making DOM changes, which in React go implicitly through a virtual DOM first, yes, which is vastly faster than updating the DOM directly. And an Electron app doesn’t need to be slow just because it uses a browser DOM.

I work on a React project that has a faster UI than its native desktop counterpart.

comment 8y ago · link · parent

Updating the DOM in Electron is like updating the DOM on the web -- you can do it fast or you can do it old. Most Electron apps I've worked on or looked at the source are using things like React for the DOM, which is much faster than what you describe.

But if an app does it "old school" then it can definitely be very slow.

comment 8y ago · link · parent

Maybe not from the ecosystem at large, but from Microsoft, on something like Outlook, sure you can expect efficiency.

comment 8y ago · link · parent

Really the choice of language is unlikely to be the cause of any slowness you are experiencing in different versions. JS can be faster than a native experience, all depends on program architecture. The main JS engines are blazing fast and a low-latency UI is perfectly possible; sluggishness is not a sacrifice you must accept when coding in nearly any language in 2018. But bad practices in any language can lead to a poor user experience.

comment 8y ago · link · parent

I accept that bet! Let's discuss offline.
1
293031
110