News for hackers. Stuff that matters.

blinks

Re:There are too many video games on Wednesday February 02, 2022 @05:40PM (#30185138)
Imagine making this same point about books: https://en.wikipedia.org/wiki/Books_published_per_country_pe...
It's more important to make code readable than clever, and more important to be simple than fast.

It tends to be pretty easy to speed up readable+simple code when you need to do so, but fixing broken fast+clever code is much more difficult.

Re:Why I Don’t Talk to Google Recruiters on Tuesday February 21, 2017 @12:03PM (#13697122)
> It does include a lot of arcana about how web application stacks work, the network and gateway protocols they use,...

This was my second phone screen at Google, for what it's worth.

Re:Dwarf Fortress 0.42.01 released on Wednesday December 02, 2015 @11:40AM (#10663959)
I highly recommend looking into Inform7, effectively a text adventure IDE (though the community tends to call it "interactive fiction").

The language is a bit odd, and attempts to "read like English", but it provides so much scaffolding I feel like it's worth it.

Re:Show HN: A Hand-Drawn QR Code Alternative on Monday July 27, 2015 @05:06PM (#9958003)
If the system was namespaced, it'd be even better -- essentially make Meshtag just the translation layer (drawing to id), and then pass that identifier into any backend you like.
There are tens of thousands of employees at Google. Most of them interview. People are different.
http://bazel.io/docs/skylark/concepts.html

You can [at least internally] define custom rules to handle pretty much anything, in almost-but-not-quite-python.

Re:Node.js in Flame Graphs on Wednesday November 19, 2014 @01:35PM (#8631732)
For more concrete syntax, consider the following Python:

  >>> import re
  >>> route = re.compile(r'(?P<fb>^/foo/bar$)|(?P<fbd>^/foo/bar/\d+$)')
  >>> route.match('/foo/bar').groupdict()
  {'fb': '/foo/bar', 'fbd': None}
  >>> route.match('/foo/bar/1').groupdict()
  {'fb': None, 'fbd': '/foo/bar/1'}
If the fb group is set, act on the first route. If the fbd group is set, act on the second.
Re:C4 – C in 4 functions on Tuesday November 04, 2014 @09:27PM (#8560237)
> understanding why it is done in this particular way is another

Isn't that the reason for comments in the first place?

Re:Copywrong on Thursday October 16, 2014 @05:23PM (#8467837)
> Either way, when you’re reading a linked page, you may still > be “at” awesomestuff.com, as clicking the back button on > your browser can instantly confirm. Effectively, > awesomestuff.com has stolen content from newyorker.com, just > as the compiler of “Most Thoughtful Essays” stole content > from me.

"At" is the wrong word. The browser is requesting content. If it's requesting content from awesomestuff.com that only newyorker.com has permission to copy, that's a copyright problem.

This is a very odd metaphor for a journalist to mistake. It's as if any reference they make in a piece is violating the copyright of the referenced item. Is reference that difficult of a concept to grasp?

Re:The Phantom Time Hypothesis (2011) on Thursday August 21, 2014 @12:56PM (#8208312)
Grep the article for "If someone had changed the calendar, wouldn't anyone else – say the Muslims? – have noticed?" -- a paragraph which ends with:

"All these areas would require an enormous amount of research either to validate or refute the theory, research that is unlikely to be undertaken by anyone not interested in rewriting the timeline."

Re:Google Checkout Closing Down on Nov. 20th on Monday October 21, 2013 @10:48AM (#6585893)
Specifically:

* Merchants selling digital goods may transition to Google Wallet for digital goods

* Merchants selling through Google-hosted marketplaces (e.g. Google Play) will be unaffected

* Merchants selling physical goods will need to switch to third-party alternatives (see below)

-- https://support.google.com/checkout/sell/answer/3080449

Re:Kids can't use computers, and why it should worry you on Friday August 09, 2013 @06:30PM (#6188998)
I would ask if you had ever worked in IT.

There is a reason such jobs turn people into curmudgeons. It's not like they all started that way. You attempt to give a simple explanation as to what you're doing, but as soon as you say anything about their computer, they assume it's technical and tune out.

There are definitely people that would come into the office and learn how you fixed things, and those people were wonderful. Few and far between, though.

Re:Google launches 18 new Google+ features on Saturday December 15, 2012 @12:06PM (#4925668)
What's the point of Facebook? Twitter?
Re:Bringing Google+ to work on Wednesday August 29, 2012 @02:15PM (#4450178)
> I don't know why, but psychologically I would feel like this is somehow less private than, say, a mailing list. I'm probably becoming old :)

I think that's a really interesting comment! Perhaps it's because the UX is more social network-y (FB/Twitter), which are historically public, and less email-y+historically private?

Re:Gnome: Staring into the abyss on Friday July 27, 2012 @11:11AM (#4301801)
Your comment would carry more weight if I knew what projects you recently contributed to.
Re:Writing good commit messages on Friday July 20, 2012 @11:57AM (#4271355)
Doesn't seem like an amazing rationale; personally, I like periods -- they let me know the writer finished their thought.
Re:Things I Love About Go on Friday June 22, 2012 @06:01PM (#4149059)
I _think_ the complaint is the following:

if x == nil { x.doSomethingCrazy(); // Runtime error? } else { ... }

"Boolean blindness" (bah) is that either the type system should catch this at compile time (because we know x is nil), or the language should make it impossible to phrase (pattern matching to pull the information out, such as with the Maybe type).

Go has many type system oddities (reflection instead of generics, for instance), but the things they _have_ done (auto-implementation of interfaces, for example) are pretty cool.

Re:Against live-tweeting at conferences on Thursday June 07, 2012 @07:24PM (#4081867)
> Complaining that every attendee's attention is not > permanently fixed upon you strikes me as particularly vain.

I read this differently: an audience can get the most out of a presentation by paying attention.

If you're consciously communicating while attending a presentation, you're probably not getting anything out of what's being immediately said. In an information-dense presentation, that means you're not getting the most out of the presentation: unfortunate at best, and making the rest of the presentation hard to understand at worst.

Perhaps it's more useful read as an "attendee tip" than a "presenter request?"

Re:The trouble with Javascript on Friday April 27, 2012 @01:54PM (#3900262)
> Prototypes are simply more complicated than classes.

[citation needed]

I'd argue the opposite: "Prototypes are simply more _intuitive_ than classes."

OO-design says that X is-a Y is-a Z, with inheritance providing the main form of structure.

Prototypical-design says that X is-like-a Y, but with these differences. This NPC (specific, X) is like any other NPC (general, perhaps the original NPC prototype), but with the name Fred and this custom AI code.

They're different ways of thinking, but prototypes are certainly not more complicated than classes in the general case.

----

As for the syntax, though, I totally agree with you.

Re:Go version 1 is released on Wednesday March 28, 2012 @12:39PM (#3767079)
The language is interesting, at the very least -- concurrency primitives are nice, and the interface-based type system works for most cases (generic containers notwithstanding).

The major speed problem right now is GC, but that should be improving quickly.

Re:Why, oh why, do those nutheads use vi? on Thursday February 02, 2012 @02:13PM (#3544034)
Re:Why Dart is not the language of the future. on Tuesday October 11, 2011 @01:14PM (#3099405)
You can even go farther than that -- return true on success, and anything else on failure, and you get the semantics this person wants. If the results should be saved, that should generally be done outside the if condition anyway.
Re:NaN does not equal NaN on Tuesday September 27, 2011 @05:13PM (#3045259)
Actually, they're _not_ both equal to infinity, in the mathematical sense (which I believe you're discussing) -- X / 0 is undefined.

What's equal to infinity is the limit of 1 / x as x approaches 0, and that's only from the positive side. From the negative side, it's -infinity.

Re:Amazon is More Interesting than Google on Thursday September 08, 2011 @11:59AM (#2974386)
Caste system? I'm an SRE-SWE myself, but I couldn't tell you what side of the fence each of my team members are. (I might have an educated guess, though, based on the projects they choose to work on...)
Re:Skype options turn out to be worthless on Friday June 24, 2011 @03:08PM (#2693462)
That doesn't seem to fix the underlying problem -- they understood/read the plain english version, just not the terms.

Honestly (and I'm guilty of this as much as anyone), I doubt they even read the terms. Here we have this huge thread about contract language being hard to understand, but if one doesn't take the time to read through, understand, and _remember_ all the terms of the agreement, how can one act on that information?

Complex, perhaps, but it's a complex subject.

Re:Writes large correct programs on Tuesday May 17, 2011 @03:59PM (#2557626)
> You check the ones that you expect.

You expect buffer overflows? Out-of-bounds arguments? These are the things the GP is referring to, I figure.

Re:My fellow geeks, we need to have a talk. on Monday March 14, 2011 @12:56PM (#2323254)
Skaters are actually pretty cool guys, in general. First skate video I found on YT: http://www.youtube.com/watch?v=DAvGzCPa0TU

Sample comments:

Asking for advice: > when you tre flip over something (gap, stairs or anything) does anyone else dangle their foot like this guy?

Generic compliment: > damn, nice

Complimenting form: > you land well clean kickflips

Observation of differences: > it realy is true how europe has alot more amazing skate spots n obstacles than america,

One troll: > u blow

Re:Ars reviews the Motorola Xoom on Monday March 07, 2011 @05:28PM (#2298977)
The forum manager (Matt) on that thread is being very cool about the whole thing; bravo, Motorola.

Older »