Better HN
topnewbestaskshowjobs
Log inSign up

CSSer

2,366 karma · joined Mar 15, 2019 (7y ago) · 973 submissions

Sometimes fascinated by pieces of cheese
Submissions

comment 7y ago · link · parent

They do? The web is the future!

comment 7y ago · link · parent

I think your examples hinted at an important part of network-driven applications: loading. Loading statuses, done correctly, and with the right attention to detail, can result in users waiting more patiently than many would ever believe. Sometimes that’s as small as conveying “something is happening” and other times it requires conveying details that communicate why the user must wait so that they can simply think, “that seems reasonable. I understand why that could take some time”.

comment 7y ago · link · parent

I agree. I want to know the answer to the same question. Pseudo-intellectual sophism seems to be abundant here.

comment 7y ago · link · parent

What prevents me from masquerading as an individual when I’m really a company?

See: https://twitter.com/jhooks/status/1167480182157889536?s=20

comment 7y ago · link · parent

You know, it’s funny, this exact ad is the first thing that came to mind when I read the headline. It’s a very popular package. I wonder if it was part of the decision.

comment 7y ago · link · parent

Hhm, after researching a bit, it appears I was taught incorrectly. Thank you for pointing that out. Nevertheless, isn't that a very subtle distinction? If I define my sense of duty from God's will, isn't the contrast against utilitarianism more or less the same?

From wikipedia (https://en.wikipedia.org/wiki/Deontological_ethics)

> One thing that clearly distinguishes Kantian deontologism from divine command deontology is that Kantianism maintains that man, as a rational being, makes the moral law universal, whereas divine command maintains that God makes the moral law universal.

I was taught that Kant was a devout Christian, but it appears that this is the subject of some debate...

Again from Wikipedia (https://en.wikipedia.org/wiki/Immanuel_Kant):

> The nature of Kant's religious ideas continues to be the subject of philosophical dispute, with viewpoints ranging from the impression that he was an initial advocate of atheism who at some point developed an ontological argument for God, to more critical treatments epitomized by Nietzsche, who claimed that Kant had "theologian blood"

comment 7y ago · link · parent

For those who have studied Philosophical Ethics in High School or Undergrad, you'll probably be familiar with the term "deontological" (lit. 'derived from god') but are perhaps not used to the term "consequentialist" or "consequentialism". Per the study, "consequentialism" is Utilitarianism, which may be more familiar to you.

> "...said to be making a “consequentialist” (or “utilitarian”) judgment in line with consequentialist ethical theories (Bentham, 1789/1983; Mill, 1863)."

comment 7y ago · link · parent

These are small brochure/marketing sites with complex configuration on each page and a handful of collections i.e. a blog or some services pages. Ironically, the blog posts are the easy part. After all, there are usually only a couple fields required for a blog post. Obvious examples would be an author field, a posting date, a title and the body. Out of the box Netlify CMS works very well with Gatsby for this. In the CMS config you just need to set up a "folder collection", which just means you define some fields and each time you make a new one or update it in the admin, a new markdown file is created or updated, respectively. Using just a couple plugins and a graphQL query, you can source them into your blog template and reference them as properties on an object. As for the body of the post, that's actually saved as the body of the markdown document itself. This is easily picked up and transformed to html that you can also request be added to your data object. You can then just use dangerouslySetInnerHTML to stick the html string right into your template (don't worry, remark.js is used by gatsby-transformer-remark[1] to sanitize it). Along the way, you'll have to deal with a couple of nested values like data.markdownRemark.title. Bam! You've got a working, re-useable blog post template. In the CMS admin, you can log in, click the blog collection on the left, then pound the "new blog" button and save them all day. The only other caveat I forgot to mention is that you have to do a bit of work in gatsby-node.js to programmatically create pages, but that only requires an hour tops with the docs and an example to reference to get it working really well.

Now, here's where the fun starts. Nowadays, most clients would like a level of configuration that goes a little bit further than a plain text box, right? That's really where things start to get sticky. Since you mentioned it, I'll use an FAQ as an example. With Netlify CMS + Gatsby, the best way to do this is probably to create a folder collection like I mentioned before with blog posts. That way, we can query all of them together and use them in any component we like. Here's where we hit a bit of a catch-22. What if I want to configure a heading and overview text for my FAQ? I can't add meta fields to collections themselves, so I have to put them somewhere else, presumably in a specific file in a file collection. This is a confusing experience for a non-tech savvy user, not to mention that it makes writing previews in the CMS more difficult. Now, some people might disagree with this approach altogether and opt to use a combination of list[2] and object[3] widgets in one file collection. That way, they can have their FAQ list right next to their FAQ "heading" and "subheading" fields. But if you do that, querying this information now becomes painful. You'll probably have to query by absolute file path to get the markdown node itself, then you'll have to de-structure content from one extra level deep in your data object, then once you've finally got your array, you'll have to map over it, then set the markdown body into the corresponding FAQ section. "Whatever, that's not that bad", you may be thinking, but here's the problem with that: nested markdown fields in frontmatter aren't transformed into HTML by gatsby-transformer-remark. You now have to manually go through and transform markdown to html yourself on a case-by-case basis in gatsby-node.js every time you want to use long-form text that requires formatting.

There are many other, smaller issues, but I think this is the most glaring. Granted, there are ways to work around this in Gatsby e.g. fragments or schema customization, but they all require intermediate to advanced knowledge of graphQL and Gatsby. Even as that knowledge becomes more commonplace, it's still just unnecessary extra labor. One could also argue that this is a problem with the netlify-cms source plugin or gatsby-transformer-remark, but I would suggest that regardless of how things are sourced, the presentation of content in the CMS itself is what's really broken here.

I hope this helps!

[0] https://remark.js.org [1] https://www.gatsbyjs.org/packages/gatsby-transformer-remark/ [2] https://www.netlifycms.org/docs/widgets/#list [3] https://www.netlifycms.org/docs/widgets/#object

comment 7y ago · link · parent

As someone who really enjoys Netlify, I suspect that the CMS project is just under-staffed. I’ve been building out a fairly complex Gatsby project with it recently. While doing so, I spent a lot of time reviewing issues and finding workarounds for various problems on Github. As far as I can tell, there isn’t more than a couple people dedicated to working on it internally, and although a lot of people seem interested in the project, it doesn’t seem like very many of them are prepared to contribute. One need only briefly peruse the issues to find a half dozen (solid) issues with replies from the team lead along the lines of, “This is a good point. Willing to accept PRs” This is troubling, and it makes me wonder if Netlify’s choice to open source this was their way of acknowledging the need for the project without demonstrating an actual willingness to dedicate the resources writing a decent CMS actually requires. So they thought, “maybe if we throw it out there, people will help”

Politics aside, the largest problems I’ve had it with it revolve around the tension of organizing things in the CMS for the user vs configuring things for easy digestion in the SSG. If you set up the CMS how your, for example, non-tech savvy friend might expect it to look and then go build the front-end, you are almost certainty going to have a very bad time. This is because Netlify CMS’ widgets nest everything in deeply complex frontmatter by default, which makes sourcing and transforming it feel like a cumbersome chore. In my discussions with other people about it, more than one person has said, “So it sounds like the biggest benefit is just that it’s free. Thanks, but I’ll pass. My company pays for the base tier of X”

EDIT: I’d just like to point out that I think I would/will use it again. The next time around, I’ll probably use almost exclusively folder collections. This breaks out the markdown into oddly organized bits in the CMS, but it makes it much easier to consume and combine in the build step.

comment 7y ago · link · parent

"teamwork" and "can work remotely" are flipped in the similarity graph of the job explorer: https://whatforwork.com/job-explorer/ That is, "teamwork" returns results for "can work remotely" and vice-versa.

comment 7y ago · link · parent

But what if we count in hexadecimal?

comment 7y ago · link · parent

body { max-width: 50em; margin: 1em auto; }

to make this more readable on a desktop...

1
2930313233