2,010 karma · joined Dec 27, 2015 (10y ago) · 785 submissions
comment 9y ago · link · parent
You should not require an unpackaged dependency from 2015. This is a problem with your developers trying to use the latest and greatest technologies, with no respect for reality. It is neither your users', nor Microsoft's fault, that your users don't have bleeding edge 2015 upgrades.
484.
Ask HN: Cloud providers offering custom kernels, booting from MBR
1 points · by developer2 · 9y ago · discuss
comment 9y ago · link · parent
Amazon Prime simply cannot scale at the given price point. People who place >= 100 orders a year are paying <= $1 per shipment. The $100/year Prime subscription is not sustainable if people use it. I'm sure they claw back a significant profit from people who buy Prime and then only order 10-20 times a year, but it's possible it doesn't earn back what excessive users are costing them.
Is it a little shady that they offer 2-day shipping with caveats? Yes. They should either make it much more clear that there are no guarantees, or increase the cost of heavy Prime users to be profitable enough to scale it properly.
comment 10y ago · link · parent
It takes a lot of restraint and stepping back from being in "first-person developer mode" to understand that someone else's unique approach is quite likely valid. I purport to be able to do so but I still find it incredibly difficult to ignore my brain's initial instinct to start pointing out the supposed flaws in someone else's structure, when the simple fact is my own code for the same problem would probably be filled with the same holes - just in a different form.
Honestly, there are only a few metrics that really matter when it comes to quality code:
1. Does the code accomplish the task it's supposed to? I mean really, this is practically the only thing that really matters in most cases. Simply: if deployed, will it work?
2. Are there no glaring security problems with the implementation?
3. Does the code not excessively overuse resources (cpu, memory, network/system calls, etc.)? Real excess beyond what is reasonable, not micro-optimizing.
4. Is the code not a complete mess? No serial use of copy/paste, crazy spaghetti mess, or inability or blatant refusal to follow basic coding standards?
That's it. Deploy that shit, and move on to the next problem. ;)
comment 10y ago · link · parent
Part of? I worked for AT&T back when they merged with Cingular. We only asked for the last 4 over the phone, but the entire 9-digit SSN was shown in the app. Every single low-level employee had (has?) the entire SSN in front of them. Never dared tell a customer that little fact when they made a fuss over my having access to their last 4.
comment 10y ago · link · parent
My password wound up being "<main-password>4444444". Was always a little mystified that I could hammer out seven 4's without counting them faster than I could remember that I was at a suffix increment of "10" or "11".
comment 10y ago · link · parent
>> They need to understand other styles so they can form their own
After 15 years of working professionally, I kindly have to disagree to a fair extent. It turns out that most - if not all - developers are not very good at writing clean code. Including (especially?) seniors who think they write the best code on their team. The code you're having the juniors dig through to tweak/maintain is probably terrible code that should not be used as a shining example of anything good. They're more likely to pick up someone else's bad habits than learn something useful.
It took me a very, very long time to realize that it's simply a matter of fact that no two developers think alike, and that any set of developers could argue all day as to why each other's code is ugly, unmaintainable, etc. There are extremely few instances where one implementation of any problem is "better" or "worse" than another - we simply think differently. My code will always be "smelly" to you, and your code will always be "smelly" to me.
Junior developers must be permitted to write new code from scratch. Whether it hits production as-is, or goes through weeks of refactoring, it's a must. No developer ever improved by only reading and maintaining other people's code. I have never met a developer who feels at home maintaining someone else's rushed garbage. And 80%+ of the code we write is rushed garbage to attain the 3 week mandatory deadline handed down by management even though we told them it would take 3 months.
There is a finite amount you can learn by reading other people's code. You might find specific idioms you admire and adopt, but you will not - and probably should not - try to conform to other developers' methods.
Not to mention, forcing new recruits to deal with everyone's legacy garbage is a surefire way to turn them off the industry before they've even begun. Let them code a small new feature; then sit down and find out what they did well and what needs improvement; truly tangible issues, not the typical "that's not how it's done" - which really only means "that's not how I would have done it".
comment 10y ago · link · parent
a) The producer of the events has to store them in semi-permanent storage. I've been there and done that - failed webhooks result in a table of tens of millions of rows, even if the memory on each event is only 48 hours. It's astounding how many events fail to process. And I've been through extensive verification that there is truly no problem on our side - it's always the client who is wrong. Emails back and forth for weeks with the client screaming "it's your fault!" - only to finally receive an "oops, we found the problem on our end... sorry".
b) Frankly, if the consumer of the events fails on a single webhook more than 5 times in a 24 hour period, that event is a permanent loss. The reason it fails consistently is because that specific event is a permanent failure to process on the consumer's side. It is probably throwing a 500 Internal Server Error or similar - every single time. 0.001% of webhook consumers actually have emergency alerts when webhooks fail on their end, so the job will continue to throw a silent/unlogged/unnoticed/ignored error no matter how many times you retry. These are the same type of developers who will never poll your "failure queue", because they don't even understand that their consumer endpoint throws 500 Internal Server Errors on 10% of your requests. You're trying to provide a service to developers that live in a fantasy world where errors and exceptions never happen on their end.
It's a simple fact that developers who consume webhook requests are a disgrace. Chances are that if a request fails two times, it will never succeed. And yet the best APIs will try hundreds/thousands of times over a 24 hour period - simply to prove to that client that it is their fault that they are not processing webhooks properly. There is only so much a webhook producer can do. There is no magic we can do if the consumer is copy/pasting PHP snippets from Google or Stackoverflow.
Story time. The most memorable situation I can remember is a client who was experiencing 100% webhook consumer failure for more than three weeks. The emails from their team - and subsequent phone calls from their CTO - were absolutely stunning; it got to the point that we were hounding our own business people to drop them as a client, the verbal abuse was that bad. Turns out they had a bunch of PHP developers who were for the first time writing their consumer webhook endpoint in C for some reason. They were trying to parse the custom "id" field that they sent us as a string in a JSON field, as an integer. It was all because they sent us a string, and choked on trying to re-interpret it as an integer. It hurts to even think about that case.
tldr; Fuck webhook consumers. Incompetent developers who don't know how to handle errors that are 100% their fault.
Funny aside: the most amusing cases come from PHP and .NET developers who expose their internal server errors in production. When you can copy/paste the response they gave you on a webhook because they are calling an undefined function or method... pure bliss.
comment 10y ago · link · parent
Unfortunately, developers writing code to receive batch requests are often... inadequate, to say the least. They'll write basic looping code without any error/exception handling; so if the 3rd item in a bulk request of 100 items causes a server-side error for them, they throw a 500 Internal Server Error or similar and fail to continue processing items 4 through 100. You simply cannot batch webhooks as a producer, unless you detect a single failure from the client to process a batch as a cue to drop to performing "batches" of size 1 until you receive an error for a single request, at which point you return to bulk. Rinse and repeat.
Honestly, being the producer sending webhooks to consumers which are written by random developers is a nightmare. You have to understand that your customers will not write proper code to accept your webhook requests, even if each request is for a single webhook. You also must understand that your customers will not look to blame themselves for shitty code. You can retry 1,000 times over a 48 hour period, and if their code still fails to process the webhook, it will be YOUR fault, not theirs. Truthfully, it is horrible to be on the sending end of webhooks to random developers/customers.
comment 10y ago · link · parent
Wow, just wow. You must not have ever had a family member or close friend fall ill. If you think someone making $50k/year is financially capable of paying $30k up front, you need a reality check.
comment 10y ago · link · parent
>> In the end, this entire ordeal set me back about 1,300 euros, or $1,455. I sometimes wonder how my health crisis would have played out had I returned to America instead of deciding to stay in Paris more than 20 years ago.
In the U.S., it's likely they would have died; or at least gone $100,000+ in debt - if they could have even qualified for that much credit.
I can understand not covering things like lung transplants for lifetime smokers, or other similar "meh it's their own fault" situations. But when it comes to treating the health of citizens who are not severely at fault for their conditions, there should be absolutely no cost to the individual. Taxes should be enough to handle this, without one's own insurance being part of the equation.
comment 10y ago · link · parent
The only safe domains for everyday use are .com, .net, and .org - and the well-known country codes that have been around for at least 10 years. Anything else is going to cause you headaches, and your "investment" for a short memorable domain name is not going to feel worthwhile.
Plus, the registrars are scum with these TLDs. Just stay away.
comment 10y ago · link · parent
Then you see "<^<()(?R){2}>\z|\1\Q^<()(?R){2}>\z|\1\Q>", and you can't even begin to parse it. For one, I didn't know you could add a quantifier to a recursive pattern. Then there is a backreference to what appears to be an empty capture, which is part of an alternation for fuck's sake, which also happens to include the \Q notation.
I imagine I am in the top 20-30% of regular expression users. And I straight up do not understand a single aspect of how this expression manages to match anything, let alone its intended purpose.
It doesn't matter how this regex was found. Whether it was obtained through an entirely manual process or assisted by some kind of AI, it's beyond incredible. 99.9999xxx% of senior software developers who have been programming for 30+ years could not come up with this if they were given 10 years to try and discover it out without 3rd party assistance.
>> These are smart people of course, but it's easy to get overly impressed
How bloody arrogant, and frankly a bullshit statement from someone who has no idea what they are talking about. This is amazing. Someone would have to sit down with me for at least a week - probably 3+ months - to even begin to explain to me exactly how this works.
Why did I take this comment so personally? I don't know, it sounds like the parent has never even seen a regular expression, and yet is trying to promote their own sense of worth as if they're a genius when in fact they have an IQ of 40. That somehow the people who managed to figure this out are only lucky to have done so, rather than there being any significant time or skill involved. I bet you there are less than a thousand human beings on Earth who could have solved this. It's likely that the people who fucking designed and wrote PCRE could not have even solved this.
Basically, stfu. Why do you have to comment only to diminish someone else's success story? You couldn't have solved this, so don't even try to minimize the achievements of others.
comment 10y ago · link · parent
I have never in 12 professional years been given weeks to test anything. On only a couple of occasions have I been given 3-4 days to extensively test a project with multiple months of development time behind it.
Clearly you're talking about the project where the developer(s) told you very explicitly that it could not be done in less than 3 months. So you just assign the Jira ticket a 3 week deadline anyway. And then flip out when a half-assed project fails to ship. Welcome to the world of software development.
comment 10y ago · link · parent
Who would have thought? Maybe - just maybe - not everyone has the same strengths and weaknesses. The real answer here is obvious: present the interviewee with options. Forcing all potential hires to whiteboard is a terrible idea. Forcing all potential hires to do a take-home project is a terrible idea. It's extremely short-sighted and a little pompous to assume that any single interview format one chooses is going to magically sort everyone into neat little buckets of "good" and "bad".
If you force the whiteboarding approach, you are only going to wind up hiring social butterflies who have absolutely no nerves standing up in front of complete strangers and having all the answers on the spot. If you force the take-home project approach, you're turning off a lot of people who can nail a first impression presenting themselves and their skillset in person.
People are different. Applying the same interview type to everyone is going to target a specific set of strengths, and a specific set of weaknesses. And frankly, no business should be composed entirely of one type of person. Some diversity does wonders when assessing the overall strength of a team.
comment 10y ago · link · parent
It goes way beyond "probably should" regarding security. You're giving a single company not only potential access to your usernames and passwords, but also your last line of defense - TOTP generation. That combination of apps put everything in reach of one company to fuck you over.
Using a password manager that is being coded and maintained by a random everyday software company should be the only concern anyone has over even considering using such an app. That one company has the ability - whether intentionally or via being hacked - to release an update to any of their client apps that sends your entire database, decrypted to plaintext, to any server in the world.
Can you think of any scenario where someone slips in a 2-line commit to one of their client apps that sends your decrypted database to any server of their choice? We're talking about one disgruntled employee who decides they would like access to millions of users' most sensitive credentials. Or perhaps a single firewall opening or social engineering attack away.
It blows my mind that anyone would put this much trust in any for-profit password manager. Every month we hear about yet another major hack against software companies. One day soon, such a hack will happen to 1Password or LastPass, and the majority of their customers are going to have their entire lives (logins to bank accounts, government portals, etc.) exposed.
Such an eventuality cannot be defended against. It will start and end in less than 48 hours thanks to auto-updating applications, and will affect millions.
comment 10y ago · link · parent
There are thousands of individuals and organizations out there with the equipment to analyze batches to determine whether the mix is consistent. Why haven't we heard from them? I can't imagine risk of lawsuit for defamation is the only reason. The whole appeal of Soylent is that the formula is public; surely they can't be hiding behind "publishing analysis of our product is exposing our corporate secrets".
comment 10y ago · link · parent
I will be waiting for the next model, and if pricing doesn't drop by then, it will likely be the moment I need to look elsewhere.
$2799 + tax = $3200 for my 2013 was right at the boundary of what I am willing to pay. $3499 + tax = $4000 is going too far.
To answer the OP's direct question: if it's an employer paying, then yes I am taking a MacBook over anything else.
comment 10y ago · link · parent
I hear this a lot, and it's quite sad. PuTTY is not a great terminal application. It just happens to be the only usable SSH client on Windows, and so everyone uses it because they have little choice in the matter. Connection management and copy/paste is such a pain. Microsoft's release of PowerShell as an attempt to improve upon cmd.exe was an enormous failure.
comment 10y ago · link · parent
It is encouraging to read this in Apple's documentation[1]:
"There is no need, and no API, for your app to know whether or not there is a Touch Bar available. Whether your app is running on a machine that supports the Touch Bar or not, your app's onscreen user interface (UI) appears and behaves the same way."
Skip forward 5 years to a time when software developers assume that every Mac user has a Touch Bar. We will get to see just how poorly they make use of the feature. Even as someone without any disabilities, I sincerely hope I am never absolutely required to use the Touch Bar for features that cannot be found elsewhere in an application.
comment 10y ago · link · parent
You missed the part where Tim mentioned that the butterfly mechanism is a second-generation upgrade with more travel time on the keys. It remains to be seen just how large of an improvement it is.
>> People still use SD-cards Apple!
I'm fine with the SD slot being gone. Just another space-wasting component most of us haven't used in a decade.
This is a portable series of laptops. If you're in a position that you are lugging around a DSLR camera and 5+ lenses (that's why you need SD reader, right?), and a host of other devices you seem to need USB for, you have enough space in your bag for a larger adapter[1] - it even has the SD card reader!
The kind of people who need so much aren't lugging around a laptop to a cafe. They're sitting in professional studios with million dollar hardware, and rendering their IMAX videos on external server clusters. Or at least at home/office with a proper desktop machine that better matches their profession.
Next I'll be hearing about how terrible it is that the Apple Watch can't edit 4k video.
[1] http://www.satechi.net/index.php/computer/connectivity/card-...
comment 10y ago · link · parent
These are laptops with built-in keyboards and trackpads. People who opt for external input devices do so via Bluetooth. I've never seen a USB keyboard plugged into a MacBook; and even if you have a fancy gaming keyboard, USB-C replacements will be out in a matter of months. Or again, the dongle.
This series of laptops is a perfect progression. It needed to have 4 USB-C ports, and it does. No complaints.
Well, other than the lack of a hard escape key. Turning shift+F6 into shift+fn+F6 is annoying, but I'll get over it. The only applications that I use fn keys with have key remapping, so if I really can't stand it I'll change my shortcuts. The escape key though... not looking forward to the day I upgrade my hardware and find myself having to enable the "caps-lock is now the escape key" preference.