Better HN
topnewbestaskshowjobs
Log inSign up

gniquil

29 karma · joined Sep 19, 2010 (16y ago) · 21 submissions

Submissions

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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)

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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).

comment 10y ago · link · parent

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.

7.

Clojure Spec Screencast: Leverage(youtube.com ↗)

3 points · by gniquil · 10y ago · discuss

comment 11y ago · link · parent

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();

comment 11y ago · link · parent

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...)

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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.

13.

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

2 points · by gniquil · 11y ago · 4 comments

comment 12y ago · link · parent

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!

15.

Elixir vs. Ruby Showdown – Phoenix vs. Rails(littlelines.com ↗)

6 points · by gniquil · 12y ago · discuss

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

And of course someone should make storify for this once it gets popular.

18.

Myths, Reality, and Relationship-Building in the EdTech Community at #SXSWedu(21stcscience.blogspot.com ↗)

1 points · by gniquil · 12y ago · discuss

comment 13y ago · link · parent

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.

comment 14y ago · link · parent

in 15 slides. :)

comment 15y ago · link · parent

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)