Better HN
topnewbestaskshowjobs
Log inSign up

vectorpush

2,683 karma · joined Jun 23, 2011 (15y ago) · 778 submissions

Submissions

comment 11y ago · link · parent

> It turns all cops into walking surveillance machines

Cops already function as defacto surveillance machines. The bodycam doesn't capture any more than the cop does with his/her own eyes and the cop has the authority to act based on that alone, the bodycam is at least an impartial representation of the cop's (or citizen's) allegations.

comment 11y ago · link · parent

I do wish CoffeeScript had stronger type support, however, I don't want to give up indentation, optional object brackets, optional function parens and easy loops.

There are a ton of other CoffeeScript features I love like the string interpolation syntax, comprehensions, implicit return, @ for this, improved switch syntax, ranges and a ton of other stuff, but I'm going to hang on to those first four for as long as its practical to do so.

comment 11y ago · link · parent

I love two spaces. I used to use four but switched a few years back and now anything more than two looks strange to me. It's just a preference, but it does keep your line length shorter, which is nice if you like to adhere to a maximum line length throughout your code.

comment 11y ago · link · parent

> Bad code causes real harm to everyone else on your team, so coders have more incentive to worry about the skill of their coworkers than other professions do.

There isn't anything unique that bad code inflicts on your co-workers that isn't analogous to the problems faced by most people who have to deal with incompetent coworkers.

comment 11y ago · link · parent

II reject the idea that you can judge someone as a cultural reject based on the salary they take home.

comment 11y ago · link · parent

Quintessential hipster bullshit. His community doesn't have any special rights to dictate the culture of the region and if he doesn't like the newcomers he can leave. It's also absurd to presume that just because someone has a high paying job they cannot qualify as a legitimate part of the community. Your petty and insular mindset is gross.

comment 11y ago · link · parent

Except when stuff on twitter gets people fired.

comment 11y ago · link · parent

I'd consider the sentence excessive were it not for the multiple attempted murder-for-hires. If someone is intellectually and morally capable of directing a criminal enterprise that funds murder as a calculated business decision, and they try to do that, they've earned themselves a life sentence in my view.

comment 11y ago · link · parent

> Because there is an opportunity cost to having an SD slot. Remember it takes up physical space inside the device, which could be used for more internal memory, battery space et

There are opportunity costs for everything, but microsd readers are a cheap, mature, commodity technology that's been in top-end phones for ages, its impact on the phone's available real-estate for battery and memory is nearly negligible.

comment 11y ago · link · parent

> I think Google and Samsung have decided to ditch sd cards to prevent the user having a shitty experience.

This line of reasoning makes absolutely no sense. How could having the option to use an SD card with your device make for a shittier UX. The use of an SD expansion slot is completely optional, if you don't have the desire to use an SD card it has absolutely no bearing on the UX, and if you do, no matter how shitty the UX, it will always be preferable to the absence of removable media capabilities altogether.

comment 11y ago · link · parent

I've never known Real Clear Politics to be particularly partisan.

edit: why do some have that impression?

comment 11y ago · link · parent

Are there any alternatives to kafka that are also modeled after the "message queue as a log" concept? In particular, I'd like to be able to reconsume arbitrary ranges of 'already processed' log/event/message data as well as trust the log as the ultimate deterministic source of truth for the state of the system.

The reason I don't just use kafka is because the "quorum" style scaling is overkill for our needs since the app will be for internal use only and will likely never exceed more than 1000 simultaneous users. Also, I've heard that zookeeper (required to use kafka) has its own technical overhead that I'd like to avoid dealing with if possible.

comment 11y ago · link · parent

I'm guessing that by "real" he means "useful", as in it can be "used" to pay for things like medical bills, insurance, student loans, taxes, rent, utilities, groceries etc. Bitcoin is definitely "real" in some sense of the word, but for most situations it functions similarly to money that is not real (like monopoly money) in that it won't be accepted in exchange for tangible goods and services. Even the relatively few establishments that accept bitcoin as payment don't really regard bitcoin as real enough to accept directly and instead hire a middle man to convert bitcoin into "real" money on their behalf.

comment 11y ago · link · parent

> I'm saying it's disappointing everyone focuses on volatility, yet everyone dismisses the other advantages of Bitcoin.

There are no advantages for the vast majority of people and the volatility disadvantage applies to anyone being paid in bitcoin. I'd consider accepting bitcoin for a single job or project if it was the preferred method of payment for the client, but I'd never accept a regular salary as bitcoin since I like to save part of my check each week and saving money in the form of bitcoin is a terrible idea.

comment 11y ago · link · parent

> He keeps going on about SQL not requiring it, but SQL requires it in every statement (the select clause).

haha a string of SQL is not the same thing as a type constrained data structure.

> I'd hate to be the one who has to maintain an admin app that could potentially access 230 tables with dynamic column references scattered all throughout the code and no types to keep things in order.

Thankfully, the client used a database that is capable of enforcing type constraints automatically, so I didn't have to spend time writing business logic to reiterate what the database already knows and strictly enforces, in a language that can't even enforce type constraints anyway. Re-declaring your column names and types in javascript literally does nothing except waste time. You shouldn't be reading through your application code to understand the schema of your database, especially when you're dealing with hundreds of tables.

comment 11y ago · link · parent

I actually agree with you and find that writing queries directly gives better performance, is much easier to debug, makes it easier to integrate more advanced database features (like stored procedures or non-standard features like postgres schemas or the jsonb data-type), and avoids the configuration overhead that some ORMs require. In fact, I chose bookshelf precisely because I didn't have to do anything except supply the table name and start CRUDing whereas I'd normally just start writing raw queries in a situation where my goal was to start talking to the database ASAP.

comment 11y ago · link · parent

Ok, but what I'm saying is that I didn't have to enumerate any schema in this case. I understand the benefits of doing so, but it's sometimes desirable to just get something running rather than spend time mapping your ORM to your schema. If I wrote the SQL directly, I also wouldn't need to enumerate my columns in advance, but bookshelf offers some of the conveniences of an ORM without adding an additional configuration step to the process.

comment 11y ago · link · parent

> I don't find that creating types to make this contract explicit takes much time at all

This depends on the complexity of your schema. In my case, I was dealing with a 230 table legacy application where some of the tables had as many as 70 columns. I was tasked with building an ad-hoc administrative tool for the owners so that they could perform a few specific tasks and periodically review some information in the system.

I wanted to use an ORM because I didn't want to write a bunch of boilerplate SQL to rig up a tedious but relatively simple internal CRUD app. With that in mind, it certainly didn't make sense to enumerate the details of every column when the alternative (raw SQL) also wouldn't require me to do that. Enumerating explicit column information was unnecessary and certainly would have taken me a lot of time.

comment 11y ago · link · parent

On the other hand, this behavior is quite nice if you want to quickly build something around an existing database and you don't really want to spend time reenumerating the entire schema in code before being able to leverage the ORM.

comment 11y ago · link · parent

Bitcoin and blockchain enthusiasts have been claiming that bitcoin (or etherum) is going to take the world by storm any day now, yet all I ever see anywhere are big claims (revolutionizing payments, disrupting remittance, ending wars, freeing the people, destroying the banks etc, ad nauseam) with very little substance and lots of scams, frauds and dead-end ventures. Dark markets, internet gambling and a handful of other novelty and niche communities can extract genuine utility from bitcoin, and that should continue into the foreseeable future, but the general population just has no use for it. None. Despite all the hand wringing about having to endure the treachery of big banks, pull style payments, and entering long credit card numbers, bitcoin is still harder to use, even harder to keep secure, and without any guarantees, assurances or consumer protections. Bitcoin is an interesting novelty at best, and everyone knows it, even many bitcoin enthusiasts.

Now, in recent months, we're suddenly hit with a bevy of stories about big name financial brands and famous VCs pouring cash and research into the blockchain, and just like that, the goalposts have shifted. This is what we've all been waiting for; this is what will really bring bitcoin into the mainstream, there has to be something big here when you look at all the colossal mountains of cash that have been dumped into the bitcoinverse... yet somehow, we're still at a loss as to exactly how the "x but with blockchains" formula is meant to revolutionize everything. If the 100 million dollar investment into 21inc's vision of putting a bitcoin miner in every refrigerator is any indication of what we're to expect from all this investor cash, I think we can safely assume that what we're witnessing is simply the hyperbolic bitcoin hype machine functioning within normal parameters.

Of course, I'm probably just an idiot who doesn't "get" bitcoin, it's pretty difficult to understand, since even after all these years I just can't grasp the amazing potential of bitcoin. What other explanation could there be?

comment 11y ago · link · parent

In my experience, Ruby (particularly rubygems) is quite a pain in the ass with regard to package upgrades, especially when the previous developer/ops has leveraged rvm to install multiple combinations of ruby/gem versions. I can't tell you how many times I've had to trace down problems in a project because a single gem fails to upgrade/pull/compile/resolve on 2 out of 4 machines even though the project has an identical gemfile and available ruby version on every server.

I contrast this with node/npm where my projects seem to behave identically across deployments (and in some cases, when in a bind, I've even been able to simply tar & scp the project src and have it run without further effort beyond installing node, something I've never been able to do with ruby).

comment 11y ago · link · parent

It was just a joke, but fair enough lol.

edit: i'd just add that even though it's only a joke, a comment regarding (even if critical of) the language used to write the code is absolutely on topic.

comment 11y ago · link · parent

I wouldn't be so sure... it is written in coffeescript after all. God forbid.

comment 11y ago · link · parent

"Offchain" aka marketing speak for a standard relational database.

comment 11y ago · link · parent

> People used to think of Bitcoin as a safe heaven when else goes downhill

I don't really think this is true. There might be some bitcoin enthusiasts who hold this view, but I haven't seen any evidence of this belief in the wider finance community.

comment 11y ago · link · parent

The Daniel Quinn novel Ishmael comes to mind.

comment 11y ago · link · parent

It's also been demonstrated that tumblers are not always reliable depending on the implementation and how they are used. There is also the risk that the tumbling service could be seized, hacked or operated by "unethical" individuals. It's a complete gamble as far as anonymity is concerned.

comment 11y ago · link · parent

> That seems to me to be more a decision for the search engine to make.

I'd argue that it's absolutely the site owner's prerogative to determine which sections of the site can be indexed by a search engine.

1
789
26