HNHacker News
TopNewBestAskShowJobs

djhartman

25 karma · joined February 18, 2018

submissionscomments
djhartman··on Harvard University is fighting to keep its admissions process under wraps
Is this something you could know for any university? I imagine most private ones anyway would be pretty secretive about how many positions they reserve for so-called "legacy" students.
djhartman··on Show HN: GraphCMS – A GraphQL-based Headless CMS
I'm not sure I understand your questions. I haven't used GraphCMS so I don't know if they let you store HTML, but some CMS do, and yes that makes it harder to reuse your content in a context other than the web. I don't know, but I assume that you could probably make GraphCMS store HTML if you wanted to. The question of "can the CMS store HTML" seems orthogonal to the question of "Is it headless?" or "Does it have a GraphQL or REST API?"
djhartman··on Show HN: GraphCMS – A GraphQL-based Headless CMS
It's describing the CMS, not the API. It's not so familiar to software engineer types, but is pretty well understood in publishing / Drupal / WordPress space.
djhartman··on Show HN: GraphCMS – A GraphQL-based Headless CMS
> Why would I want a "Headless" CMS?

Perhaps your CMS serves multiple front ends: a website, or a mobile app.

> Why would I want a CMS based on GraphQL?

The way I see it, the CMS is not based on GraphQL, it's just a CMS that you can query with GraphQL. I haven't used GraphQL at all, but it seems like it could be useful for working within a system where you need to bring data from many different REST endpoints together. Usually I would have to hand code something like this myself on the backend, but with GraphQL it seems like once you have it all set up, you can get data from multiple APIs, while specifying the schema of your response on the client instead of on the backend.

> What is wrong, with plain old HTML?

Nothing, if you can build what you want to build with "plain HTML" then do it.

djhartman··on All Work and No Play: Why Kids Are More Anxious, Depressed (2011)
It's been open to everyone 13 and up since 2006. I would know, I was a teenager at the time. And I looked it up before commenting. And age restrictions online are, well, easily ignored.
djhartman··on All Work and No Play: Why Kids Are More Anxious, Depressed (2011)
Facebook was opened to the public in 2006. Instagram was only a year old though.
djhartman··on Ask HN: Creating a web UI/UX with React.js
1) A common pattern is having “page” components that render different layouts.

2) Yes, start out by learning to fetch data in componentDidMount and then calling set state with the result. It’s usually a good idea to do this at the top level of your app and pass it down to child components. Don’t look into Redux or MobX or anything like that until you run into problems. Most people do not need a separate library for managing state.

3. react-router is not “official” but it’s pretty damn close, probably the most popular. Look into next.js if you want client and server side routing.

djhartman··on Atom 1.26
Yeah, VSCode’s solution is slightly better than hand editing JSON but Atom’s handling of config is the best.
djhartman··on Amazon warehouse workers 'peed in bottles' fearing punishment for taking breaks
I’m responding to their comment...

> /u/ythn is the worst CEO ever, he gluts himself off of the labors of the socioeconomicly desperate!"

djhartman··on Amazon warehouse workers 'peed in bottles' fearing punishment for taking breaks
This is a ridiculous comparison. How would you be enriching yourself by paying people to pick up trash? Did you get a contract from the government or the owner to pick up the trash? If you did, then yes you should probably take some of that money you made and hire some people to do the work or do it yourself.
djhartman··on Building a Text Editor for a Digital-First Newsroom
Thanks :D! I love Wirecutter, didn't know they were fully remote.
djhartman··on Building a Text Editor for a Digital-First Newsroom
Don't suppose you'd consider remote candidates?
djhartman··on An Update on Our Plans to Restrict Data Access on Facebook
No, you were right, they mentioned the News Feed in this post too.
djhartman··on An Update on Our Plans to Restrict Data Access on Facebook
> App Controls: Finally, starting on Monday, April 9, we’ll show people a link at the top of their News Feed so they can see what apps they use — and the information they have shared with those apps. People will also be able to remove apps that they no longer want. As part of this process we will also tell people if their information may have been improperly shared with Cambridge Analytica.
djhartman··on React v16.3.0: New lifecycles and context API
In your experience, what are the kind of things that people do in `componentWillMount` that they shouldn't be doing? Is it correct to say that `getSnapshotBeforeUpdate` is named to indicate what you were supposed to use `componentWillMount` for?

Thanks to you and brianvaughn for answering so many questions.

djhartman··on Robinhood Opens Cryptocurrency Trading
I agree in principle, it's just that I'm pretty sure BTC is pretty useless for the things someone needs to buy on a day to day basis in Afghanistan.
djhartman··on Robinhood Opens Cryptocurrency Trading
> Ask a woman in Afghanistan where all her money is considered property of men.

Yes, clearly the solution to this problem is BTC, NOT some kind of other reform or liberalization. </s>

djhartman··on How to make a game from scratch using Lua and Löve
I'm trying to get in to game dev as a hobby and Love/Lua is great for someone who wants to make games, but would rather spend time writing code than learning something like Unity. Lua is simple and very easy to pick up, although I think the next time I touch Love and Lua I'll try out the OOP library the author mentions instead of rolling my own classes.

Other things on my list to try are Phaser for the easy cross platform distribution (it's JavaScript) and Godot, because although I enjoy coding little games "from scratch" I feel like I would be much more productive with the tools that Godot or Unity offer.

Here's my little game: https://github.com/dj/dinojump