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

> For the first 30 years of your life, you make your habits. For the last 30 years of your life, your habits make you.

So if you live longer than 60, I wonder that means of those years in-between, after age 30.

comment 9y ago · link · parent

> It just doesn't make any sense that people are inherently bad at teaching.

Whether it makes sense or not, what is your personal experience with others who try to teach you? Did you have nothing but highly effective teachers in school?

If you did, you are in the rare minority.

comment 9y ago · link · parent

Perhaps it should be normal.. but it isn't. Which is also why we have great teachers, and ineffective teachers.

comment 9y ago · link · parent

That's a neat example (the first one) but it's using compile time constants in the type check, which is not as impressive. You could write a similar macro in Clojure that does that.

comment 9y ago · link · parent

Well I can do runtime checks just as easily in Clojure, but I'm really talking about compile time checks.

1326.

On whose authority?(z.caudate.me ↗)

1 points · by hellofunk · 9y ago · discuss

comment 9y ago · link · parent

As with my comment about typed racket, I can't really use common lisp in my work, however clojure is very portable and I can use it (as clojurescript) as a first class language on iOS, and Mac, and the web.

comment 9y ago · link · parent

I would love to use typed racket, but I cannot really use it in the environments I program for, which are largely commercial apps on Apple platforms and mobile. If I could, I would jump to it in a heartbeat.

comment 9y ago · link · parent

When I discovered lisp several years ago, it was indeed the textbook moment of enlightenment that you've heard about. This book was a part of that introduction for me (along with Practical Common Lisp). After working in C-like languages, I had no idea that programming could work this way as in lisp, the idea of code and data being inseparable, I even had dreams at night about run-time data structures getting expressed as quoted lists! (I kid you not!)

It is now several years later and I have earned my living ever since by working in another lisp, Clojure. And I have indeed learned a lot along the way and what I've learned does indeed translate to how I work in other languages (even C++, which I also love).

However -- it is not all roses and nicely-flavored toothpaste after a savory feast. There is one aspect to lisp programming that, by virtue of its dynamic typing, I still find myself struggling to reconcile. No matter how much I marvel at what I can do in one or two lines of lisp, I do still often find myself making dumb mistakes that a compiler would catch instantly. Without type annotations and checked structured data for everything, it can also be hard to remember what a function does, or what its variables represent, when you read the code later.

One aspect of this that has made a big difference is naming -- how you name things in lisp and dynamic languages is a skill in its own right that helps guide the readability of code in the absence of types. When I look at C++ code I've written, the verbosity of naming is a clear influence from lisp. And it is an improvement.

The other feature that occurs more often is in-line documentation. It is a joy to read Clojure programs (the good ones, anyway) where every (non-trivial or meaningful) function has a little paragraph summarising what it does. This is just good in any language, but somewhat essential in a dynamic one.

Finally, run-time contracts and things like Clojure.spec come about to help fill the void of static typing. The problem I have there is that you add back into your code a fair amount of the verbosity that was removed in the first place by using a dynamic language (just look at Clojure.spec's lengthy annotations for a function signature, and I find myself wondering... why god oh why?). At which point, I then wonder why not just go back to using a static language.

So using lisp taught me perhaps one final, frustrating lesson: there are just great things about both dynamically typed and statically typed languages, and I've learned that the fence is an awkward place to sit.

comment 9y ago · link · parent

I entered a search term for a programming language and got a bunch of lines to "copy" that seemed to be for accounting or sales, not tech.

So, either that's the secret to getting placed in good development positions -- to show that actually you are something else -- or, this site is Doing it Wrong.

comment 9y ago · link · parent

There is a big difference between language idioms and design patterns.

comment 9y ago · link · parent

That might be (perhaps) true in other languages, but that is not the point in Lisp.

comment 9y ago · link · parent

> rather than looking like templated design patterns

Speaking about another lisp, Clojure, it is a goal that each program finds its own design pattern. That's kinda the whole idea. Design patterns can really get in the way, unless your language requires them, which some languages do (i.e. Java where everything must be an object, so OO it is, or Apple's platforms where the MVC pattern is deeply interwoven into all the APIs).

Lisp in general is about exploring a particular problem using only the constraints of that problem, without concern for how different problems get solved. By contrast, design patterns are about forcing a common solution onto a range of different problems.

comment 9y ago · link · parent

I never used the word harassment, myself. I did say "a bit of a bully," and I think that phrase is fine when referring to others who openly insult people. But apparently, my opinion is in the minority here, and that's fine. Surprised to see my comment turn into this thread.

comment 9y ago · link · parent

I didn't introduce the word "harassment" into this discussion, incidentally. I did use the phrase "bit of a bully," so perhaps that was the domino.

comment 9y ago · link · parent

Agreed. Twitter tends to bring out the troll in some people, and that might be the case here.

comment 9y ago · link · parent

> If that is what he thinks, that is a perfectly reasonable thing to say [calling them ignorant or stupid], particularly as no-one is forced to ask him questions.

You are right, we have a different idea of what is polite behavior, and what is insulting behavior.

comment 9y ago · link · parent

> Even if he has [harassed someone], that doesn't invalidate anything he's saying

I just don't think there is ever a good reason.

He does have a tendency to say things about a person suggesting they are ignorant or stupid when they ask a question he doesn't like. There often seems to be a fine line between him getting annoyed and him belittling the contribution someone else makes to a discussion. He is extremely sensitive.

I just think if someone is going to seriously discuss how to be more emotionally stable, they should probably demonstrate more stable behavior themselves.

comment 9y ago · link · parent

I've seen him single out (and with rather insulting wording) people who disagreed with him politically or even on trivial topics, among other questionable, or at least insensitive, behavior towards individuals.

comment 9y ago · link · parent

Indeed, I say this time and again to friends and family who marvel at a lifestyle that has allowed me to live on several continents: there is no such thing as a perfect place to live.

1341.

Kaspersky software believed to been used to take classified NSA data(cbsnews.com ↗)

4 points · by hellofunk · 9y ago · discuss

comment 9y ago · link · parent

That's awful, I'm sorry to see that. The haze problem was one of the main reasons I left Singapore. It's no way to live, no way to raise children. In 2013 I remember there was a street where a lot of birds died mid-flight from suffocation on the smoke, fell to the ground and littered the pavement.

It's just sad to see a problem like this, all caused by human activity. It could be stopped but not much is being done to do so.

comment 9y ago · link · parent

Mine is 15". It does depend of course what you do on the machine. I'm typically just running emacs all day, which is lightweight.

comment 9y ago · link · parent

Well, my MBP is 10 months old, the 2016 model (not the touch bar model) and I get 15 hours battery still, after daily rigorous development use since buying it.

Just as I don't think there is such a thing as a perfect place to live, a perfect person to spend your life with, a perfect food to eat every day of your life, I also don't think the perfect computer company exists, the perfect laptop exists... But when I weigh all the conveniences and quality of my MBP with other non-Apple machines I've owned, it really is a no-brainer for me.

comment 9y ago · link · parent

> I'm experiencing a lot of anxiety lately that I'm missing the cryptocurrency boat

Don't let that be a source of anxiety for you, there is no point to that. There are plenty of other things to worry about in life than finding the perfect investments. And crypotcurrency remains a risky bet regardless of any recent activity in that market. I know plenty of very smart people who are very knowledgable about bitcoin but who refuse to buy into it. There's nothing wrong with that.

comment 9y ago · link · parent

> The hardware is excellent

Is there a particular model you recommend? Seems like there are a variety of chromebooks, I wouldn't expect them to all be the same quality, but perhaps they are?

comment 9y ago · link · parent

> Chromebook hardware is great for the money.

Do you have a particular model that you recommend?

comment 9y ago · link · parent

I cannot find any option to disable geolocation in my current Chrome version on Mac, and when I use a VPN and connect via a different country, sites I visit in Safari are in that country's language, but sites I visit in Chrome, even when private browsing, know the language to use based on my actual country location.

comment 9y ago · link · parent

Is anyone concerned about privacy using a Google laptop? I noticed recently that for years I've relied on Chrome's private browsing feature only to learn that it does not disable geolocation (unlike Safari) and websites always know where I am located even when browsing privately. And turning this off can change depending on the version of Chrome (in fact I cannot figure out how to turn it off in my current version). I wonder how much intrusion these chromebook's make into your privacy? User data is a core of Google's business model, so that is a big problem for me.
1
444546
110