Better HN
topnewbestaskshowjobs
Log inSign up

developer2

2,010 karma · joined Dec 27, 2015 (10y ago) · 785 submissions

Submissions

comment 9y ago · link · parent

I recall reading at one point that apps written in Swift statically bundle the entire set of libraries, whereas Objective C apps use shared libraries from the operating system. Something about Swift not having yet reached the level of maturity to warrant the use of stable shared libs. If and when Swift switches to supporting shared libs, app sizes should shrink.

comment 9y ago · link · parent

I'm amazed at how quickly everyone is trying to allocate blame, as if there must be someone upon whom to heap it all on. Commenters on both Reddit and HN are being high and mighty, offering wisdom that they would never have allowed this to take place, while eager to point fingers. I bet far more than half of these commenters have at one time or another worked for at least one company that had this kind of setup, and didn't immediately refuse to work on other tasks until the setup was patched. Hypocrites.

The fact is, this kind of scenario is extremely common. Most companies I have worked for have the production database accessible from the office. It's a very obvious "no no", but it's typical to see this at small to medium sized companies. The focus is on rushing every new feature under the sun, and infrastructure is only looked at if something blows up.

Nobody should have been fired. Not the developer, not the senior devs, not the sysadmins, and not the CTO. This should have been nothing more than a wake-up call to improve the infrastructure. That's it. The only blame here lies with the CTO - not for the event having taken place, but only because their immediate reaction was to throw the developer under the bus. A decent CTO would have simply said "oh shit guys, this can't happen again. please fix it". If the other executives can't understand that sometimes shit happens, and that a hammer doesn't need to be dropped on anyone, then they're not qualified to be running a business.

comment 9y ago · link · parent

At a minimum, Postman does not belong on that list. It has been the case for quite some time now that Postman's desktop app is a) better than the Chrome App, and b) recommended by the developer.

Postman aside, I don't understand why anyone would want any of the apps you listed to be installed as a Chrome App. Why would someone want an SSH or TeamViewer client to be tied to their browser? You're installing an application either way; Chrome internalizing the process as an attempt to offer convenience is a strange idea. Chrome is a browser, not an operating system - let the OS do what it does best. Chrome Apps were an unnecessary and proprietary mess - a failed experiment I am happy to see dismissed.

comment 9y ago · link · parent

>> why are these people doing these jobs

The only question is "why are rich American companies outsourcing to the poor?". There's no reason why they have to. They can entirely afford paying full market wage in the US. If it's acceptable to outsource, then it should be legal to hire within the US for the same salary. Let Americans make $2/hour if that is the acceptable rate.

comment 9y ago · link · parent

I don't think anyone is disputing the "benefit" to the worker, from their perspective. The outrage is that corporations take advantage. They refuse to employ US employees because they would have to pay reasonable wages, provide healthcare, offer stock options, etc. So they outsource to skirt millions on all of the above.

I'm really sick and tired of "but they're happy to have the abysmally low-paying job, because in their currency it's above-average!". Companies like Facebook aren't outsourcing to "give jobs to the needy"; they only do it because it's disgustingly cheap for them. The destitute, desperately grasping at the crumbs dropped on the floor by the rich, is not a positive thing. It's depressing.

What's next? Do we defend companies who hold immigrants' passports hostage, enslaving people indefinitely with no way out? After all, they pay X% above average! Those workers should be thankful just to have a job! Who cares that they'll never see their family again, and likely die while living in squalor?

comment 9y ago · link · parent

>> get your hands on some meds that help you acclimate easier/faster

Do such drugs safely assist with acclimation, or do they mostly mask symptoms? It would be very dangerous to take them if it's the latter. I'm thinking of any similarity to pain killers - just because you can't feel the pain does not mean you should be running around trying to operate at 100%.

comment 9y ago · link · parent

It's a delicate line to walk. If lenders thought twice before lending money for student loans, only the rich (ie: 1%) would be able to enroll in postsecondary education. It might just be a lose-lose scenario for the 99% when college and university are expensive. We would all prefer that the population at large is educated, but when that education doesn't guarantee success in a career, who should pay for the failures?

Now I somewhat understand the few countries who offer "free" education (ie: funded by taxpayers). The incentive should be to offer free education for degrees that practically guarantee employment benefiting society. If you major in something widely considered useful, enjoy your free ride. If you prefer to major in something wishy-washy as far as society is concerned, you can pay for it yourself. Such an ugly compromise. :/

comment 9y ago · link · parent

Thank you. Other top-level comments are preoccupied with portraying oneself as a senior developer, rather than behaving as such. The difference is substantial.

comment 9y ago · link · parent

The other replies here are misguided. A senior developer's job is not to take over as a know-it-all dictator at the end of their first week. You don't write unit tests for existing code, refactor other developers' work, take over the role of architect or sysadmin, make sweeping changes to existing processes, or take any other "heroic action". The number of comments here essentially saying "assert your dominance by introducing the 'right way of doing things'" is unsettling. Shame on anyone who strolls into a new team with this mentality.

Your job is simple: get to work. You don't invent "important senior work" for yourself as a way to prove your merit with your ego, before you have settled in and earned your title. You pick up existing tickets from the queue. The only way to get acquainted with the project and its stack is to begin working on real tasks that require minimal modifications to the codebase. That's your goal: commit and deploy small chunks of code that accomplish something useful for the business. You need to take the time to organically discover each subsystem, one at a time, as you complete tasks that actually close tickets. A senior developer's initial job is to be a "junior developer" who knows nothing about the project, taking the time to learn the system bit by bit.

Progressively pick up enough knowledge in order to eventually be in a position to assist other developers and make decisions about the project's future. After 1-3 months, depending on the size and complexity of the project, you will have touched a majority of subsystems while working on tasks. You will then have a comprehensive understanding of the system as a whole, and may be considered informed enough to take some amount of control over the future direction of the project.

tldr; Your job as the newest senior developer on a team is not to be perceived by others as a senior developer. Your job is to act like a senior developer, and that means taking the time to integrate yourself at a reasonable pace. The "Senior" prefix to the title does not kick in until you've worked on the codebase long enough to fully understand it.

comment 9y ago · link · parent

I see in one of your sub-replies further down that you are in the US, but even hearing you mention "R&D tax credit" makes my blood boil. At least in Canada, the "Scientific Research and Experimental Development Tax Incentive Program" (aka SR&ED) is a complete scam.

Every development shop in Canada claims credits to recoup a significant portion of employees' salaries. Yet not a single one of my companies has ever performed R&D. The analyst comes in and spends a week getting every employee to lie about their work, enticing them to rephrase how their mundane copy-paste-from-Stackoverflow work somehow qualifies as "R&D". The majority of taxpayers' dollars paid to corporations through the SR&ED tax program is fraudulent.

comment 9y ago · link · parent

>> We use Confluence, Bitbucket... Asana (instead of Jira)

This is the thing with the Atlassian ecosystem. Whether you are pro-Atlassian or anti-Atlassian, there are only two sane options: you either all-in with everything Atlassian, or you are better off with nothing Atlassian. Mixing and matching products when Atlassian is involved is the wrong choice, every time.

The Atlassian suite as a whole is fantastic when the integrations are set up properly. If you dislike Atlassian's licensing or even one of their products, then you should not be using them at all. Don't take on 1-2 of their products, and then replace one of their other core products with an unintegrated competitor. Having a partial Atlassian setup is frustrating as hell to work with.

comment 9y ago · link · parent

When that 0.1% - or even 0.001% - are 5-60 second requests, you have a bomb waiting to go off. There really is a massive difference when you are operating at the scale of Google. If the median is 100ms, the maximum acceptable time - 100th percentile - is likely below 200ms. A three nines percentile that is 10x the median isn't a good thing at large scale. Perfect consistency is more important than statistics. A small scale service deployed on my-little-unused-tool.com that receives a few requests/minute is an entirely different ballgame.

comment 9y ago · link · parent

>> the majority of people are adding value to society: plumbers, mechanics, pilots, engineers, most lawyers, some politicians

I agree with the rest of your comment, except for the above quote. The jobs you listed do not make up the majority. It's interesting that you only list trades and educated workers who earn above-average wages. A plumber can earn in one day of overcharged labour what it takes a worker in the service industry a week or longer. Pilots, engineers, lawyers, and politicians certainly do not belong as part of any definition of "majority".

The majority of jobs are in the service industry: fast food joints, real restaurants, retailers, etc. More than half of service industry jobs could vanish overnight, and consumers would get along just fine. These companies and jobs don't exist out of a necessity to serve society; they exist only because employees can be paid a tiny percentage of what they are worth (and in some cases being forced to live off food stamps), while the corporations rake in billions. These companies aim to make the easiest dollar possible, with no effort put into providing a service anyone actually needs. A job does not benefit society simply because a company manages to sustain itself by maximizing its own profits at the cost of taking advantage of employees.

If we could shut down every fast food joint (ex: McDonald's) and bottom-feeding retailers (ex: Walmart), and find positions for all those employees doing something more beneficial to society, that alone would make a huge difference. Those two companies are the tip of an enormous iceberg. These companies are not a "necessary evil", as if without them there would be no jobs. These corporations perpetuate the status quo to benefit themselves - society is an externality.

The capitalism we practice today will never improve upon this situation. The only incentive is for corporations to take the entire cake, offering services people think they want (they don't even really want them), rather than services people need. Things will never change without a major shift in the way we view economics. Perhaps if the next major plague takes out 50% of the population, we'll be forced to return to basics.

comment 9y ago · link · parent

>> Students should be able to discharge their student loans in bankruptcy.

No. Bankruptcy is touted as being an absolute last resort that destroys lives. That's not the case, particularly if you are young. It's better to file for bankruptcy if you believe you will not be able to pay off your debts within a few short years. If student loans could be dumped with bankruptcy, every student would be advised to file for bankruptcy before their first payment became due. Bankruptcy would become the norm for many 21-24 year olds.

comment 9y ago · link · parent

Damn you! I wrote a bloody essay in a reply[1] to explain, in superfluous detail, what you summarized in one sentence. Anyone with basic knowledge of the topic would know what you mean. I need to figure out this magic people like you possess. I'm tired of rambling, when nobody will read it. Thank you for the incentive to improve.

[1] https://news.ycombinator.com/item?id=14374031

comment 9y ago · link · parent

The majority of incidents I encounter with this bug occur specifically because of the complexity introduced with abstracted query building via ORMs and DBALs. Developers assume their configuration, such as appending a "deleted = false" clause, applies to every query without manually verifying each one. Yes, it's technically the developers' fault for not understanding how and when the abstraction kicks in, but that doesn't mean it's "simple", or that these cases are avoided.

I've seen abstraction layers where it's impossible to add a default clause to every SELECT query for a model. I've seen other abstractions where "AND deleted = false" can be automatically added to every SELECT query. I've also seen abstractions where that clause is added to all SELECT, UPDATE, and DELETE queries.

Here's a list of problems:

a) Developers bypassing the model, executing a complex JOIN that includes the table in question, and forgetting they need the "deleted = false". Most complex queries wind up being written as raw SQL or a parsed variant, that never executes the model behavior to append the "AND deleted = false" clause. Is it "wrong" to bypass the model? Most of the time, yes! But it happens every day. We're talking about what happens in reality, not what should happen in an ideal fantasy world.

b) Developers missing the case where they should be including soft-deleted rows. When the abstraction layer enforces a "deleted = false" on every query, it can be difficult or impossible to force backtracking to include soft-deleted rows. Back in the MyISAM days (before foreign keys), I found an "account deletion" mechanism that executed a "DELETE FROM messages WHERE userid = :userid AND deleted = false" - soft-deleted rows were not deleted when required, because an abstraction layer excluded soft-deleted rows in a DELETE query and the original developer never noticed.

c) What happens with UPDATE and DELETE queries? I've seen abstractions that only append the soft-delete mechanism to SELECTs, and others that also affect UPDATEs and DELETEs. Again, should every developer on a codebase understand in which situations the abstraction kicks in? Yes. The fact is they don't, because abstractions inherently make developers not inspect the behavior of their code as deeply as they should.

I don't remember soft-deletes being an issue at all - literally non-existent - 10 years ago, when all SQL queries were typed out by hand. When you're forced to write the query yourself, you have time to think about what you are doing. When you delegate the majority of the task to an abstraction layer that magically modifies your queries on the fly, bad things happen. The most stable and maintainable code base I ever worked on had every single query in XML files. It sounds tedious and bloated, as if it's a joke about the "old days", but every query was located somewhere where it could be analyzed, and you actually had to use your brain when writing a new query. I've seen nothing but misery since the introduction of abstracted ORMs and DBALs, where the only way you ever see the queries being executed is in debug dumps and logs.

>> competence I expect from a junior web developer

Sadly, more than half of the senior developers I've met can't handle soft-deletes properly. So no, in the real world, this cannot be expected of junior developers.

comment 9y ago · link · parent

>> How insecure and in need of validation someone needs to be to seek career advice from a chatbot four times a month?

Let me rephrase that: "How long does one need to go without finding a job - perhaps any job, or one that is satisfying, or that pays well - before one seeks career advice from a chatbot?"

I have been fortunate with my career opportunities; your dismissive tone tells me you've also never truly struggled. Not everyone is in the same boat. Some go for years unemployed, or are stuck in a spiral of being paid far below market salary. I can understand why some people might be attracted to this service.

That said, I have some criticism for this business:

1. Your market isn't large enough. Those who would find this the most useful are unemployed, and cannot afford to pay. This will hold back growth more than anything - your best customers are those you cannot acquire. This leaves people who already have successful careers, and are only looking for an edge to improve their success the next time they are job hunting, or to "game" their current employer. I imagine the number of people in this category to be far less numerous.

2. From the home page: "A team of career coaches, industry experts & AI". Sorry, we're not naive. With that misleading phrasing, I'm almost certain that the "career coaches and industry experts" are never personally in contact with the customers. You simply trained the AI with their input, and these professionals are not on board to personally assist anyone. You're selling the AI rather than personal advisers, paying a modest fee to curate content instead of matching people with human beings who can offer informed advice. That is the real shame here: marketing "career coaches" and "industry expects", while that is a half-truth. Artificial intelligence as it exists today is not good enough for one-on-one coaching. For a service this important, where people are hanging their hopes and dreams of a career on the line, only an expert in the field is capable of tailoring their advice to each client in a way that is appropriate - perhaps even moral.

3. Regarding the "AI" (too many companies claim to have real artificial intelligence, when all they have is a precomputed index of lookup terms), I bet that the database is extremely generic. If you are looking for advice on the interview process, you would get similar information by Googling for interview tips. The odds that you can narrow the context down to get at information that is specifically tailored to your exact situation, rather than a generic scenario that matches problems facing the majority of the population, is slim. This service is likely nothing more than a search engine for curated content related to career advice - with a bit of interface design sugar making it seem more like a conversation than a search result.

comment 9y ago · link · parent

The query was already published on Quora. I assume that Google did patch the issue. They were simply requesting that it not be posted in a public forum, resulting in the potential for denial of service attacks. It wouldn't have been a statistician making a fuss about their pretty graphs being ruined. The problem was the very real performance impact the queries were having on the service, as thousands of visitors copy/pasted from Quora to see for themselves.

This is why companies like Google have bounties for such things. "Please submit bugs and performance issues privately so we can patch them before you disclose the details publicly and hurt our services - we'll even pay you for your discretion!"

comment 9y ago · link · parent

That bug is extremely common, and the source is always the use of soft-deletes in the database. When you view the list of items (ex: inbox), the database query includes a "WHERE deleted = false" to exclude rows which have been soft-deleted. When viewing a single item (ex: message) the URL contains a unique identifier, whether an auto-increment integer, UID, etc. The query used to load one item is "WHERE id = :id" instead of the correct "WHERE id = :id AND deleted = false".

Managing soft-deletes on a database table requires an attention to detail, with every single query ever touching that table, that many developers lack the discipline to handle. Discipline aside, it's difficult for every developer on a team to remember which tables use soft-delete, and when checking that flag is or is not necessary. Finally, ORM abstractions often automate soft-delete in such a way that makes it exhausting for developers to validate every query. I've seen this bug over and over again at every company I've worked for. Happens so often it's impossible to keep count.

comment 9y ago · link · parent

This particular issue was posted on Quora, where anyone could pick it up and participate in what is essentially a denial of service attack (whether or not performed intentionally). It wasn't submitted as a private bug report to Google so they could fix the issue. It was spread in a public forum. I think it's fair for Google to politely ask "a few of your own tests to validate an issue you will submit as a bug report is fine, but please don't disclose to the public until we patch it."

When you operate at the scale of Google, everything is expected to be airtight; outliers should not be possible. It wouldn't surprise me if their monitoring systems are built without the ability to "massage" (ie: manipulate) statistics, as it is a terrible practice. I don't think a statistician who relies on ignoring outliers would last long working for Google. They're not doing their job if the only thing they care about is silencing warnings to make pretty graphs that falsely show everything is running smoothly. Their job is to work with the truth - not manufacture little white lies to appease management.

comment 9y ago · link · parent

The edit, insulting even further, was useless on my part. If I think that up to 95% of people - and I sincerely believe the percentage to be that high - are incapable of realizing that substituting diet soda and vaping in lieu of sugar soda and smoking cigarettes equates to "healthier choices", I should have expected 95% downvotes.

My mistake, born from a delusion of my own making, is believing that the entirety of the HN crowd magically falls within the <= 5% of people I consider to be legitimately intelligent, capable of thought relying on science that is universally proven to be true rather than manmade speculation based on tomfoolery. Without seeing any replies countering my statements, I can only assume that these people are petty enough to vote with their trigger-happy index finger rather than taking the time to absorb - and perhaps reply to - the points of discussion I have raised.

Aside, meta: Please do not vote on this comment. By upvoting, you'd be granting my ego a reprieve. By downvoting, you'd be proving my point and also feed my ego. Best bet is to abstain, and let bygones be bygones. This could be -10 or +10 and I'd feel validated. Just don't vote; a 0-1 score says more than anything.

comment 9y ago · link · parent

You may not have understood my "eureka" moment.

It's better to politely request that the "undesirable" (ie: illegal) clauses be removed from the contract, rather than using red ink on the contract you were sent and submitting it as an ultimatum. Either way, you wouldn't work for them unless the changes are made. The result is the same; it's all about how you approach the matter - namely, with diplomatic tact. You give the company a chance to amend the contract in your favour on their end, rather than attempting - and possibly failing - to force their hand with a revised contract on your end.

You might be in a region where such clauses are not enforceable, but if you say "hell no that's illegal!", they'll trash your résumé and hire someone else who doesn't make such a fuss. The person who winds up being hired was just a "better match" and the "position was filled". You could always sign a contract with "unenforceable" clauses without complaining, and hope the law ultimately agrees with you... but do you really want to take the risk of falling on the wrong side of the law?

Put it this way: if you strike out the contract with red ink, here is what the employer sees: "Fuck you, you can't fucking give me fucking clauses like that. It's fucking illegal, so I have fucking stricken out that fucking bullshit clause 2.1, and you had better fucking accept me as a fucking employee anyway, you fucking pieces of fucking shit! Accept the fucking contract I have sent you with fucking red ink, and fucking hire me already!".

Versus: "Section 2.1 would prevent me from seeking employment upon leaving your company. That clause is not legally enforceable, so it would be better for both of us that I not sign this. I will sign a contract with provisions that I will not poach your clients or work for a direct competitor in your field for a period of X time. If you could please revise the contract, I will sign it and you will have me as your newest employee!"

So what if you calmly request these changes be made, and the company refuses to make the amendments to your contract? Of course you refuse to work for them. Maybe even sue for their illegal practices if you can afford the legal fees. The idea is not to accept unacceptable contractual terms. The point is to allow the company to believe they are accommodating your polite requests, rather than you having made non-negotiable demands as an ultimatum. It's a mind game that gives the illusion that the company is is control, while you hold all the cards.

The end result is the same. Either you will accept the contract or you won't. You're just being diplomatic, attempting to elicit a reaction from the employer that is in your favour, rather than making the scenario a one-sided "my way or the highway". Let the company believe they are obliging you instead of crumbling under pressure.

comment 9y ago · link · parent

This comment is a reply to many of the commenters here on HN, rather than a direct response to the article.

How do you get to the point of debating the difference between soda vs. diet soda, as if it's a must-have treat and you are "simply" choosing the lesser of two evils? All soda is UNEQUIVOCALLY bad for one's health! You're drinking a cocktail of chemicals that has no nutritional value, and designed to be addictive. Artificial sweeteners are a gimmick to allow us to recuse ourselves from the innate knowledge of what it is healthy. Selecting a supposedly "healthier alternative" is nothing more than a way to grant ourselves asylum from being personally responsible for our choices. We pretend that our "science" is universally proven evidence backed by chemistry and physics, vs. the truth: it's a manmade lie which no enlightened species would tout as being scientifically valid.

The same mental masturbatuion occurs with vaping. "Vaping is better than smoking!" As if inhaling any mind-altering drug is necessary to "get by", and so it must surely be "better" to attach oneself to the "least worst option", rather than kicking the habit entirely. If vaping is "better" than smoking, what is better than vaping? Oh right, not inhaling anything other than the air we evolved to breathe. Your body wasn't made to inhale chemicals not produced in nature; it was also not made to drink soda. The fact that you don't die instantly from consuming such products does not mean they are not harmful.

The excuses many people make regarding their health is... I'm going to call it what it is: completely and utterly _PATHETIC_. As a species we pretend we are intelligent, but a vast percentage (90-95%?) of the population can't even overcome the most primal appetite for fats, sweets and drugs. Our species will never be capable of rightfully calling itself "enlightened" until we drop all desires for this kind of bullshit. If you're playing mind games with yourself to allow you to "cheat just a little" by consuming unhealthy products, while falsely duping yourself into believing your decisions somehow result in an overall net positive "compared to the (unnecessary) alternatives", you're deluding yourself.

Advice to all alien civilizations: avoid us at all costs. Making contact with us cannot possibly be beneficial to you. We'll either bomb you out of fear and ignorance, or bombard you with our capitalist bullshit in order to pull you into our way of living that will ultimately destroy you from the inside out.

What makes this truly disgusting is that people who choose to destroy their bodies - by drinking diet soda, vaping, or eating junk food - are in fact aware that they are lying to themselves. You know that you are making the wrong choices, but opt for the fallacy that somehow you are not in control. Nobody really believes the marketing companies are pushing out. People are just looking for someone else to give them permission to be unhealthy, desperately listening for someone to tell them what they want to hear. People know they are too weak to have self-control, and are looking for a voice to be their scapegoat.

tldr; Diet soda is not "better" than soda laden with unadulterated sugar. It is simply worse than water, and the fluids you would get from fruits, vegetables, and free-range animals and fish. Allow your brain's thought processes to align with your species' natural evolution. Stop using product manufacturers' claims as a scapegoat. Think for yourself, and don't make excuses.

Edit: To those downvoting: do you downvote because my post is too long and you declined to actually read it, or do you refute the facts? I am normally abrasive in general, but what I've said here really is true. Anyone who reads the whole thing, and still downvotes, is someone with their head in the sand. You can be part of the 90-95% of morons I mentioned earlier. Be the reason our species is doomed, for all I care.

comment 9y ago · link · parent

While negotiating employment, one would think it would be natural for prospective employees to engage the services of a lawyer to ensure everything is aboveboard. After all, the company sure as hell had legal draw up and/or sign off on their contracts. With freelance contracts, of course both sides should have lawyers signing off to foster a fair relationship.

Yet what does an employer think if a candidate indicates that they have involved their own lawyer during contract negotiations? Perhaps it's a normal occurrence in major centres (ie: Silicon Valley), or maybe even across the US. I have never heard of a single one of my 1000+ peers over 15 years of experience having done so in my country (Canada).

The very act of engaging a lawyer to read through one's employment contract here would be seen as an aggressive attack against the "integrity" of the employer's business. Red flags galore raised about how this person would be a risk to employ, should they go running to a lawyer over every little grievance.

If I had a lawyer make amendments to my contract and sign off on it, and slipped to my prospective employer that this act had taken place, I'm quite sure my résumé would hit the bottom of the recycling bin within seconds of my name being added to a blacklist of "never communicate with this person ever again; do not reply to their emails, hang up the phone the moment they give their name, call security if they show up at the front desk, etc.". I would be unemployable if I even mentioned the word "lawyer". I suspect cultural differences, with the US being desensitized to the presence of lawyers in an abundance of everyday situations?

So, no lawyer for me. I much prefer the idea of requesting that the company amend the contract themselves to accommodate me, rather than red-inking it myself. Maybe Canadians really are too polite? ;)

tldr; In Canada at least, red-inking your contract on your own has a chance to succeed. But involving a lawyer would make employers avoid you as a high-risk hire.

1
8910
27