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 10y ago · link · parent

I completely agree. I very much enjoy working in it, even after 2 years of exclusively Clojure development, I had no problems coming back to modern C++ with all its lovely functional tools and enjoy every moment of it.

comment 10y ago · link · parent

Yes. More than one, actually.

comment 10y ago · link · parent

I didn't say you can't do it. I said, try to do it. The phrase "general purpose" must be stretched considerably in such a case.

comment 10y ago · link · parent

Try to build a mobile app with Go.

comment 10y ago · link · parent

How is this a surprise? The world learned this years ago with Finding Nemo.

comment 10y ago · link · parent

Reminds me of Clojure's Compojure library

comment 10y ago · link · parent

Thanks for the links. The varied opinions in the responses to my comment show that meditation is widely misunderstood.

comment 10y ago · link · parent

There is clearly a lot of misconception about what meditation is, even in the responses to my comment, many contradictory ideas.

comment 10y ago · link · parent

I often hear people say, "hm, I'll go meditate on that..." Or a guy I know who says he meditates on his ideas for his art. But actually, that is the complete opposite of what meditation is supposed to be. When properly meditating, the goal is to not concentrate or think about anything.

I just point this out because the basics of what meditation actually is are widely misunderstood by most Westerners -- and even some I met in Asia.

comment 10y ago · link · parent

1.5 hours per day is a very impressive accomplishment. Even some serious gurus don't pull that off on a daily basis. I've read about legendary artists who considered meditation a key to their sanity, and they often couldn't do it for more than 15-20 minutes in a day.

You are actually able to do proper meditation -- the removal of all focus on thoughts -- for 1.5 hours at a time? Or do you mean several times a day, a few minutes each time?

comment 10y ago · link · parent

I remember an article about a month ago called "Google's Plans to Kill the Password." In any case, this is not a new problem and many smart people are trying to solve it because passwords suck.

I don't have a solution myself, but I hope there is one some day.

comment 10y ago · link · parent

It would be great if, in 2020, or sooner, but probably later, the answer is "don't use passwords any more. They are deprecated components of society."

comment 10y ago · link · parent

That is certainly not true, and therefore, not mysterious.

In fact this website, ycombinator, is the result of a nice pay day that Paul Graham enjoyed for selling web service he built in the 1990s using functional programming techniques... and it was not JS.

comment 10y ago · link · parent

First class functions and lexical scoping have been actively used in programming languages since 4 decades prior to the invention of JS.

comment 10y ago · link · parent

I have read that it is much more important to have a strong mathematical background than a strong programming background to really be good at data science. Many data science positions in the world are looking for individuals who specialized in statistics and related math fields in school.

2716.

Ask HN: What is the missing ingredient in machine learning?

1 points · by hellofunk · 10y ago · 1 comment

comment 10y ago · link · parent

I use clang. There are a number of good c++ bloggers out there, so not sure I'd add anything worthy to the mix.

comment 10y ago · link · parent

>C++ provides two calling syntaxes, x.f(y) and f(x,y)

I have to shamefully admit, I have no idea what this is referring to. In the second one, is this talking about the implicit "this" pointer that is passed to member functions?

I've never seen or written code like the second form -- if in fact f() is defined as taking only a single argument, I've never seen it called with 2 arguments.

My guess is that this is a discussion about the implementation of member functions, can anyone confirm?

comment 10y ago · link · parent

Compared to how strings are handled in many other languages or libraries, std::string is pretty limited. It works, though, and I use it. But when you have to do something basic like a trim, you find yourself wondering why it's not included.

comment 10y ago · link · parent

My own take on the original article that this author is responding to:

>C++ IDEs suck. Big time.

I find Xcode quite a pleasure to use. The autocompletion, debugging, the quick moving around the interface, splitting files side-by-side.. I haven't used other IDEs besides emacs, but nothing about Xcode is getting in my way.

>It’s an unmanageable language.

Compared to a dynamic language or a weakly-typed language (I'm looking at you C, and a few others), I'd say the strong typing of C++ alone helps in code manageability. And, unlike Swift or Clojure or other languages, I find putting an API in a header file and an implementation in a translation unit really helps me reduce time later on. It's an automatic API summary without needing to review your implementation. When I move on from one part of a program to another, I don't want to study my source code just to remember what the access is. Just show me the header. I miss header files in other languages.

>It’s a counterproductive language.

and

>STL sucks.

The tools in the STL are serious time-savers. Sure you can choose not use them or implement your own, but in either scenario, you will likely spend a lot more time writing code than working on your actual problem or idea. In that regard, I'd say C++ and its standard library are very productive. And all the new multithreading and async primitives in C++11/14 take this productivity to a new level.

>namespace stupidity

Without namespaces, you have to work harder to name your stuff and to debug name clashes. Every good language that I've worked with uses namespaces. I consider them a requirement for any language that will handle a large project.

>The language sucks. It sucks because it’s so complicated.

C++ is probably the most complicated language I will ever use. I'm not sure why that makes it suck, though. Unlike many other languages, where it is wise and expected that you can keep the whole language in your head and understand entirely how it works, C++ is a different thing altogether. Nobody on this planet probably understands 100% of C++ -- including its creator, who has said that he gets maybe 80% there. In C++ you can use a small and ordinary part of the language and choose to go to the complicated stuff only if you really want to, but rarely do you need to. Yes, complex metaprogramming is mind-bending in what you can do -- and also, you cannot do a lot of it any other language. But you don't have to do any of that, and most people probably shouldn't, until they want to have some fun and really see how deep C++ can go. And a lot of the most complicated stuff that was important to understand in the past is no longer required reading for new programmers to the language, since the latest standards handle many things for you automatically. I.e. just writing "new" or "delete" and deciding when and how to do so are no longer required and actually discouraged thanks to smart pointers.

comment 10y ago · link · parent

unique_ptr is easy, no overhead, and its friend, make_unique(), allows for concise generation of the smart pointer. what's clunky about that? (of course, make_unique didn't appear until C++14, so it was a bit more clunky before that).

comment 10y ago · link · parent

I've been having so much fun writing functional programs in C++14 after spending 2 years writing exclusively Clojure code. It was amazing to me that I could return to C++ and use most of the same idioms and styles that I'd gotten spoiled by in Clojure. The ability to pass and store anonymous functions, with captures when desired, is so useful, and doing this is easy in C++11/14. It has really changed my appreciation of the language. The algorithm library for doing things like map, reduce-style expressions is also wonderful. C++ is a rapidly moving target and they are not resting on the past.

comment 10y ago · link · parent

If you consider Mozart's own letters to be credible historical sources, he wrote about Salieri's attempts to sabotage his career.

comment 10y ago · link · parent

I'm taking a guess that you probably weren't a personal witness to the interactions between Salieri and Mozart and thus can't say for sure if he was involved with Mozart's death.

What is a historical fact is that Salieri openly and explicitly prevented Mozart's career from going where Mozart wanted it to go. Mozart's talent won in the end, but Salieri did go to great lengths to try and keep Mozart from thriving. He was well-known to have placed many walls in the path of work for Mozart, and this led to the reputation he has -- a product of his own making.

Whether or not he actually killed Mozart we can never truly know. But that there is this "rumor" that he might have is only due to Salieri's own awful behavior in the treatment of Mozart.

2725.

Brilliant Pencil Sharpener Design Helps You Endlessly Extend Pencils(core77.com ↗)

5 points · by hellofunk · 10y ago · 1 comment

comment 10y ago · link · parent

I'm curious how this problem is unique to Vancouver. Berlin's real-estate values have risen some 40% in just the last 7 years or so. New York City, in the 10 years I lived there, had an enormous escalation in what you get for the same rent payment, even adjusted for inflation. Big cities deal with this all over, so how do they deal with this "problem," or is Vancouver somehow unique in other ways?

comment 10y ago · link · parent

Hopefully, you are recognizing your own contributions to this thread as toxic.

comment 10y ago · link · parent

I am compelled to agree that I did not call anyone by any names.

comment 10y ago · link · parent

I think you are looking for a different website, called reddit.

comment 10y ago · link · parent

I disagree. You can definitely be helped to learn how to do this. It is possible to show someone the technique of properly researching a difficult technical problem.
1
909192
110