HNHacker News
TopNewBestAskShowJobs

g00gler

319 karma · joined April 8, 2016

submissionscomments
g00gler··on Ask HN: Best linux laptop for developers
Razer looks like exactly what I was looking for, I guess I could settle for a 14" screen. TBH I forgot about them.

I didn't see any Dell, System76, Asus or HP laptops that were all metal and on par with a MacBook, only an Asus netbook.

g00gler··on Ask HN: Best linux laptop for developers
I was thinking of doing a kickstarter for a single run of aluminum laptops when I need a new machine.

It bugs the hell out of me that I can't buy a non-apple metal computer.

g00gler··on Ask HN: How to make a career working remotely?
I didn't enjoy working part time only because I felt like I fell out of the loop.

I'd come to work and a bunch of stuff was already done, etc.

So I'd say, try and make sure that you don't get so caught up in new stuff that you're no longer productive with old stuff. That can also be very frustrating.

g00gler··on Dear Matt Mullenweg: An Open Letter from Wix.com’s CEO Avishai Abrahami
If he's calling the people who work on WordPress engineers he could probably plead ignorance.
g00gler··on Comparison with Other Frameworks
You can't use JSP to make a SPA, either. I was replying to the statement "Angular is for n00bz"
g00gler··on Comparison with Other Frameworks
Could've sanatized the input before saving it to the database :p
g00gler··on Comparison with Other Frameworks
No, I wrote it on my phone and didn't double check the angular example. I noticed another little mistake so I'll edit it
g00gler··on Comparison with Other Frameworks
How do you mean, "templates for non-programmers"?

I see Angular's directives as a pure convenience compared to most every templating engine I've used across languages, never considered it something that makes it accessible to non-programmers. I'd actually think someone who only knows html/css would be more thrown off from a page with random, unsanctioned (by W3C), tags and attributes that may or may not reveal what they actually do.

As a programmer I don't want to write long templates, I seriously prefer Jade/Pug for that reason. When I can't use them for a client I typically use them to do all initial work, compile them to HTML, then make whatever minor changes from there.

Consider ng-for:

  <div data-ng-for="y in x">
    <h1>{{y.title}}</h1>
  </div>
The ASP.Net solution is a pain, a function with HTML string template to dynamically add elements to a "runat" div.

This PHP example seems more idiomatic, at least to me, yet takes more to write

  <?php foreach($x as $y){ ?>
    <h1> <? echo $y->title; ?> </h1>
  <? } ?>
The JSP style is kinda similar to Angular, again maybe more idiomatic at first glance but still not as quick/simple to write

  <c:forEach items="${x}" var="y">
    <h1>${y.title}</h1>
  </c:forEach>

The jQuery/plain JS solution, especially before ES6 is not preferable by any means, especially beyond this simple example.

  var body = document.getElementsByTagName("body")[0];

  [...].map(function(y){
  body.innerHTML += 
    "<div>"+
     "<h1>"+y.title+"</h1>"+
    "</div>";
  });

Unlike all the other solutions, angular has 2 way data binding so when you programmatically add elements to the array in ng-for, they are added to the DOM without a reload.

So, is the goal of a programmer to simply write more code? If so, then Angular is definitely not for programmers.

Is the goal of a programmer to solve problems? If so, Angular is definitely a tool for programmers.

g00gler··on Response from Google Tech Lead, Re: “Google May Be Stealing Your Mobile Traffic”
Is there an option to avoid it from an end user's perspective? It's made google news so frustrating for me, it will go back a page in history or slide to the next story for no reason whatsoever. I have a Nexus 6P, use Chrome so there's no reason for it to act like that other than just being shitty.

I kinda just stopped reading Google news rather than try to fix it (:

g00gler··on New 'Dead Sea Scrolls' Revealed
Good point. I don't think many countries have Freedom of Information Act requests and whatnot.
g00gler··on New 'Dead Sea Scrolls' Revealed
Isn't the argument against copyrights very similar, if not the same, to the argument for the state to own historic artifacts?

I'd argue that the state should own historic artifacts so that they can be held in common. That way no one individual can claim ownership, retain the right to destroy it if they wish, and prevent others from viewing/studying it.

Of course the state isn't going to let me or you handle it, but they'll obviously give access to research institutions and whatnot who will publish their findings. Hobby Lobby dude might not do the same and as a private owner, he retains the right not to.

g00gler··on Angular 2 – Best Practises
I second that. I was able to go from the tutorial to building a couple of small apps on my own, painlessly.

Super nice IMO

g00gler··on Microsoft kills project Spark
Looks really cool, I wish Unity's UI builder was as intuitive.

Is there anything that comes close to this in scope/quality for any other platform?

g00gler··on Where the Middle Class Is Shrinking
I guess that's true, I'm just a fancyite. Gotta have that sushi delivered to me, etc
g00gler··on Where the Middle Class Is Shrinking
That's true, but what do you do for a living? I think it'd be significantly harder to find a job as a developer in the middle of nowhere, it's even hard to find an interesting job in the suburbs IME.
g00gler··on Romanian hacker who claims he breached Clinton server says he spoke with FBI
That's pretty crazy. Politics aside, she should definitely be indicted. They arrest us hackers for much much less.
g00gler··on Will the real RESTful API please stand up
So HATEOS is a requirement of REST? I've been calling my JSON apis RESTful all this time like a fool.

Guess they're simply JSON apis. I don't really care to parse XML so I guess I won't be getting any REST from my apps.

g00gler··on OxyContin's 12-hour problem
Funnily enough I was trying to pick up React with my time off but I just couldn't make it do the thing. Next day, off narcotics, it was a breeze lol.
g00gler··on OxyContin's 12-hour problem
How was going to work on the oxy? I had surgery a few months ago and stopped taking them after 2 days because I couldn't focus (or really think clearly) after taking a dose.
g00gler··on HP Unveils Premium Chromebook: 3K Display, Intel Core M, 16 GB of RAM and USB-C
I agree, I can't use 1920x1080 or lower. Plugging my MacBook into a TV is horrible for anything but watching TV from a distance.

I think 2560x1440 is probably the ideal resolution for the time being, looks good enough, no need for a graphics card, cheap monitors, etc.

g00gler··on Show HN: Jam API, turn any site into a JSON api using CSS selectors
>However, as cool as this is, it's just another way to "scrape"

Isn't that the point? The demo seems like it'd be a lot easier, less verbose, and probably less brittle, than using cUrl/xpaths or otherwise parsing that HTML yourself.

g00gler··on Traffic to Wikipedia terrorism entries plunged after Snowden revelations
For some context

http://www.huffingtonpost.com/entry/venmo-cuba-sanctions_us_...

g00gler··on When Is the Singularity? Probably Not in Your Lifetime
What makes you say that?
← PreviousPage 6 of 6