HNHacker News
TopNewBestAskShowJobs

whyileft

55 karma · joined December 29, 2016

submissionscomments
whyileft··on Trunk-Based Development
Yup, as the other comment stated, this is par for the course in modern quality software development. Its actually rather shocking to me to see my comment get downvoted. The quality of the HN audience is declining dramatically. Feels like all we have is a bunch of web agency lifers at this point.
whyileft··on Trunk-Based Development
Because any long running feature branch can just live in a different repo until its ready to merge. There is a reason they are called branches not trunks. Except for rare exceptions developers should be able to break up features in a way that they can be continuously integrated during development.
whyileft··on Time to Take a Stand
It only really works if you are showing them that they are going against what they thought their base wanted. Free trade right now would probably be one where a lot of Republican members of congress would have likely been surprised to learn a year ago that there was a large percentage of their Republican voting constituency that was against free trade.

So yes, if you are a Republican with a Republican representative then calling them to voice your displeasure about Donald Trump's behavior may be beneficial. Otherwise it probably won't do much unless there really is massive numbers.

whyileft··on Craig Newmark donates $500k to reduce harassment on Wikipedia
We're still not sure shadowbanning is not liable behavior for fraud. So that is a risk to take all on its own.
whyileft··on Stanford historian uncovers a grim correlation between violence and inequality
What you are showing is a common tactic for a group that knows they are doing the wrong thing to validate themselves by claiming everyone is a bad guy. Or that the other side is worse etc etc.

You would seriously have to be blind to not realize the the current path of policies is simply incorrect policies that will lead to harm. For example instead of paying for a wall, Mexico will just pay for better ports as Donald Trump and the fools that voted for him seem to forget they have coastal shipping access to both Europe and Asia. Not to mention all of South and Central America.

That's the problem. Replacing social security with private retirement funds is a debate about which is better. With pluses and minuses on both sides. And guess what? The combination of 401k's IRAs and Social Security kind of does that. See how that works? Its actually saner than people want to believe. Same with things like how health care is run. Its not like we have some kind of socialist utopian system. Its a compromise. Or taxation with our 15% cap gains. Both sides have different opinions but both are at least based in some kind of functional reality where they might actually work. And the reality is that they are both a little bit right so in the end we typically wind up someone in the middle despite how it looks.

Stupid crap like building a wall is just plain incorrect policy. I mean if you even asked experts in border security, they would not suggest just building a giant wall. Its like what a 7 year old would suggest. What you would actually have is very similar to what we currently have. Its pretty easy to see a group of people running across the open desert and intercept them with the technology we currently have.

That is the big difference between what is happening now and what is typical in US politics.

whyileft··on Stanford historian uncovers a grim correlation between violence and inequality
Im just helping one to understand why there are protests and unrest.

DC had a very small inaugural turnout and very large protest the day after. I was trying to give some perspective.

I believe it was about 90% in Chicago. San Fransisco was over 90%. New York City had a large margin. We are talking approximately 45 of the 50 largest cities in the country did not vote for Donald Trump.

I took high school civics. I know how the rules work. Im just telling you that civil unrest usually happens when people feel like the rules are unjust and they have little or no power to change it through the democratic process. So Im simply trying to shed some light on it to people who may not understand why people might feel that way.

whyileft··on Stanford historian uncovers a grim correlation between violence and inequality
The state of California which has one of the largest economies in the world was 62% to 32% against Donald Trump.

Is it really that surprising there is a fair amount of visible decent?

whyileft··on Stanford historian uncovers a grim correlation between violence and inequality
The largest voting blocks that have low turnout would make that gap larger, not smaller. Also, in urban areas where most of these protests are happening the gaps were enormous.

In Washington, DC Donald Trump won 4% of the vote.

Is it not surprising those people feel a bit underrepresented right now and might turn to alternative means of flexing their massive majority in the areas they specifically live?

whyileft··on Stanford historian uncovers a grim correlation between violence and inequality
Not sure if you are old enough to remember that far leftist ideological organizations were often violent up until the last quarter of the 20th century.

This period of peacefulness is a recent phenomenon. One of the big pacifiers of democracy is that people accept the result because the majority voted for it. When you have a situation when 46% of the population is pushing an agenda that at least 48% of the population is strongly against. That group often starts to look for alternative ways to flex its majority power.

Especially when you realize that in large urban areas we are looking at 25% to 70% type splits in some cases.

whyileft··on Is jQuery still relevant? (2014)
I mean how often have you honestly seen something like this instead?

  (function(window, $) {
    var $some = $(.some-class-matching-one-element-in-a-tree-of-one-hundred-thousand');

    if ($some.length < 1) {
      return;
    }

    var $closest = $some.closest('.some-other-random-class');

    if ($closet.length < 1) {
      return;
    }

    var $window = $(window);

    $window.on('scroll.foo', $.throttle(function() {
      if ($some.offset().top > $window.scrollTop()) {
        $window.off('scroll.foo');
        $some.on('click.foo', function() {
          if ($closest.is('[chosen]')) {
            $closest.addClass('blue');
            $some.removeAttr('chosen');
          }
        });
      }
    }));
  }(window, jQuery));
whyileft··on Is jQuery still relevant? (2014)
If you did that re-selecting with only a throttle you would kill performance on a decent sized DOM on a mobile device anyway. That is exactly my point about jQuery and developers.

The proper thing to do would be to select that element before the scroll and pass that into the event. Otherwise performance would still be awful.

Obviously that is just a toy example that doesn't really have a point(like you correctly stated), but it was to illustrate the constant riding of sizzle to select things over and over again, killing performance.

EDIT: Downvotes prove the point. Take a look at the sizzle cache for yourself. The fact that so many people misunderstand jQuery enough for this to get significantly downvoted on a site where the average competency of developer is probably a bit higher than in the wild shows you exactly the horror that jQuery was for mobile performance.

Although, maybe that means there really aren't many skilled web developers on this site anyway. Because the people who downvoted this are completely wrong so maybe I shouldn't assume there is much talent around here.

whyileft··on Is jQuery still relevant? (2014)
jQuery encouraged that behavior everywhere.

The constant traversing of the DOM over and over and over again to re-select jQuery DOM objects. Sure you can write that correctly. But I rarely if ever saw anyone to the point that when I would, most developers who typically worked in jQuery would be confused.

whyileft··on Is jQuery still relevant? (2014)
Nothing cooler for mission critical than

  $(window).on('scroll', function() {
    if ($('.some-class-matching-one-element-in-a-tree-of-one-hundred-thousand').offset().top > $(window).scrollTop()) {
      $('.some-class-matching-one-element-in-a-tree-of-one-hundred-thousand').on('click', function() {
        if ($(this).closest('.some-other-random-class').hasClass('selected')) {
          $(this).closest('.some-other-random-class').addClass('.blue-background');
          $('.some-class-matching-one-element-in-a-tree-of-one-hundred-thousand').removeClass('selected');
        }
      }
    }
  });

Then when you have terrible mobile performance you just tell the stakeholders that if they want good performance they need to pay you more to then make a native app.

jQuery(which was really sizzle) was a plague because it allowed garbage developers to search the entire DOM over and over and over again(aka get shit done bro). This would clobber the performance in mobile devices because JavaScript is single threaded and lead to the idea that JavaScript itself was unsuited for mobile applications.

Sorry, its garbage for anything but spicing up a WordPress site.

whyileft··on Ask HN: Leave job right before app goes to production?
> Especially, don't work your ass off as an employee in the United States expecting to be rewarded. It never happens. -FTFY

Working for yourself or in more functional economies that actually have things like workers rights is a different story altogether.

whyileft··on Deep learning algorithm diagnoses skin cancer as well as seasoned dermatologists
It is no different than going to the urgent care clinic for a strep test. Doctors do not perform those either. Most diagnosis will be done via software administered by lower paid and more easily replaceable low skill labor just like urgent care clinics do with lab testing.

There are fewer accountants today because of tax software and Excel spreadsheets. They are still needed for more complex and unique situations, but there will be a lot fewer of them. The local H&R Block uses lower paid "Tax Preparers" instead.

There are a lot of research done about Walmart and about when the store moved into town there were not fewer jobs, but somehow the area got poorer. What they found was that the local community leaders(small business owners, lawyers, accountants) were automated away and/or moved to Walmart headquarters.

http://aese.psu.edu/nercrd/economic-development/for-research...

Is one I could find, but that also references other papers in the field.

This leads to me understand that like Walmart, the simple human physical labor jobs will remain long after the more skilled positions. The main reason, I believe, is that software is simply cheaper than hardware(robots) so highly skilled positions which require software not hardware to remove will be the first to go. This is exacerbated by the fact that the software replaceable jobs are the highest paid and therefore the most profitable to remove.

whyileft··on Living in Switzerland ruined me for America and its lousy work culture (2016)
Well, I mean it is stolen money.

The Swiss I've known have been some of the most thoughtful and intelligent people I've had the pleasure of working with. Just saying that it's probably not the best country to use as an example even if they have done a lot recently to reform their economy away from the banking system.

whyileft··on Dow Hits 20000 for First Time
Especially since people get voted out of office went the major indexes lose significant value. So there is significant political pressure to maintain increases just like there is in residential real estate. I have a hunch outside of extraordinary events we won't see many loses in any indexes going forward.
whyileft··on Trump bans EPA employees from giving social media updates
You did not answer my question. I expect an answer.

Why would you intentionally attempt to misinform your fellow citizens?

whyileft··on Trump bans EPA employees from giving social media updates
1. The National Park Service hosted the event. Seems like it would make sense to post public information about the crowd size when there was a lot of public debate and misinformation about it. I understand your frustration thinking they would always look out for the president's best interest, but this was a pretty clear fact they were posting, not some kind of political opinion.

2. December 3, 2008. That's when that article was published about giving notice and starting to find replacements. Same as every other president does.

3. Serious question. Are you paid to do what you are doing right now? I have a really hard time understanding why you would post that link which is specifically framed to spread misinformation as it is about a completely different point in the presidency. Seriously, this is your country. Why would you intentionally attempt to misinform your fellow citizens?

EDIT: I expect a response. You said Obama did the "exact same thing". Which is an outright falsehood and posted an link that is from a different period to intentionally misinform people. In some countries what you just did would be considered a crime.

whyileft··on DHH answers: What makes Rails a framework worth learning in 2017?
> the controller is still needed to map data structures to API endpoints.

I mean, kind of. You don't really need much controller logic most of the time anymore. Last Rails backend I wrote probably involved personally writing a few lines of code here and there. Generally, I'm just pushing a JSON object back and forth. Auth and emails can just be 3rd party. The vast majority of controller type behavior ends up client side at this point. Partly, because its way simpler to scale with you push as much processing to the client as you can. Also, look at something like Firebase or Hoodie as examples of simple stores that require no backend logic.

Its not that Rails and Symfony are useless, I use them all the time, its just that they are kind of dated concepts. Heck even Wordpress solves a specific problem on the backend enough to be useful sometimes. That said Drupal at this point is such a dated concept(superseded by things like Rails and Symfony many years ago) that is should no longer be used.

whyileft··on Robots Are Taking Over Oil Rigs
This is typical HN clickbait automation porn. I always complain about it and just get censored like this comment will. Some programmers and tech people unfortunately get some kind of sick satisfaction thinking(incorrectly) that blue collar labor will be automated away with physical robots before white collar workers are automated away via software.
whyileft··on Show HN: Concept of a marketplace for machine learning datasets
Is there actual case law that prohibits the use of copyrighted material for corpora and other training data?

Sure distribution can have issues, but do you have any references for simple possession as training and test data?

whyileft··on Peak Millennial? Cities Can’t Assume a Continued Boost from the Young
You can devise the cost of real estate based on two main factors outside of square footage in the US. The average income of nearby employment and quality of schools.

Suburbs are much, much, much cheaper than urban areas when they are not near high income employment or have quality school districts. Suburbs near(meaning commute time) high income employment and quality schools are as expensive, if not more expensive as urban areas when controlled for square footage.

whyileft··on Changing San Francisco is foreseen as a haven for wealthy and childless (1981)
Prop 13
whyileft··on What Happens When You Mix Java with a 1960 IBM Mainframe
Especially in a doctor's office where artificial supply restrictions on degrees and licensing give them little or no competition for clients.
whyileft··on New Wyoming bill forbids utilities from using renewables
Also, a bit of a bikeshed since energy usage in Wyoming isn't all that significant.

That said, the use of the all too common dismissive comment stating that if you are not physically doing something about it then you are part of the problem is caveman thinking.

Actively fighting and protesting can do more harm than good. Freedom of speech is sometimes more about combined civil public discourse as opposed to aggressive and manipulative tactics of seizing power and pushing propaganda as you have suggested.

whyileft··on Robot Crop Pickers Means Fewer Farm Workers
They will not be laid off in such numbers because there is little economic incentive to do so. Machines cost a lot of money. And they require maintenance over time. You have to realize how little these workers make. Paying US rent full time a person could barely afford to feed and shelter themselves on the money these workers make.

We are talking 50 cents a bucket. Pennies per item. There is not a lot of room for automation to undercut.

Workers in decision making and diagnosis type roles cost significantly more and mostly only require software(not hardware) to replace. Think about how much a doctor gets paid per cancer diagnosis? Or per cancer treatment prescribed?

whyileft··on Robot Crop Pickers Means Fewer Farm Workers
Sooo... the workers still doing the work get paid more than they used to and we create new jobs designing and manufacturing the equipment. HN really needs to starting flagging these poor stupid workers will all be out of work porn.

Diagnosing doctors will be replaced way before migrant farm labor disappears.

whyileft··on NHTSA’s full investigation into Tesla’s Autopilot shows 40% crash rate reduction
bingo
whyileft··on NHTSA’s full investigation into Tesla’s Autopilot shows 40% crash rate reduction
> data supplied by Tesla
← PreviousPage 2 of 4Next →