HNHacker News
TopNewBestAskShowJobs

interlocutor

1,095 karma · joined March 31, 2015

submissionscomments
interlocutor··on Removing jQuery from GitHub.com frontend
You don't care if the code is significantly simpler by using jQuery? I do care. Simpler code is likely to have fewer bugs and is easier to maintain.
interlocutor··on Removing jQuery from GitHub.com frontend
Here's one that uses jQuery. See how much simpler it is? The one you found does have more functionality, but try rewriting the one I found in React without using jQuery. I guarantee it will be much more complicated.

https://github.com/wisercoder/uibuilder/blob/master/SimpleDe...

interlocutor··on Removing jQuery from GitHub.com frontend
Show me a dropdown menu written in React and I'll show you how you can simplify the code significantly by using jQuery in addition to React.
interlocutor··on Removing jQuery from GitHub.com frontend
React is great for rendering (and updating after initial render), but if your app is highly interactive then jQuery makes things easier even when using React for rendering.
interlocutor··on Removing jQuery from GitHub.com frontend
Is that just as readable? Is the intent just as clear? Is the improved readability of the jQuery version worth the extra 80kb download to you?

EDIT: Regarding the polyfill, now you are beginning to write your own little jQuery clone.

interlocutor··on Removing jQuery from GitHub.com frontend
The replaceWith() function as documented here does not work in IE: https://developer.mozilla.org/en-US/docs/Web/API/ChildNode/r... You may be able to find hacky alternatives, but if you use jQuery you don't have to.
interlocutor··on Removing jQuery from GitHub.com frontend
Removing jQuery is not always a good idea. The best advertisement for jQuery, ironically, is this site: http://youmightnotneedjquery.com/ Look at how simple things are in the left column, and how much more code is needed in the right column.

jQuery has many convenience features such as chaining, for example: item.addClass('selected').siblings().removeClass('selected'); and you don't have to check for nulls after each selection.

Many functions such as closest() and remove() have no equivalents in IE11, and other things such as replaceWith() and before() are not available even in Edge.

For simple sites it is easy enough to remove jQuery, but for more complex javascript applications, especially apps that have a lot of interactivity, removing jQuery will result in more code, or you will end up writing a lot of utility functions thereby creating your own little clone of jQuery.

interlocutor··on Hackers Breached Virginia Bank Twice in Eight Months, Stole $2.4M
I am planning to move my stocks from ETRADE to Vanguard.

Vanguard's user agreement says this:

Data security is, of course, a top priority. To mitigate computer virus attacks and other acts of cyberterrorism, We have implemented controls monitored by a dedicated team of information security specialists. We also maintain a network of redundant systems, off-site data storage, and off-site tape vaults to ensure that all source data are recoverable in a disaster.

interlocutor··on Hackers Breached Virginia Bank Twice in Eight Months, Stole $2.4M
Some US financial institutions are incorporating cybersecurity disclaimers.

Case in point: ETRADE. Just received an update to the customer agreement. The definition of “Force Majeure Event” (unforeseeable circumstances) was updated to include cybersecurity incidents. Also this: ETRADE ... makes no representation or warranty of any kind ... with respect to security.

interlocutor··on Ask HN: Net worth of software engineer at retirement?
Here's a networth estimator spreadsheet. Plug in your own numbers to see how much you will have when you retire. (Note: use File > Download as .xlsx to download the spreadsheet)

https://docs.google.com/spreadsheets/d/1Ryu_-mVYxSdJbW8lmf1z...

interlocutor··on Vue.js: the good, the meh, and the ugly
If you care about compile-time checking (you would, if you work on medium to large applications) then JSX (or the TypeScript variant, TSX) is much better because it catches invalid or mistyped attribute names etc.
interlocutor··on Vue.js: the good, the meh, and the ugly
You can actually leave react and still keep JSX. This tiny library lets you use JSX as a templating mechanism: https://github.com/wisercoder/uibuilder
interlocutor··on Has Vue passed React yet?
That's based on a nonsense message posted by a rogue employee.

https://mspoweruser.com/no-microsoft-is-not-rewriting-office...

interlocutor··on Has Vue passed React yet?
fitted my mind's view of how things should work

Why so? Could you add some detail to this comment?

interlocutor··on Has Vue passed React yet?
Can you point me to the announcement? Hopefully you're not referring to that recent weird tweet that has been disputed by several MS employees.
interlocutor··on Making Web Components Work
>> If I want to pass an array of ids to a sub-component declaratively, there's not really an easy way to do it.

Yes, there is. See https://github.com/wisercoder/uibuilder

interlocutor··on Making Web Components Work
No, don't use Redux everywhere. Most applications don't need to manage client-side state. State lives on the server. If your application lets the user edit stuff without immediately sending the update to the server then you may have state, otherwise you don't and you don't need a state manager.
interlocutor··on Making Web Components Work
>> Use template literals for templating, so you don't even need handlebars/mustache anymore.

You can do better than template literals. You can use TSX, which gives you compile-time verification for tags and attributes, in addition to JavaScript expressions.

See: https://github.com/wisercoder/uibuilder

With TSX (which is JSX written using TypeScript, you get things like syntax coloring and indentation for tags, because HTML and JavaScript are both first-class citizens in TSX.

interlocutor··on Ask HN: How can Microsoft improve/evolve electron, now that they own GitHub?
MIT license does not include a commitment to democratically determine project direction. Project owner has higher influence on project direction, although if the owner makes too many unpopular decisions they run the risk of being overtaken by a fork.
interlocutor··on Facebook's Zuckerberg Says the Age of Privacy Is Over (2010)
Google is no better. Eric Schmidt, while was Google's CEO suggested that young people should change their name upon reaching adulthood (as opposed to something like a "right to be forgotten" that EU citizens enjoy today): https://www.telegraph.co.uk/technology/google/7951269/Young-...
interlocutor··on Stephen Hawking has died
FWIW, Stephen Hawking's son works in the tech industry. He is a software engineer at Microsoft. See https://www.mirror.co.uk/news/real-life-stories/stephen-hawk...
interlocutor··on Convert React JavaScript Code to TypeScript with Proper Typing
Have you seen this related project: https://github.com/fuselabs/jsxtyper
interlocutor··on California updates laws around salary and criminal histories of job applicants
>> The ban applies to both oral and written inquiries, whether they’re made directly by an employer or through an agent.

So employers can't ask job applicants, but they can still ask Equifax, right? Your current employer may be sharing your salary with Equifax. (There is no law preventing employers from doing so.) Equifax offers various services using the salary info shared by your employer. For more info see: https://www.theworknumber.com/

interlocutor··on How Redux Works: A Counter-Example
@arximboldi, I wouldn't use MVC for implementing something like Photoshop or and IDE, that's not the kind of application MVC is good for. MVC works well for applications that navigate through multiple screens.
interlocutor··on Angular 5.0.0
That's an improvement, but what about syntax coloring, intellisense suggestions and instant squiggly-lines when you make a typo? These are all important for productivity. You get all this when you use .tsx templates (which by the way, are not limited to React, see https://github.com/wisercoder/uibuilder )
interlocutor··on Angular 5.0.0
Lack of compile-time checks for the template (and embedded expressions) is a major limitation of Angular. This may be OK for small projects. For large projects with many developers this is a huge problem. Here's what happens: a developer modifies code he's not familiar with. He introduces a bug due to a typo. He builds the code without errors, and runs the application, and everything seems to be OK. The bug is not found even at run time because the developer did not click on something during his manual testing. You can try to reduce such problems with automated tests, but test automation can't reach every corner. As much as possible such issues should be caught at compile time, and Angular can't. This is a major flaw.

Compare that to .tsx templates (Typescript's version of JSX). All html as well embedded expressions are checked at compile time, and typos are caught at compile time.

interlocutor··on US telcos appear to be selling non-anonymized access to consumer telephone data
Not true. If you refill using a credit card then they collect the info at that time. I use T-Mobile prepaid and they have all my info except my name.
interlocutor··on Practical tips for writing inclusive job ads (2016)
This is a shocking attitude. Assuming that a highly skilled software developer is more likely to have body odor, have poor social skills, be alcoholic, be sexually creepy, etc., is shocking to me.

Hiring managers that have this attitude are not the next Steve Jobs, that's for sure.

Steve Jobs specifically looked for the "multiplier factor" when hiring: In choosing key members of his team, he looks for the multiplier factor of excellence. Truly outstanding designers, engineers and managers, he says, are not just 10 percent, 20 percent or 30 percent better than merely very good ones, but 10 times better. Their contributions, he adds, are the raw material of “aha” products, which make users rethink their notions of, say, a music player or cellphone.

Source: http://www.nytimes.com/2010/01/31/weekinreview/31lohr.html

interlocutor··on Practical tips for writing inclusive job ads (2016)
Can someone define what a "rockstar programmer" is and why a company would want to not hire rockstar programmers?

Here's one definition I found: http://www.urbandictionary.com/author.php?author=ChrisTTT

A computer programmer with such strong skills and so much specific experience that they are the equivalent of a rock star in the domain of software. Many people play guitar pretty well, but only a few become rock stars. These programmers can develop more software than 5 - 10 newly hired regular programmers because they know what needs to be done and how to do it. They also might set the architecture of the product that dozens will build upon.

What's wrong with that?

interlocutor··on React 16
>> making it easier for a developer to understand when, why, and how your state was updated, and what part of the application triggered that state update

What percentage of business applications would benefit from this? My guess is, very few. Typical business applications fetch data from the backend and display it, let the user update the data and immediately send the updated data to the backend. There is no need for something to track "when, why and how your state was updated and what part of the application triggered the state update". I am not saying nobody needs that kind of capability. I am saying that few business applications do, and yet there is this notion that React and Redux go together and if you're going to use React it would be strange to not use Redux. Practically everyone who uses React also uses ReactRouter and Redux.

The end-result of this is that React, which by itself is a simple, elegant and useful technology, has been turned into an over-complicated mess by the community of developers, by gluing it with over-complicated add-on technologies.

← PreviousPage 5 of 7Next →