HNHacker News
TopNewBestAskShowJobs

dammitfoo

107 karma · joined August 17, 2018

Hello HN! Long-time lurker. Finally here!
submissionscomments
dammitfoo··on Bye, Chrome: Why I’m switching to Firefox (2018)
Not much. But the article can be shared with your non-technical friends and family members though. I guess that's why it has a lot of upvotes.
dammitfoo··on Troubles with the AWS web console
> Some examples by contradiction: tax returns, AWS Dashboard, many programming languages.

By programming languages, do you mean Rust?

dammitfoo··on A Message about iOS Security
> Apple has done its best to secure customer privacy... That earns ️<3 from me. Do I think Google would look out for me like that? Hahah, no, I do not think so.

Both Apple and Google are NSA's PRISM partners, Hahah. It's amazing how short some people's memories are.

dammitfoo··on Network Solutions’ scammy bullshit signup funnel
Kinda off topic.. but does anybody here have any experience with the registrar dynadot?

I have a few domains with them since last year and it's been uneventful. But I was just wondering if anybody else had any good/bad stories about them?

dammitfoo··on Aphantasia: 'My mind's eye is blind'
Has anybody with Aphantasia read 'Moonwalking with Einstein' by Joshua Foer or 'The Memory Book' by Harry Lorayne? I recently started working on improving my memory using mnemonic techniques described in these books. And, let me tell you, they ALL rely on visualization. It's just so shocking to me that some people just won't be able to do this!

Has somebody with aphantasia tried any mnemonic techniques to remember things? Do you have problems recalling events long after they occur (like events from your childhood)? Do you ever daydream?

dammitfoo··on Ask HN: What are some of the best text-only websites?
Kinda off-topic but if you use Firefox on your mobile, you can install 'uBlock origin'[0] extension which will block pesky, annoying ads and trackers. Not that helpful with text-only sites but very useful with normal browsing.

[0] https://github.com/gorhill/uBlock

dammitfoo··on Mithril.js – A modern client-side Javascript framework
It seems you're missing the point. React and Mithril both employ virtual DOM, both use components and both allow higher abstractions that provide ways to manage complexities that arise in front-end development. Jquery and HTML don't do that.

I tried both Mithril and React and found Mithril to be simpler than React as it 'gets out of the way'.

I invite you to read this for more detailed comparison :

https://mithril.js.org/framework-comparison.html#react

dammitfoo··on Mithril.js – A modern client-side Javascript framework
I'm saying Mithril is a simpler alternative to React, not React-like. Preact is react-like (same API as react); Mithril isn't.
dammitfoo··on Mithril.js – A modern client-side Javascript framework
True. If you're creating an app that will be used in production then of course you need to use npm, webpack and other tools.

But if you're new to a framework and just want to experiment then being able to create an html file with a couple of script tags and writing code removes many barriers to entry.

React, Vue and many others already offer this, I thought it was worth mentioning that Mithril does this too.

dammitfoo··on Ask HN: What are some of the best text-only websites?
NPR : https://text.npr.org/

Harvard Law Review : https://harvardlawreview.org/

I'm also interested in more lite sites. Btw, your CNN link is not working. Correct link is https://lite.cnn.io

dammitfoo··on Mithril.js – A modern client-side Javascript framework
Ok. For that matter, Mithril is also component-oriented and router is included.

And what I meant by react being a view library is that react by itself only handles the UI part and you need to get additional libraries to handle stuff like routing and talking with the server. This stuff is provided by mithril itself.

dammitfoo··on Mithril.js – A modern client-side Javascript framework
I think what they are trying to say is that try everything yourself and see and don't just blindly believe in benchmarks.

And also mentioned on the same page is this :

In the spirit of demonstrating typical performance characteristics, the benchmarks presented in this comparison page are implemented in an apples-to-apples, naive, idiomatic way (i.e. the way you would normally write 99% of your code) and do not employ tricks or advanced optimizations to make one or other framework look artificially better. You are encouraged to contribute a PR if you feel any DbMonster implementation here could be written more idiomatically.

dammitfoo··on Mithril.js – A modern client-side Javascript framework
Sure. If you still want to be React-like, that is! But React, Preact are still view libraries right? Mithril is a (reasonably) complete framework. It's sufficiently similar to React that if you know React, you can get productive in Mithril very fast. I guess mithril is for people who want a full framework with no fluff that gets out of the way.
dammitfoo··on Mithril.js – A modern client-side Javascript framework
I had a similar experience. It made me understand how front-end javascript frameworks actually work (in general). The no-fluff approach taken by the framework meant that code was clear and descriptive docs helped (reminds me of Django's docs sometimes). I wish there were more tutorials though.
dammitfoo··on Mithril.js – A modern client-side Javascript framework
I'm asking why you prefer hyperapp because Mithril has router and xhr capability built-in, and hyperapp doesn't seem to have those features. But hyperapp is really tiny though. :-)
dammitfoo··on Mithril.js – A modern client-side Javascript framework
May I ask why? What are the benefits of HyperApp over mithril?
dammitfoo··on Mithril.js – A modern client-side Javascript framework
Yes, exactly. Using JSX is also easy for development purposes if you don't like hyperscript syntax. Just add babel.min.js file and use

  <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
  <script type="text/jsx">
  /** @jsx m */
  // your can use jsx here
  </script>
and bingo! You can use JSX. No need to use npm, webpack, etc.