News for hackers. Stuff that matters.

xtrumanx

That sounds very similar to the "what was she wearing when she got harassed" mentality which I believe was frowned upon around here.
TL;DR doesn't always appear at the beginning which is what cmdkeen was talking about.
Re:Thinking in GraphQL on Thursday October 08, 2015 @09:06AM (#10352471)
If you have two fields in a query, does that mean two resolve functions? If I using a SQL database and the two fields were stored on two columns on the same table, wouldn't that cause 2 SQL queries to be run?
Re:Thinking in GraphQL on Thursday October 08, 2015 @09:02AM (#10352448)
I'm a big fan of React but it took me a year after its introduction for me to get it and like it. What particularly did the trick for me was one of Pete Hunt's talks he gave a year after release acknowledging the confusion and explaining the reasoning for React rather than just the technology itself.

I feel like GraphQL can be something great and the pain points they identify with typical APIs are stuff I've felt but GraphQL just feels incomplete to me. I feel they're focusing too much on what GraphQL looks like on the client-side and not enough what it looks like on the server-side. The biggest question I have is what's going to process the GraphQL query on the server to fetch the data from the actual datastore? What does that look like when working with typical datastore such as a SQL-based database? The closest thing I've seen that answered that question was this blog post[0] which doesn't look very appealing if that's what the server-side implementation is going to look like. The blog post's implementation looks like a more complicated version of my own APIs which are usually a series of custom endpoints based on my client's needs. I don't see the big deal right now. Maybe next year...

[0] https://medium.com/@clayallsopp/your-first-graphql-server-3c...

Re:Gatsby – Static Site Generator with React and Webpack on Monday September 28, 2015 @01:41PM (#10291763)
Closest thing I can think of is Microsoft's WebMatrix.
Re:Gatsby – Static Site Generator with React and Webpack on Monday September 28, 2015 @09:03AM (#10290209)
The docs page delivered 270kb of compressed and minified JavaScript (1MB uncompressed) but sadly didn't seem to show anything with JavaScript disabled. I thought all the hot new React apps were isomorphic nowadays.
Re:30 second arithmetic challenge on Saturday September 26, 2015 @04:27AM (#10282553)
This reminds me of morning routine back in grade school called "Mad Minute" where we would be given a sheet containing 30 or 50 simple equations to solve. You'd have to complete it in a minute and the teacher would stopped grading at the first wrong answer so getting the first one wrong follwed by 49 correct answer would net you a score of zero.

When I first transferred to that school I was terrible at it but I did get pretty good at it later on. I think it did a lot for my arithmetic skills.

Anyone know what the "$Windows.~BT" folder is would supposedly be located?
Re:Don't Use Sails (or Waterline) on Monday September 07, 2015 @04:59AM (#10180622)
Wow, can't believe how bad some of those issues are. It was like reading a DailyWTF article without the forced humor.
Re:What I learned from losing my Facebook internship on Sunday August 23, 2015 @09:52AM (#10105477)
Predictable for a typical large corp. Not particularly predictable for companies projecting a cool hacker company persona.
Aren't generators part of Babel? As long as you target ES5 shouldn't you be able to use generators via Babel?
Re:Ember.js 2.0 Released on Thursday August 13, 2015 @06:10AM (#10053134)
There was a guy who joined the Knockout or Angular team (I forget which) since they had similar ideas for the future of their frameworks. Not too long later, he left them and restarted his project as their vision began to diverge.

I don't know why anyone would want One True JS framework. Many of them provide different things. Angular has the kitchen-sink approach handling everything from templating, model-binding, routing and ajax requests and on the other end of the spectrum there are small libraries that do one thing well and encourage their users to adopt other libraries to do other stuff. Choice is a good thing.

Ask HN: Why would people trust their banking credentials to a service like Mint?

I wrote my own unofficial API for a banking website[0] (check balance, send money, view transaction history) by essentially writing a crawler that would do whatever the a user would do if they were navigating the website themselves. I built it for fun to see if it was possible and then shelved it along with the rest of the half-completed projects littering my hard drive.I was wondering how...

( Read More... | 57 comments | 49 points | on HN )
Re:GraphQL Working Draft on Thursday July 02, 2015 @12:24PM (#9819920)
> It is not a fully standalone GraphQL server that a client developer could use to start manipulating and querying data.... The only “backend” we have targeted for this early preview are in-memory stubs in test cases.

> To that end the target audience is not the client developer, but those who have or are actively interested in building their own GraphQL implementations and tools.

I guess I'm kind of happy that FB are releasing something regarding GraphQL since introducing it in February. I just thought they got busy with React Native and forgot about everything else they hyped up back in February.

> You can have less plea bargaining and more court overhead, or you can have more plea bargaining and fewer delays for trials.

That sounds like a classic false dichotomy. How about less plea bargaining and more resources for the courts so they don't have require massive delays to deliver justice.

I doubt you'd feel the current system was just if you experienced what Browder went through. How about a little empathy.

Thanks for reminding me about lobste.rs. Last time I checked it out there weren't many comments which didn't inspire me to leave a comment. My favorite part of HN was the potential discussions to be had and its great to see lobste.rs now has more comments than what I used to remember.

Odd, I was sure I had a lobste.rs account but it says my username is invalid. Do you have an invite available?

Re:Ember.js 1.13.0 and 2.0 Beta Released on Saturday June 13, 2015 @07:41AM (#9710722)
You don't need another framework to build apps with React. But you will need several libraries as React isn't "kitchen sink" type framework like Ember and Angular.

In my React-based apps, I typically include react-router for routing and request or superagent for ajax calls. You can also include a Flux-inspired library if you're into that sort of thing.

Re:Show HN: A Repo of JavaScript Coding Challenges on Friday June 12, 2015 @04:38PM (#9708370)
Pro tip: MDN is your friend while solving these.
Re:19 days to build a 57-storey tower on Thursday June 11, 2015 @01:57PM (#9701245)
Damn, I'm usually a humorless person when it comes to comments trying to be funny at HN but this, this was good.
Immutable.js is a project also from FaceBook that brings immutable data structures to your JS applications including those using React.

Since Clojurescript compiles down to JS, wouldn't it be possible to use Immutable.js and a slightly different app design (a single Flux Store for the entire app) to get the same benefit of using React with Clojurescript?

Re:Postgres pushes past MySQL in developer hearts on Tuesday May 26, 2015 @03:00AM (#9603307)
That story was from over 24 hours ago. Stories routinely get off the front-page.

Here it is: https://news.ycombinator.com/item?id=9598211

Re:Losing it All on Sunday May 24, 2015 @02:34PM (#9597081)
Wait, is that normal in the U.S.? To be able to save only around $10k on a $100k a year income?
Re:Losing it All on Sunday May 24, 2015 @02:20PM (#9597035)
It was a fantastic read. It's crazy how fast things got bad for you and up again. To go through that in 4 months must have been a emotional roller coaster.

It's also great to hear how many people helped out when you told them about your situation.

Re:Ask HN: Do you feel like you're missing out? on Saturday May 23, 2015 @01:08PM (#9593508)
Here's the Kevin Rose cover [0]. I remember him downplaying it but I thought he was being modest at the time.

[0] http://i.imgur.com/KFveyzl.jpg

Re:Ask HN: Which cloud do you use, and why? on Thursday May 21, 2015 @12:18PM (#9583682)
Thank you for introducing me to port knocking (wikipedia link for the unintiated [0]).

Not trying to lure into an argument you're trying to avoid but I'm just curious; what is the religious argument about regarding port knocking? I know about both sides to tabs/spaces and vim/emacs but am curious what people have against port knocking.

[0] http://en.wikipedia.org/wiki/Port_knocking

Re:Norwegian butter crisis (2011) on Wednesday May 20, 2015 @12:14PM (#9577302)
I'm not into computer graphics but the Utah teapot article [0] reminded me why I carry the kettle back into the kitchen by the handle while spinning it around to get a look at it at different angles.

[0] https://en.wikipedia.org/wiki/Utah_teapot

Re:Norwegian butter crisis (2011) on Wednesday May 20, 2015 @12:12PM (#9577284)
I feel there should a warning attached to that link. If you're the type of person who loses several hours on Wikipedia/TvTropes, you should probably not visit that link if you've got something to do in the next couple of hours (or days).
Re:Ask HN: Need assistance from the Hive Mind on Monday May 18, 2015 @10:59AM (#9564810)
Sounded like Asimov to me but then again I don't know many other sci-fi authors.
Re:We have a problem with promises on Monday May 18, 2015 @10:56AM (#9564785)
What's so bad about using deferred? In one case I call the resolve or reject parameters and in the other I call a resolve or reject properties on the deferred object. Not much of a difference to me.

I learned about deferred a few years ago and kinda stuck with it. It's all over my code base and he didn't really justify why I should go about changing it. The only thing I can reason I can think of is using his recommendation follows the ES6 spec which doesn't matter to me that much for now.

Re:Sniffing GSM Traffic with HackRF on Monday May 18, 2015 @02:16AM (#9563039)
I wonder if you can capture USSD traffic with this. USSD is the tech the brings you the little menu or message that pop up on your cell phone's screen usually after dialing a short code like *122#. They're usually used to check your prepaid account's current balance but in Kenya and Somalia, USSD is what powers the mobile banking applications.

If you can capture that traffic, what I would like to know is if its encrypted. If it ain't, someone could do a lot of damage with this thing.

Older »