News for hackers. Stuff that matters.

gniquil

Re:Next.js 2.0 on Monday March 27, 2017 @12:43PM (#13969274)
I think you miss the point of having Next.js being based on React. Although I think handlebars/htmlbars are great (I'm a big ember user), the cool thing about React is it's component based. So pretty much everything you mentioned above, replace BarsHtml to react components, you have Next. However, the react components though in my opinion is much better than handlebars. It is more powerful, more flexible and at the same time more disciplined.
Re:Spec-ulation – Rich Hickey [video] on Friday December 02, 2016 @06:32PM (#13093220)
Haven't watched through the entire video, but the first part, analyzing dependency bottom up, and claiming version doesn't work, really reminds me of graphql. We've been doing traditional rest with /v1/..., /v2/.... This sucks for so many different ways. Graphql's solution of providing contract at the lowest level and just evolve the "graph" really feels a bit like what he was talking about in this video. And note that Facebook by not "provide less" or "require more" in their API is how they made their API still compatible with older clients. This talk is very interesting! (note I could be spewing BS here as I've not finished the video)
Re:Imgix – Image Processing as a Service Reviewed on Wednesday November 09, 2016 @06:31PM (#12915978)
I use imgix at work and love it. However, there's one more downside which the article didn't mention, is no protected or authenticated assets, Say if you only want to serve an user some image if he's logged in. Other than, it's a perfect service.
Re:NSTouchBar API Reference on Friday October 28, 2016 @02:55AM (#12813661)
Increase/decrease font size, adjust window height/width. I know you can do it with keyboard, but perhaps touch bar could make it more "natural" and free up key bindings for something else. Escape can be mapped to a double width button on the left.
Re:NSTouchBar API Reference on Thursday October 27, 2016 @09:37PM (#12812266)
So who's gonna be working on Sublime/Atom/Vim/Emacs integration on this. Shit, imagine all the things one can do with that bar (multi-touch, slidable, swippable).
Re:MacBook Pro on Thursday October 27, 2016 @09:32PM (#12812242)
I don't understand why there's so much backlash against the "bar". Personally I'm actually really excited. I'm a programmer. I can imagine all sorts of plugins and addons one can make for one's favorite editor. Imagine writing a plugin for vim or sublime text to inc/dec font size, mapping short cut functionalities to "named" buttons rather than F9. Don't like it contextually changing on you? Just program it to stay static. Some here complain that there's no escape key. But what prevents you from putting it there (better yet, maybe we could make it twice the width so you won't accidentally hit F1?).

In fact, extrapolating further, perhaps in 10 years, the entire keyboard (and touchpad) will eventually become one giant touch screen, with location specific haptic feedback. By then, the younger generation of programmers who grew up in the age of touch screen phones and ipads will not miss the real keyboards (like we don't miss the blackberries). And that one giant touchscreen will be infinitely more customizable.

Re:Jony Ive's Voice on Thursday September 10, 2015 @02:58PM (#10199870)
Got too much on my hand

  var OVERLAP = 2500;
  var RECENTLY_PLAYED_NODES_LENGTH = 21;
  var recentlyPlayedNodes = [];
  var audioDurationFix = function(audio) {
    if ($(audio).attr('id') === 'ive-13') {
      return 3.0;
    }
    return audio.duration;
  }
  
  var randomNode = function() {
    var newNode = $('#ive-'+(1+Math.floor(Math.random()*$('audio').length)))[0];
    if (recentlyPlayedNodes.indexOf(newNode) === -1) {
      recentlyPlayedNodes.push(newNode);
      if (recentlyPlayedNodes.length > RECENTLY_PLAYED_NODES_LENGTH) {
        recentlyPlayedNodes.shift();
      }
      return newNode;
    } else {
      return randomNode();
    }
  }
  
  var playNext = function() {
    var audioNode = randomNode();
    $(audioNode).on('timeupdate', function() {
      if (audioNode.currentTime * 1000 > audioDurationFix(audioNode) * 1000 - OVERLAP) {
        $(audioNode).off('timeupdate');
        playNext();
      }
    });
    audioNode.play();
  }
  
  playNext();
Re:GraphQL Working Draft on Friday July 03, 2015 @12:11AM (#9823407)
It's sad that you capitulated. I agree with your original point more. Is this thing really flexible, composable, and implementable? How long do we have to wait for people to provide solid implementations on top of all the popular programming language and database backends? Feels like SQL all over again. Someone will be writing layers on top of this in javascript in the frontend and ruby/python/javascript/etc. in the backend. Then we are in another ORM hell. (Perhaps I am being too pessimistic here, it could very well be great, but I have some serious reservations...)
It not said explicitly, but I believe, for us, long term growth means users change their behavior. We need them to stop using Craigslist. We have the same challenge as early AirBnB.
Re:Blinking LED Using Elixir Embedded Image on Raspberry Pi on Tuesday April 28, 2015 @01:25PM (#9453881)
perhaps the way to make it wow, is to connect 100,000 led to it, and each controlled by a separate browser socket. V8/node folks will cry a little.
Thanks for the comment. Our goal is to succeed in the Linkedin/Facebook sense of the word (excuse our enthusiasm, but if not this, we would self fund and be content with organic growth). But I don't want to dismiss their wisdom, as we could be spending our next year building something that will eventually amount to a semi-success/failure, and face a much more difficult pivot.

YC Rejection – How much should we change to address their concern?

After 2 rounds of intense interviews, got the rejection email last night. Although we agree with YC's reason for rejection (user acquisition), we'd like to confirm that not everyone got the same response before we devote our full energy in pivoting or changing something fundamentally to deal with the issue they raised.We are super passionate about our idea and already had planned out the...

( Read More... | 4 comments | 2 points | on HN )
Re:Show HN: Meet me, I'll buy you coffee on Tuesday November 11, 2014 @10:55PM (#8593934)
Your Meet me at "noon" placeholder got cut off (reads "no" right now). Had to pull up the trusty inspector to resize the input element to see the full word... Otherwise awesome!
Re:Show HN: 5iler – a repurposable minimalist notepad on Monday June 16, 2014 @04:16PM (#7901227)
Great job! Like the concept. But here's another nitpick.

I see when you activate a file, the animation first shrinks the file a bit and then expands it out. Is it possible to remove the shrinking? It makes the app "feel" a bit jerky. I think the reason is when you shrink the activating file, all other files expand by a bit. This causes the whole screen shifting a bit, leading to a somewhat jarring experience for a split second.

Re:XD - a messaging app that looks radically different on Monday May 26, 2014 @12:38PM (#7800455)
And of course someone should make storify for this once it gets popular.
So I just looked at the quick start demo code. Did everyone notice the irony in it? We created some fake people and some fake orders and randomly let the people see the fake orders. Then we try to predict based on this data. A bit silly isn't it?

But anyway, the whole thing seems pretty cool.

Re:Three simple steps to better sleep on Monday November 12, 2012 @08:46PM (#4775845)
in 15 slides. :)
I have a very noob question. For most databases, suffix search is always super slow. However, can't someone just build an index based on the string reversed, then treat suffix search exactly the same way as prefix search? This doubles your index storage requirement. But index storage is generally not a problem. Finally this could be perhaps extended to cover any wildcard searches (hell*world)