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

I’m talking about a scandal from a couple years ago where apples were submerged in buckets of toxic paint to get a red color.

comment 8y ago · link · parent

I read about apples exported from China, covered in a toxic paint so they look red and beautiful, even though it is harmful, all to make a buck. I just wonder why humans have not evolved to, at a minimum, actually show some caring attitude toward others of their same species.

I think we're all doomed.

comment 8y ago · link · parent

As I get older, I really wonder why people do this to other people. In this case, I'm talking about the manufacturer of this product. They know other human beings are going to spend a lot of money to use their products? It's important to make money, but at what consequence?

comment 8y ago · link · parent

> I find it funny that everyone misremebers this.

Probably because the Zen is also right about most people not being Dutch.

comment 8y ago · link · parent

> Terse code often needs to be restructured when requirements change.

It depends if the code is terse because of the programmer’s approach, or just naturally terse because of the language.

comment 8y ago · link · parent

I like Rust as much as the next HN enthusiast, but there's a reason there's not a lot of Rust code actually out in the wild, or jobs much available, or libraries with more than one creator/maintainer... and it's because of all the words you could use to describe Rust, the last one on that list would be "easy." Anything non-trivial in Rust is a lesson in extreme patience.

comment 8y ago · link · parent

Maybe not languages but certainly frameworks, like Qt and many others, offer a dynamic language layer on top of the C++ or other static language.

comment 8y ago · link · parent

Agreed, it's like saying C++ has a borrow checker like Rust because memory sanitization tools exist.

comment 8y ago · link · parent

The size of your code is the number one predictor of bugs. The more code you have, the more bugs you probably have. Smaller code bases have less bugs. Verbosity means more code.

This is why very terse dynamic languages like Clojure often have relatively low bug counts despite a lack of static checks.

Some interesting reading on this topic:

https://cacm.acm.org/magazines/2017/10/221326-a-large-scale-...

comment 8y ago · link · parent

Functions are ultimately more powerful since you can store them, pass them to other functions, partially apply them, etc. You can't do that with macros, of course.

But macros allow very repetitive stuff to be automated which is a real productivity win.

comment 8y ago · link · parent

> Unpopular opinion: I hate meta programming

Come to the dark side and start programming Clojure. Because there, meta programming is no different than regular programming -- your macros are just normal Clojure functions that happen to run at compile time, and they have the full language to do whatever you want.

comment 8y ago · link · parent

No, only Android 6 and later has provided proper user permissions [0] :

> You declare that your app needs a permission by listing the permission in the app manifest and then requesting that the user approve each permission at runtime (on Android 6.0 and higher).

> Beginning with Android 6.0 (API level 23), users can revoke permissions from any app at any time

[0] https://developer.android.com/training/permissions/requestin...

comment 8y ago · link · parent

Sorry, this site really needs a web designer.

comment 8y ago · link · parent

I was expecting a nice treatise on something like this topic:

https://lispcast.com/nil-punning/

comment 8y ago · link · parent

> When you install FB or any other app you get a nice list of things the App is allowed to do, if you do not want the app to do those things you should not install the app.

This is actually a fairly recent change to Android. It did not used to provide you with these choices. It demonstrates that user privacy is a bit of an afterthought with Android.

For Apple, these kinds of user choices have been there since the start.

comment 8y ago · link · parent

> Gestures changing every month and becoming increasingly complicated with small variations doing different things, inconsistent experience between iPad and iPhone

Why would the phone's gesture controls change for you every month?

comment 8y ago · link · parent

> Even more annoying about the iPhone is the always growing "Other" space on the phone. I was constantly short on disk space with no way of knowing what the cause was or how to clean it up.

Hm? There is a very simple Storage page in the Settings that shows you exactly how much storage each app is taking up (including things the app is storing) and it is ordered by size so you can immediately see what's using up your space and delete it if necessary. I have an old 16GB iPhone that is still chugging along after 7 years and is my daily phone but it is a bit lacking of space and this Storage area is a simple fix.

comment 8y ago · link · parent

> Much more transparency about what the phone is doing

This is a curious point, especially considering the recent FB Android app revelations about lots and lots of things the phone was doing that nobody realised, things that cannot happen on iOS due to stricter privacy enforcement.

I suppose no month is complete without an iOS/Android flame war, but hopefully that won't happen here. For what it's worth, smart phones are all pretty darn awesome and if there is one key distinguishing factor that seems to persist across generations of devices, it's privacy and security, of which Apple is far different. If that doesn't matter to you, pick a year, any year, and you will find one or the other platform to offer features that the other lacks.

comment 8y ago · link · parent

Thanks, that is definitely interesting. We have Norvig to thank for every-day Clojure functions.

comment 8y ago · link · parent

I don't see any functions in that code that wouldn't have existed in Clojure 1.0. It's all pretty standard Clojure stuff, very basic 'for' constructs and generalized lazy sequences with 'range' and others.

Which function were you thinking were explicitly added to the language that are in use here?

comment 8y ago · link · parent

Here is Rich Hickey's port of this Norvig exercise to Clojure:

https://en.wikibooks.org/wiki/Clojure_Programming/Examples/N...

comment 8y ago · link · parent

Banking, unfortunately.

1043.

Ask HN: How did the pros manage source code decades ago before modern SCM?

2 points · by hellofunk · 8y ago · 2 comments

comment 8y ago · link · parent

> - “I don’t want to pay those high real estate taxes.” Renters still pay the same real estate taxes, it’s just baked into the rent and can’t be deducted from taxes.

It's quite common to rent a house when it is worth X, and for that rent to remain nearly the same even if the house becomes worth X+Y. Due to common restrictions on how much rent can be increased year to year, the taxes on the house can (and often do) grow considerably for the owner, while the rent stays nearly the same. In this very common scenario, the taxes are not at all baked into the rent and the owner starts to lose out until you move and they can raise the rent considerably for a new renter.

In other words, renting does in fact protect renters from a rise in property values when real estate tax enters the equation.

The flip side, of course, is when property loses value, the renters potentially lose out since they continue to pay based on prior taxes.

I should add that the pros and cons are often local to the country you live. In many places, Germany for example, mortgage tax is not deducted from income tax. Which is perhaps why half the population in Germany rents a house for most of their lives.

1045.

JxBrowser vs. JavaFX WebView(jxbrowser.support.teamdev.com ↗)

1 points · by hellofunk · 8y ago · discuss

comment 8y ago · link · parent

Strange luck you've had there. Odd.

I've owned three Macs over many years, and at least in my own experience, they have been the most reliable machines I've owned in the twenty years I've been developing. I still have a 2011 13-inch MBP that despite a hard drive replacement is still whirring along fine. My main dev machine is a 15-inch 2016 model that is the most dependable I've personally experienced.

comment 8y ago · link · parent

been there, tried it

comment 8y ago · link · parent

Only tried evil (which I think is the Spacemacs default?) with paredit and while paredit is a truly stellar, evil mode does not play well with it. Perhaps the other paren tools you've mentioned work better with evil? With paredit, evil editing can delete only part of a paren leaving unmatched problems.

comment 8y ago · link · parent

Except that evil mode takes priority over paredit and it is quite possible to delete parens and end up with unmatched.

comment 8y ago · link · parent

> For example, I never let my wife’s Windows 7 machine go for more than about two weeks without restarting it, whereas I reboot my Linux box only every few months. One time I had a job doing software development on Windows 3.1 and my computer generally had to be rebooted at least twice a day if it was to continue working. Of the half-dozen Windows laptops that I’ve owned, none of them could reliably suspend/resume ten times without being rebooted.

I realized to my astonishment last week that despite using my Macbook for 12+ hours of coding nearly every day, I had not rebooted it in nearly four months! This only became clear when I did an OS update that needed a reboot.

1
343536
110