HNHacker News
TopNewBestAskShowJobs

Aldo_MX

1,950 karma · joined March 16, 2013

submissionscomments
Aldo_MX··on Kaspersky OS
Depends on who you ask, for example, taking the top 50 products with new vulnerabilities discovered in 2016[1], Windows 10 got less vulnerabilities than the Linux Kernel and OS X.

This could either mean that Windows 10 has become more secure than its most popular competitors, or that researchers hadn't invested enough resources to audit Windows 10 properly.

Taking into account the results from previous years and previous versions (like 8.1), my personal conclusion is that Windows has actually become more secure.

[1] https://www.cvedetails.com/top-50-products.php?year=2016

Aldo_MX··on Microsoft Replaces Command Prompt with PowerShell in Latest Windows 10 Build
That's my biggest concern, I actively avoid PS just because I can't tolerate its startup time.
Aldo_MX··on Regex 101
I have used this website a lot in the past, it has greatly helped me debugging complex expressions, I would love to see an electron port in the future.
Aldo_MX··on Dash for iOS is now open source
When you have a fast and stable internet connection you hardly appreciate how useful it is to read offline docs.

When you don't, it is a godsend.

Aldo_MX··on Visual Studio for Mac
https://webcache.googleusercontent.com/search?q=cache:Vk2On-...
Aldo_MX··on Angular 3 is hot on the heels of Angular 2
http://dayssincelastjavascriptframework.com/
Aldo_MX··on Canada's immigration website crashes on election night
Maybe not Americans, but Mexicans, since the visa requirements are expected to be lifted[1].

[1] http://www.pm.gc.ca/eng/news/2016/06/28/canada-lift-visa-req...

Aldo_MX··on Microsoft Is Now 'Open by Default', Says Xamarin Founder Miguel de Icaza
My Windows 10 Telemetry settings really look "open by default"...
Aldo_MX··on Ask HN: Overwhelmed with learning front-end, how do I proceed?
Neither orphaned, nor dead-end, just declining in popularity, but not a concern when you still work with jQuery.

The reason I picked Angular 1.5 as the suggestion is that you can still learn it the old-fashioned way:

  - Load it from a CDN and start coding, no NPM or Bower required at all
  - No build process or transpilers (ex. Typescript / Babel / JSX)
  - No decisions for dependencies (ex. Gulp vs Webpack / Flux vs Redux / Enzyme vs Mocha / etc.)
Rather than overwhelming a developer with the current state of affairs, it should be better if he can begin focusing in the DOM-less paradigm and basic concepts like Data Binding.

You may not get to know the new hotness like ES6 and Live Reload when you begin learning Angular, but it's pretty unlikely that a jQuery developer will miss them anyway, whatever, it's pretty likely that they will learn about them when they begin researching about tools like Babel and Webpack.

OTOH, Angular 1.5 backported components from Angular 2, so the transition from Angular to React will feel more familiar, and you can get away without learning Angular-specific concepts like custom directives, the mundane details are abstracted away with components.

Finally, the requirement is to learn the basics, not the entire framework, I also agree that investing time in Angular 1.5 is not worth it, but it is worth getting a high level understanding of it, since tools like Vue assume some familiarity with that high level understanding.

It's not the same learning Vue when you're an Angular developer, than learning Vue with a blank canvas. At the end of the day Vue is the Angular's Zepto.js

Aldo_MX··on Ask HN: Overwhelmed with learning front-end, how do I proceed?
Frameworks like jQuery allow you to do DOM manipulation in a less painful way, but frameworks like Angular, React or Vue do their best to abstract DOM manipulation away. This is the reason you may feel overwhelmed by the learning curve, since a paradigm shift is involved.

I would suggest you to check the basics of Angular 1.5 first, just the fundamentals to understand the big picture and build a basic application.

The reason is because Angular is an opinionated framework which gives your project a specific architecture, so you can focus your learning efforts in appreciating the decisions that were taken for you and how the different pieces fit together.

Whenever you feel comfortable with the basics of Angular, you can start checking alternatives like React or Vue, which will feel less strange and over-engineered at this point.

Aldo_MX··on Nyancat on the touchbar
We can bring memories back, who needs Internet Explorer when your keyboard has an integrated toolbar?

https://twitter.com/cfieber/status/792030673963851776

Aldo_MX··on Is democracy a failure? (1861)
I am not an expert in decision-making processes, and I have not an idea of which process would work better, since I understand the big picture: We want to give every person the ability to express their needs with their vote.

I am just a concerned person, since most of the candidates spend too much time discrediting their opponents, rather than discussing about their proposals.

The electoral process had became a reality show rather than a mechanism to choose a representative, and it is saddening that people are picking a candidate because of a catchy slogan, rather than because of their proposals...

Aldo_MX··on Is democracy a failure? (1861)
I believe that democracy in theory is excellent, but in practice is a failure, not because of democracy per-se, but because a gut-feeling vote and a properly-researched vote count the same.

I'm in no way suggesting that one vote should be valued more than another one, but that people should be doing their homework and researching properly the benefits and consequences of their decisions...

Having a majority of the population voting with the gut can lead us to disastrous results...

Aldo_MX··on Visual Studio Code 1.7 overloaded npmjs.org, release reverted
it was a tremendous overload
Aldo_MX··on Tell HN: Ycombinator.com Blacklisted by Norton
Hopefully the bureaucracy to get removed from the blacklist is not as bad as with other vendors.
Aldo_MX··on A Quantum Leap for the Web
Considering that Servo is an embeddable engine, why not keep the scope of Servo focused in building a standards-compliant engine?

Replicating other engine's bugs sounds like too much effort towards the wrong direction :/

Although, after the -webkit-disaster I don't really expect anyone to like the idea of a standards-compliant engine :(

Aldo_MX··on A Quantum Leap for the Web
It also benefits the Rust language for the same reasons. Firefox is already shipping components compiled in Rust[1].

[1] https://hacks.mozilla.org/2016/07/shipping-rust-in-firefox/

Aldo_MX··on Microsoft, I Forgive You
Have you ever heard of "Windows Defender"? They got more than 96.2% of detection rate according to AV Comparatives in September 2016[1].

Have you ever heard of "Windows 10"? They got less CVE vulnerabilities reported in 2016 than Android, Debian, Ubuntu, Flash Player, Adobe Reader, Mac OS X, The Linux Kernel, iOS, even Chrome and Firefox[2].

If these are not examples of "adequate or even reasonable protection", then you got really unrealistic expectations or you're simply hating Microsoft for the sake of hating them.

As I said, it is not possible to deliver bug-free code, and you learn to live with it or you die hating every software vendor in the world.

Just remember, falling in the "I don't need AV, I don't use Windows" fallacy will bite you, and will bite you hard[3].

[1] https://chart.av-comparatives.org/chart1.php

[2] https://www.cvedetails.com/top-50-products.php?year=2016

[3] https://scalibq.wordpress.com/2011/09/02/the-kernel-org-hack...

Aldo_MX··on Microsoft, I Forgive You
I don't find the QA part that terrible, freeloaders are the kind of users that would pirate Windows, so rather than being a nuisance they're volunteering themselves to test the OS.

Although it would had been better if they kept their QA teams, since there are issues that only a QA engineer would be able to find.

Aldo_MX··on Microsoft, I Forgive You
An EULA is displayed the first time you turn your PC on (or during the Windows setup), if you had read it you would probably know what are you paying for.

Anyway, I suggest you to read the Open Source licenses before hating on Windows about malware, all of them basically say: "If you break your computer it's not our fault", like the following excerpt from the GPL:

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
I don't condone malware, but it is pretty obvious that the most popular platform will be the most targeted by malware authors. Too many people fall for the "I don't need AV, I don't use Windows" fallacy, but every software is vulnerable.

The best advice I can give you is the following one: Don't run untrusted code.

Aldo_MX··on Microsoft, I Forgive You
So... you're also going to hate Linux since they left Dirty Cow unpatched for 9 years?

Get real, perfect and secure code doesn't exist.

Aldo_MX··on Next.js – A small framework for server-rendered universal JavaScript apps
I tried the demo here, and middle click or ctrl+click is not working, quite the contrary, it is treated like a regular click :/

https://nextgram.now.sh/

Aldo_MX··on Why we chose Vue.js
Why should you?

I mean, it is really handy to have a tool to save you from the initial setup and all that boilerplate code when you already know how it works.

But not knowing how the different pieces fit together will bite you when things start to fail.

Aldo_MX··on Span – An abstraction over all types of memory available to .NET programs

  Span<T> is a new type we are adding to the (.NET) platform to represent
  contiguous regions of arbitrary memory, with perfromance characteristics on
  pair with T[]. Its APIs are similar to the array, but unlike arrays, it can
  point to either managed or native memory, or to memory allocated on the stack.
Aldo_MX··on Taking PHP Seriously
Yes, an order of magnitude, in PHP we're talking about _minutes_ in Rust we're talking about _hours_ or even _days_ for a beginner programmer, ever tried to install Homebrew in a Mac to name an example? It adds at least a few hours to the equation with its dependency on Xcode unless you already know to just install the command line tools.

Remember that a beginner programmer doesn't always have a background in Computer Science, maybe it's a child, maybe a graphic designer, maybe an elder person or a housewife. Are you really expecting from a person foreign to CS to stop tinkering just because they can't write secure and performant code in your favorite language?

Again, stop taking for granted the initial process setup and all the gotchas that you already know, stop nitpicking in the example of templating and see the big picture: A beginner programmer being able to get instant feedback with little effort in their browser of choice. No initial project or repository set-up, no install for external libraries, no huge development environments (like Xcode or Visual Studio), no build process or compilation, no command line, just an app like WAMP (on Windows) or MAMP (which people accustomed to homebrew avoid) and a browser pointing to http://localhost.

PHP is not a perfect language, but it's neither the abomination people like you describe, too many people judge PHP by its former state of the art and are unaware of the progress it has had in the last years, many of the most popular issues are already gone or at least are too difficult to trigger, to name an example, PHP stopped having register_globals since version 5.4, and PHP 7 added strict type hinting, which throws an error instead of doing unexpected type coercions.

That doesn't mean that PHP is a better choice than properly-designed alternatives, just that it's less worse than before. I agree with the sentiment of using a well-designed language like Rust, but only when a project really requires that degree of security and performance (ex. writing a browser like Servo).

A bakery website written by the kid of a patissier doesn't require that degree of security and performance... Or are you really going to demand that child to use your favorite language just because you despise PHP?

Aldo_MX··on PHP 7 deployment at Dailymotion
Take the attacks with a grain of salt, although many of the criticism is true, it is not exclusive to PHP, ex. the unexpected type coercions.

OTOH, most of the performance benchmarks done against PHP (ex. PHP vs Python) usually mean "which language is faster at crunching numbers". I/O operations like reading a file from disk or running a query against a database are an order of magnitude slower than number crunching, so any of the gains you can get by switching languages become effectively negligible, unless you really care about nanoseconds.

Remember to always pick the right tool for the job, you won't use PHP for number crunching the same way you won't pick C++ to build the minimum-viable-product website of a startup.

Aldo_MX··on Taking PHP Seriously
> I suspect you can with some effort

That is my point. You require effort in an order of magnitude greater than with PHP in order to achieve the same result, which in the case of a beginner, is the difference between continuing their journey in programming or abandoning the ship.

You are failing to see the big picture and are taking for granted the plethora of initial setup you have to do to begin working with a language like Rust (ex. generating bindings for a database driver written in C if it doesn't exist in cargo), you were just nitpicking in the syntax of the previous example (which BTW, I took care to clarify it was an example of bad code to avoid people not familiar with PHP from getting the wrong idea).

It was my fault to say "you can't" in my previous message (see Atwood's Law), I really meant "it requires too much effort".

Aldo_MX··on Taking PHP Seriously
> we should definitely stop using them

That will never happen, you can't write code like this in Rust:

  <!-- Snippet taken from an example of tightly-coupled and unmaintainable code in the Clean Architecture in PHP book[1] -->
  <body>
    <?php $results = mysql_query('SELECT * FROM customers ORDER BY name'); ?>
    <h2>Customers</h2>
    <ul>
      <?php while ($customer = mysql_fetch_assoc($results)): ?>
      <li><?= $customer['name'] ?></li>
      <?php endwhile; ?>
    </ul>
  </body>
Even when the previous code is an abomination, it is absolutely easy to write, this is why languages like PHP are a success, the barrier to entry is definitely low.

The issue comes when the whole industry buys the idea that PHP equals bad code, fail to appreciate the progress the language has had in the last years, fail to appreciate the effort behind projects like Symfony, and become completely foreign to the current best practices.

[1] https://leanpub.com/cleanphp

Aldo_MX··on Taking PHP Seriously
Which of the top languages is actually well designed? All of them have their area of opportunity.
Aldo_MX··on Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line
> I really enjoy how the author broke down both the problem and the solution, explaining why the existing solutions are inadequate.

A thousand times this, I always get frustrated that every single product, tool or service has to have a lot of marketing gibberish, catchy slogans, etc., but zero explanations of what problems do they attempt to solve, or what was the motivation to create them.

You usually are required to dig further in the documentation or look for an external reference to understand what's the real purpose behind a product, tool or service.

← PreviousPage 7 of 26Next →