Better HN
topnewbestaskshowjobs
Log inSign up

simplify

2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions

Submissions

comment 7y ago · link · parent

It sounds like you're describing flutter. But that's not quite a web technology either.

comment 7y ago · link · parent

Not necessarily. Have you ever tried cancelling a cable or internet service over the phone?

comment 7y ago · link · parent

Lack of sleep might not stop you from succeeding, but it can make you think slower, have poorer memory, get sick easier, eat more than you should, look older, and be more prone to depression and anxiety.

Please read "Why We Sleep" by neuroscientist Matthew Walker. Sleep is essential. Don't give it up lightly.

comment 7y ago · link · parent

This is tangential, but I highly disapprove of any encouragement to stay up late. Sleep is incredibly important for the entirety of the body. It's always better to get well-rested over a small amount more work done (which you'll eventually lose anyway since you won't be well-rested).

comment 7y ago · link · parent

Express and Hapi seem simpler than the Serverless framework you're replacing it with. You have to specify that one more thing[0] anyway, don't you? I honestly don't see how this is simpler.

[0] https://github.com/pmuens/serverless-crud/blob/master/server...

comment 7y ago · link · parent

Usable, with a worse user experience, to what end? It would be nice to have more non-js built-in browser behavior, though.

comment 7y ago · link · parent

An hour a day at the gym is no substitute for working on your posture throughout your waking hours. It'll help, sure, but it's not even 10% of your day, even less so of your week.

comment 7y ago · link · parent

Your comment doesn't offer a rebuttal other than "you haven't lived in such a town". I'd be interested in hearing more.

comment 8y ago · link · parent

A deterministic Python dialect is indeed very cool. I've dabbled in writing a deterministic language myself.

Syntax highlighting and formatting is nice, but I think error reporting is more important for the end user.

Zaml auto-validates configuration structure, removing the need to write most boilerplate on the programmer's side.

Can you help me understand Skycfg's type safety and validation? When I see `return [pb.StringValue(value = 123)]`, does this imply the schema is written inline, alongside the values?

comment 8y ago · link · parent

It doesn't have functions, but I've also released a type-checked configuration language recently[0]. The main difference is it's designed to be easy to edit, even by non-technical users.

[0] https://github.com/gilbert/zaml

comment 8y ago · link · parent

Mithril's simplicity is a breath of fresh air compared to React's complexity. Highly recommend.

comment 8y ago · link · parent

I would add the question of, can a civilian buy it and use it on the streets? Just owning one in a garage doesn't really mean anything.

comment 8y ago · link · parent

If you have your list of possible errors, it really shouldn't take that long to write a `errorObj -> string` function.

comment 8y ago · link · parent

You should probably scope and clarify your rule of thumb. For example, writing a function that renders readable error messages to a UI will be far more than 20 lines of code.

comment 8y ago · link · parent

Yes. The core cause of many of our problems is how capitalism is broken. Between removing individual contribution limits [0], unlimited monetary influence from Super PACs [1], and our weakening Antitrust laws (that somehow allowed AT&T and Time Warner to merge!), it's no wonder we're having the economic problems we have today.

But of course no politician talks about these things. Capitalism has not failed us; our politicians have failed us. We need to fix capitalism. Block giant mergers, break apart monopolies, ease the burden on small business, etc. More competition is better for everyone (except big corporations of course).

[0] https://www.nytimes.com/2014/04/03/us/politics/supreme-court...

[1] https://www.opensecrets.org/pacs/superpacs.php

comment 8y ago · link · parent

The latter problem would be solved with approval voting at least https://ncase.me/ballot/

comment 8y ago · link · parent

Hi HN, author here. I was fed up with the current state of configuration files, so I decided to create a better solution. Key features of Zaml are:

- Minimal, straightforward syntax. Easy for non-technical people to edit. - Great error messages. If you write an invalid config, it tells you exactly why. - Free validation. Define a terse schema and Zaml will validate your data structure for you.

One of my favorite features I just got working is dynamic syntax highlighting in the online editor[0]. Configuration keys are highlighted based on your schema! I think that's really cool :)

Anyways, let me know what you think. It's not 1.0 yet, so it's not quite ready for production (but it's close!)

[0] https://gilbert.github.io/zaml/editor.html

438.

Show HN: Zaml – My hand-written YAML alternative with minimal syntax(github.com ↗)

4 points · by simplify · 8y ago · 1 comment

comment 8y ago · link · parent

Seems not? https://github.com/GNOME/vala

comment 8y ago · link · parent

Not that surprising considering it's a free icon https://www.flaticon.com/free-icon/bookshelf_167708

comment 8y ago · link · parent

Keep in mind that unhappily married or divorced people are the ones who are more likely to say something about it. I'm happily married. I don't really mention it, and I'm sure others in a similar situation do the same.

comment 8y ago · link · parent

If web components will be built-in, I imagine it's possible for browsers to provide a way to style them in user-land.

comment 8y ago · link · parent

Yeah seriously, it's like we need a "Fake Show HN:" to surface these apps that are already out there.

comment 8y ago · link · parent

Does making palm oil require destroying the tree? I'm honestly ignorant about this subject.

comment 8y ago · link · parent

On your last point, it's easier to see all props the component depends on when you destructure them upfront like that.

comment 8y ago · link · parent

Also note that not being "a healthy person" may not be your fault. Some people's digestive systems weaken over time, causing them to often feel less full when eating (and thus eat more without realizing it).

comment 8y ago · link · parent

Oh wow. I would love to hear more stories if you have any.

comment 8y ago · link · parent

Paper ballots are objectively more secure. If an electronic voting method becomes widespread, one vulnerability can compromise the entire election.

Compare that to paper ballots. How many humans do you need to compromise all paper ballot counts?

comment 8y ago · link · parent

And here's an excellent interactive resource to better understand pros/cons of different vote systems: https://ncase.me/ballot/

comment 8y ago · link · parent

With Tailwind you use @apply to achieve this goal: https://tailwindcss.com/docs/extracting-components
1
141516
31