HNHacker News
TopNewBestAskShowJobs

purple_ducks

834 karma · joined November 1, 2018

submissionscomments
purple_ducks··on Indian technology talent is flocking to Canada
> Many of them have degrees from schools (e.g. MIT, CMU, etc.) much better than schools most of us went to.

Explain to me how a degree from schools "much better than schools most of us went to" indicates the person is more competent or intelligent than anyone else? "better" should be subbed out for "prestigious".

purple_ducks··on Linux Mint 19.1: The better-than-ever Linux desktop
What a vapid article.

> Mint, as ever, out of the box is more secure than macOS or Windows ever dreamed of being. On my Mac and Windows boxes, I'm always tinkering with patches and security software. On Mint? It's a none issue. I have never had a single security problem.

OK then..

purple_ducks··on Dear Developer, the Web Isn't About You
> Despite what Tim Berners-Lee claims, the Web wasn't a single invention 1. Yes, we know that one man says that he invented it (grudging thanks to Tim), but he did so on the back of a thousand other technologies

He got that right.. Wish the media would do the same

purple_ducks··on Dear Developer, the Web Isn't About You
> People use react because: ...It has an opinionated way for developing javascript applications

I really don't know what world that statement would be true in.

purple_ducks··on Dear Developer, the Web Isn't About You
As Rails + Turbolinks has shown, unsurprisingly, users don't care what renders your page. As you said, they just want it fast.

Server side rendering HTML and serving it up works perfectly fast for pretty much every site which is read only content or forms. The of 3rd party scripts running on every page are the issue.

Also as a major negative against SPAs, once a script is loaded - it's going to be ever present on every page afterwards - enjoy explaining why payment details page needs 20 3rd part scripts running on it. Not possible to unload scripts.

purple_ducks··on Bye Bye Mongo, Hello Postgres
Subtle data loss...
purple_ducks··on Bye Bye Mongo, Hello Postgres
If somebody is teleporting back then, the fact Mongo had a _global_ Mongo instance level lock for writes should be more than enough for people to run screaming.

I worked with databases that only had table level locks(not row level) and there were more than enough occasions I cursed the creators.

Instance level(& indeed DB level) is insanity unless your DB is a read only DB.

purple_ducks··on Go Modules in 2019
i think the "Go way" was more like: Google have a different in-house solution for this so let's just leave it out and for something to bubble up out of community.

Go solves Googles main problem -> something which new engineers can use to write practical solutions without having to think too much. It's not beautiful or expressive or technically interesting; most "craftsman" devs won't stick with it too long..But that's not the majority of devs google is hiring.

Sit down, bang out code and don't concern yourself too much with craftmanship - it will be re-written in a couple of years. Just worry about performance.

purple_ducks··on Google’s Secret China Project “Effectively Ended” After Internal Confrontation
Not debating whether or not it is a right but the UN isn't the world's moral authority.

I view them as an un-elected advisory group.

purple_ducks··on What happens when packages go bad?
> Java libraries which are binary blobs

Java libraries are JAR -> Java Archives. You can unzip them and there is JVM bytecode inside which can be decompiled. Not really binary blobs.

purple_ducks··on Re: “‬How does writing CSS in JS make it any more maintainable?”
> it's the only way to structure UI for an application

No, it's not. Want consistency in all your text boxes/links/buttons? Are you going to copy/paste or inherit from a base button component or define the general common styles in one place and have the browser automatically apply them with 0 thought.

Need a button to be different - then do inline styles or more specific selector(incl. CSS in JS) or use !important.

As parent poster said, definitively stating there is only one true™ way to do something is the height of hubris.

> That's why it's been so frustrating for me waiting to see this paradigm come to web development

Inline styles were the norm for quite a long period of time...

purple_ducks··on Re: “‬How does writing CSS in JS make it any more maintainable?”
My favourite from that thread is somebody trying to be smart & pithy leaving a link to the wiki page on 'Composition over inheritance'

When the OP replies that he can do that in CSS or Sass, smart guy then moves on to new argument - naming.

Reading interactions between 2 people with different well reasoned opinions on the same issue is fantastic and can be illuminating.

Reading curt regurgitation from people who don't have anything worthwhile to add to the convo is beyond frustrating.

purple_ducks··on Compiler Explorer
Legit 10/10 for their displayed privacy policy.
purple_ducks··on JavaScript growth and third parties
> By "at scale", I mean building abstractions on top of commonly used html elements and making them interactive,

This sounds like double-speak. That's not what at scale refers to, even allowing a very loose definition.

How the HTML is generated is moot. Server side templates had re-usability at a "component" level. iFrames exist, redirects exist.

I'm not saying all JS is bad. I'm saying too may new people seem to think JS in and of itself is magic and there is no other way to generate/manipulate the DOM or talk to other computers.

I'm bailing out of this conversation now because you're heavily conflating HTML, browser functionality and www fundamentals with website builders(i don't know why you felt the need to qualify it with "professional")

> Even HN has JavaScript for that little bit of interactivity (collapsing comments).

Yeah no, "even HN" works perfectly with JS blocked. JS for HN is an enhancement, not a requirement. They understand how the web can work...

purple_ducks··on JavaScript growth and third parties
> JavaScript makes it easy to build nice websites at scale

> build nice websites at scale

> at scale

What? Might as well mention ML & blockchain while we're at it.

If site is not interactive, it doesn't _need_ JS.

If it does need JS, it more than likely needs _sprinkles_ of it.

purple_ducks··on Apple to build campus in Austin and sites in Seattle, San Diego and Culver City
> This is why the EU has laws against this kind of race to the bottom between nations

No, it doesn't.

Every country in EU sets it's own corporate, sales & income tax rates. as well as _EVERY_ other rate.

Every country in the EU can & does offer incentives & future tax payment agreements to companies who meet certain conditions. These are not inter-EU agreements nor do they need prior approval by any EU establishment.

purple_ducks··on Virgin Galactic successfully reaches space
Surely the increase of all rocket launches/ships must be having a somewhat substantial impact on Earth's environment?
purple_ducks··on How “One-Plus-Five” Is Shaping American Cities
How is the inter apartment noise containment?
purple_ducks··on Microsoft Clarity – a product to visualize user interactions
Who in the world signed off on that promo video? The music was _way_ too loud in comparison to the voice-over. Irritating.
purple_ducks··on Why Aren’t Rich People Happy With the Money They Have?
Actually, hide karma part can be done clearer with just:

        //hide karma  

        let karma = document.getElementById("me").nextSibling;  

        karma.textContent = " | "
purple_ducks··on Google Employees Demand the End of Forced Arbitration Across the Tech Industry
OP could just as likely mean..."when 24-7 was introduced, they demanded compensation."

24-7 isn't required if your org only depends on system between working hours.

purple_ducks··on Why Aren’t Rich People Happy With the Money They Have?
tampermonkey script to do just that (would be nicer if HN could pop the karma into a span with an id :-) )

// ==UserScript==

// @name hide HN karma

// @namespace http://tampermonkey.net/

// @version 0.1

// @description hide HN karma

// @author You

// @match https://news.ycombinator.com/*

// @grant none

// ==/UserScript==

(function() {

    'use strict';  

    if(document.getElementById('me') !== null){   

      //hide karma 

        Array.from(document.getElementById('me').parentElement.childNodes)  

            .filter(x => x.nodeType == Node.TEXT_NODE)  

            .forEach(y => {y.textContent=' '})  


        //remove link to profile page

        let me = document.getElementById('me');  

        let newme = document.createElement('span');  

        newme.textContent = me.textContent;  

        me.parentElement.replaceChild(newme,me)  

        ;  

    }  
})();
purple_ducks··on Top domains by aggregate score on HN from the past year
top general news site: nytimes.com

top multi blog site: medium.com

top tech news site: techcrunch.com

top social media site:twitter.com

top journal site: arxiv.org

top cloud provider site: aws.amazon.com

top for-profit company tech blog: blog.cloudfare.com

top personal blog: drewdevault.com

top disregard of users' data site: www.facebook.com

purple_ducks··on O2 outage due to expired Ericsson certificate
> fails on a certain date

Or just write a test that checks the date on the cert and conditionally fails.

If it's within 4 weeks, send email to x,y,z.

If it's within 2 weeks, send it to VP of x, y, z.

combination of failing test and email should lessen chance of it going unnoticed(email could possibly fail for whatever reason).

purple_ducks··on Goodbye, EdgeHTML
What percentage of Mozilla revenues are spent on Firefox development?
purple_ducks··on The Rise of Microsoft Visual Studio Code
Maybe because with Go, there's less ways to skin a cat compared to each of the other languages? Less expressive language - just hammer out code worry free about being judged on method or code style?
purple_ducks··on Leaving NYC for Nashville
> A rhetorical question used to disguise your distaste for specific attributes of NYC

A rhetorical question

> of NYC

of any crowded city.

> Consider, however, that those things are not important to the parent commenter, at least not as important as other attributes.

I hope the irony of you making this statement isn't lost.

> how clever.

Bite your tongue and be civil.

purple_ducks··on Leaving NYC for Nashville
walking isn't anywhere near as exertive as cycling/running.

i like walking & cycle pretty much everywhere i can. i've never found walking amongst/against throngs of people to be relaxing or enjoyable - quite the opposite so i'm sure the stress of walking in NYC negates much of the health benefits of walking in general.

purple_ducks··on Leaving NYC for Nashville
> or fantasizing about it

2 bucks on a lotto ticket achieves the same result for me.

purple_ducks··on Absolute Beginner's Guide to Emacs (2012)
my emacs config is init.el having

(require 'package)

(setq package-enable-at-startup nil)

(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)

(package-initialize)

;; Bootstrap `use-package'

(unless (package-installed-p 'use-package)

(package-refresh-contents)

(package-install 'use-package))

(org-babel-load-file (expand-file-name "~/.emacs.d/myinit.org"))

then you can put your configs in an org file. using `use-package` means I can just copy/paste the file to new emacs and all my packages are auto installed etc..

#+BEGIN_SRC emacs-lisp

(use-package command-log-mode

   :ensure t)  

 #+END_SRC  


also, i highly recommend package `which-key` - it displays what commands are available along with their keypress.
← PreviousPage 8 of 10Next →