Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,281 karma · joined Nov 23, 2012 (14y ago) · 6,748 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 9y ago · link · parent

but if you're in first grade then you do IV + II = IVII...??

To each their own, but I'm unsure of the relative ease of roman numerals

comment 9y ago · link · parent

quicksort? cat? ls?

I mean some of these things have bugs still, but generally when you have something of fixed scope then there are less bugs over time. Especially if you're restricting your scope to something simple

comment 9y ago · link · parent

Serious question: How can smart contracts create the "proper" trustless environment for most workplace contracts?

For example, stock option agreements are usually pretty straightforward... until a termination date has to be decided on. How does the termination get put into the contract?

Though I suppose smart contracts could exist as an automation mechansim , but there's a "wrapper contract" that provides "real deal" legal protection against abuse?

comment 9y ago · link · parent

I imagine that the simplest explanation is that costs end up killing these programs.

Good educators cost a decent amount of money, so if you have a high quality bar you're looking at a lot of (mostly fixed) costs. Add building rent + admin costs.

Public schooling costs $10k/pupil on average, and I imagine most of these code schools have a slightly higher bar.

comment 9y ago · link · parent

Let's not forget that standard media diet includes Fox News and One America Network (which has ~15% the viewer count of Fox News). Old media isn't necessarily great at filtering out nonsense.

Though I agree that the newsfeed tends to put these things next to the NYT or the Guardian, I feel like "page rank"-y stuff could help smooth this out. I've already seen improvements to my FB newsfeed for this kind of stuff over the yearse.

comment 9y ago · link · parent

the thing is that Flash basically gives you "dynamic illustrator".

A litany of tools for manipulating images and building animations right in the program, without needing to write a single line of code.

And then, on top of that, you can actually.... write code! And it works quite well!

Flash is one of the funnest programming environment to use for "interactive art". Straightforward things are almost always straightforward, and it's much easier to WYSIWYG your way through a lot of tedium.

comment 9y ago · link · parent

Though I feel like a lot of BTCers are not interested in this, payment networks based on top of BTC would be very interesting.

Essentially no barrier to entry, and some federation could happen.

Of course, what you end up doing is creating banks, but hey they're not regulated by the government if you are behind 5 proxies? "Hobbyist bankers" might be fun.

The ultimate frustration of bitcoin is that it can occupy the entire range of decentralization, but the community compares everything to the logical limits of "the Federal Reserve will defeat math and generate BTC" and "I don't even have to trust my own computer to do this transaction!".

comment 9y ago · link · parent

This is pretty amazing work. I'm very excited for the future here.

I do wonder if using linux will make battery management hard

comment 9y ago · link · parent

The cynical example:

- People live in countries

- countries levy taxes to be paid in "real money"

- banks deal with the "real money"

- BTC exchanges have to work with these banks + gov't

comment 9y ago · link · parent

what use is the gold if the US economy collapses? Whose gold would it be if the gov't falls over?

It kind of works if you have a place to run off too, but nobody in the federal government can just go take the gold and hide for a bit. The incentives are aligned so that the gov't does "the right thing" (stem the fall)

comment 9y ago · link · parent

The main problem I see in these discussions is that you can either conceptualize currency as a Thing (and therefore creating it out of nothing is "weird"), or as an Illusion/Social Contract (and therefore you're now beholden to the will of society).

Though the Thing conceptualization doesn't hold up too much when you realize that the practical value of BTC beyond the social value is zero. they're just numbers!

comment 9y ago · link · parent

I don't know how possible this actually is. I was having some issues with this, personally

Like isn't the point of docker to not be able to install a bunch of stuff after the image is built?

comment 9y ago · link · parent

you know what is an even better store of value? Just buying across the S&P 500. Treasury bonds also work.

I can understand going for Gold or BTC if you do not have reliable access to US financial markets, but if you do have this, there's no reasonable financial argument for using BTC as your store of value.

If the dollar falls apart, you won't be able to use BTC.

comment 9y ago · link · parent

we were kind of in the same boat, but realized you can still use the "machine VM" setup from before and just install the required dependencies.

Not great, but works.

comment 9y ago · link · parent

I understand this frustration, but my understanding is that patterns exist to _ensure_ transformations go through exist in Haskell land. Im thinking about stream fusion for example. Lots of "pipe-y" libraries exist to make sure your program consumes input in a streamed manner.

So while your O(n) code might sometimes unreliably be turned into O(1), if performance is your game you can use these kind of libraries to endure O(1).

comment 9y ago · link · parent

If you know you'll either be broke or in debt, sure. But the alternative is making sure nobody's broke

comment 9y ago · link · parent

You can get a lot of advantages of Mypy by combining it with a whitelist/blacklist (you can do this through a config file). Lots of missing stuff but with strict optionality alone you're gonna catch a lot of real world bugs

comment 9y ago · link · parent

Considering that in order to get this advantage you have to at one point end up with $0, it seems like a bit of a phyrric victory

comment 9y ago · link · parent

This is grasping at straws.

"Bitcoin has suffered hacking incidents" is clearly talking about the ecosystem having hacking incidents, not the coin itself being hacked.

Though I guess you made this comment earnestly, so it wasn't that clear...

comment 9y ago · link · parent

but isn't the problem the same as with other places? If you don't have enough volume, you can't justify the costs. Robots are pretty expensive, right?

comment 9y ago · link · parent

> If hunger had an effect on our mental resources of this magnitude, our society would fall into minor chaos every day at 11:45 a.m. Or at the very least, our society would have organized itself around this incredibly strong effect of mental depletion.

Kind of pedantic, but we indeed organize society around lunch time

comment 9y ago · link · parent

You can still opt for function-based views almost 100% of the time. Though I'm a big fan of FBVs for "You see what you get", I've started to find that writing your own, project-specific CBVs might pay off for speed + enforcing style in handling requests though.

Fat models are most definitely a pain. Our solution has been to not rely on models for almost anything except for DB interaction, and instead have wrappers that act as business functions. So instead of Post.objects.create, you just write create_post. You still get ORM goodness for the most part, but your validation/creation layer is under control so you can apply your style.

Overall, Django's defaults and even the fat model approach can work really well if you're writing a CMS, for example. And fortunately it's getting easier and easier to use only what you want.

I hear you for the mutability of request objects. Mypy has helped us out a lot, but Django is pretty resistant to those.

comment 9y ago · link · parent

while Django's outer layer is pretty great, the innards are somewhat messy.

This is mostly around performance reasons, but also a lot of hard-to-follow code paths.

Though a lot of Django projects can take this and make very clean code, it can bite you when you go deep enough into certain things.

comment 9y ago · link · parent

seamless integration with loads of apps (especially on mobile). Lets you build a "cloud" feature into apps without actually needing servers.

It's not super useful for big stuff, but nice if you're trying to write stuff just for yourself.

comment 9y ago · link · parent

I handled a transition of a multilingual/multiencoding Python 2 project to Python 3.

Firstly, you can _still_ work entirely in bytes in Python 3 if you want to. But you can't call print on them... For good reason! You don't know the encoding to use to display them!

When we transitioned, there were a lot of subtle issues in our code due to our almost cargo cult usage of encoded/decode that ended with a lot of redundant transformations. Loads of that disappeared afterwards.

You can still operate in "Python 2 mode" in Python 3. The only exception I can think of is the difficulty in getting a bytestream version of standard output.

Also... Python 2 is decidably not like Go or Rust. The simplest example is how json.dumps would return bytes or a Unicode string depending on the keys on your object. No respect for typing

comment 9y ago · link · parent

because things happen outside your immediate circle? Like maybe you work at a better company than most?

For example, if on your team of 20 engineers you have 3 women, then your team is already above the national average.

It's for the same reason you can think there's systemic racism in the American policing system without thinking that your cousin is racist because they're a cop.

comment 9y ago · link · parent

Any VC whose reaction to this is "oh I guess I should avoid taking meetings with women because I just can't know what goof will cause me to get sued" is probably already making some women uncomfortable.

If you cannot understand how _stupidly easy_ it is to have a completely non-sexual, non-harassing conversation with a member of the opposite sex, you most definitely should read up on some stuff. I mean this in the most non-snarky way possible.

Wouldn't it be nice if half the population weren't completely turned off by the idea of talking to anyone in tech?

comment 9y ago · link · parent

I think he spotted you https://twitter.com/bafeldman/status/880405704510713857
1
130131132
225