HNHacker News
TopNewBestAskShowJobs

dimeatree

44 karma · joined October 9, 2020

submissionscomments
dimeatree··on VanJS – A no-JSX framework based on vanilla JavaScript
Yeah I understood that better, thanks.
dimeatree··on VanJS – A no-JSX framework based on vanilla JavaScript
State management seems a bit counter intuitive at a glance.

I found this statement to be confusing; https://vanjs.org/tutorial#state-val-is-immutable While you can update State objects by setting the val property, you should never mutate the underlying object of val itself.

Then beneath is an example of the following;

   const text = van.state("VanJS")
   ...
   input({type: "text", value: text, oninput: e => text.val = e.target.value})

Which looks like a mutation - after reading a bit more around it is clearer that .val has a setter; but at a glance it just isn't obvious what is happening which I feel isn't intuitive.
dimeatree··on VanJS – A no-JSX framework based on vanilla JavaScript
It does a good job to give some analysis on malicious code snippets
dimeatree··on TypeScript and Set Theory
I just wanted to comment on the website, I really love this UI
dimeatree··on Ask HN: Burned Out. What Now?
The burnout game is hard, you absolutely should tell your work about it. If they can't support you, you then need to decide what works best for you. But remember, you can always make money - health is fleeting.
dimeatree··on Android 12 is live in AOSP
Yes, I am in the same boat here. It feels like there is always a new iOS or Android version being released which always manages to break a feature on my app and sheds months off of my life.
dimeatree··on Ask HN: How do I get fit and healthy as a software engineer?
If you want to live a healthier health style, you will naturally gravitate to it. Start off by trying to get your 10k steps in a day. After you have begun to shift your mindset you will start to find yourself naturally wanting to get into it.

I got into powerlifting over 2 years ago and I have not looked back since. I got myself a PT/Strength coach, and to meet my goals I had to expand my knowledge to fill my daily needs, fix my sleep habits and manage my stress.

Don't focus too hard on the exercise / food, you need to change your whole mindset. It's a journey!

dimeatree··on Vacation isn’t the answer to employee burnout
My solution to burn out was to go down to part-time; I have been incredibly fortunate that my work place supported my decision to go down to 4 days a week, with the option to do 3 days for 3-6 months and keep my full pay - I was not expecting this.
dimeatree··on They thought they were going to rehab but ended up in chicken plants (2017)
What a horrific article. This is showing me that I am naive in a lot of ways - how much suffering is our society built on?
dimeatree··on They thought they were going to rehab but ended up in chicken plants (2017)
> I want to know why these folks won't LEAVE shitty redneck states and head to places with more opportunity.

Sometimes you just don't know any better, or you're stuck for what ever other reason. I am 100% certain if it was easier to walk away from situations, anyone really would.

Regardless, congratulations on being sober for 22 years.

dimeatree··on Sweden must repay $1.6M in Bitcoin to convicted drug dealer
This article is way too focused on him being a drug-dealer.
dimeatree··on Ask HN: What if Google hires hackers to spam websites so they install reCAPTCHA?
What if the US Army...
dimeatree··on Don’t we all just want to use SQL on the front end?
I made the mistake of reading the comments before the article, and was stuck with the thought process of "but it's insecure"

Then I remembered my experience of working with an SQL-like based API, that was a pleasant surprise and joy to work with.

I do not see why we can't use it from a client-side perspective, and safely re-cast it server-side.

dimeatree··on The architecture behind a one-person tech startup
Good on them. I wish I could use K8 as effectively as the author, it is an incredibly overwhelming list and an impressive range of knowledge.

In my situation I am finding the lack of consistent environment a reoccuring issue, the developer environment does not match production. However I kept it simple with Google App Engine Standard and Flex environments, I found the deployment process simple and was enough for me (at the time) - however I am finding we are going to step into dockerland; however I feel like it is very over my head!

dimeatree··on Hackers Begin Sharing Internal CD Projekt Red Data Publicly
Well it is good that they seem to have back ups, and even if Witcher or CP2077 do end up being leaked - what is the legitimate threat of damage here? They are titles that are already released.

The real threat that I can see, is if the hackers end up releasing more personal details.

But regarding the source code, this will end up being a boon for the modding community.

dimeatree··on Long-term study reveals harm in regular cannabis use
The issue with this study is that it is pigeon holed on psychological issues, which is not really a great metric to go by as all of our mileage varies and it really is an individual journey - if the study were more focused on the physical health related issues then this discussion would have a different tone.
dimeatree··on Long-term study reveals harm in regular cannabis use
Best way to sum this article: correlation does not imply causation.

It is implying people who are regular users, are masking deeper psychological issues without going further into what the "harmful" effects are, of course if anyone is abusing anything it is because of a deeper problem.

dimeatree··on Fan Death
Plants do release a bit of CO2 during the night due to respiration, they need sunlight for photosynthesis to occur.
dimeatree··on Who Wants to Be a Thousandaire? (2011)
Yes. It's to the point.
dimeatree··on Gmail having issues
It has been fun explaining to customers that G-mail has been having issues.
dimeatree··on Things I wish I knew before I bootstrapped my first SaaS startup
When my start up spawned 8 years ago, our initial price included a $2000 setup and a monthly user-fee. We had managed to find a fair few willing to pay, which funded development and ensured we would survive. Within 6 months we were able to drop the setup fee completely and solely rely on a monthly fee.

At the time I was morally objected to it as I did not feel justified charging that amount of money for a product still in development, but I am glad my business partner had more sense.

dimeatree··on TypeScript 4.1
A good application for ML
dimeatree··on macOS Big Sur Update Bricking Some Older MacBook Pro Models
When developing for iOS sometimes you are forced to update because you can't run the latest simulator for e.g.

A huge pet peeve.

dimeatree··on Show HN: Voquludis – Enrich your vocabulary playfully with this free app
Really cool concept, I was surprised at the fact you have to collect words for the glossary, great way to slowly introduce people to more words.

I am excited to see what new words I can learn.

dimeatree··on Ask HN: Wouldn't it be great to be able to follow fellow HN users?
Having done the whole circuit and now actively avoiding social media all together, I love this level of anonymity and there is no other place than here where you can discuss as equals without needing to be "someone" or worrying about social-merits.
dimeatree··on Ask HN: I have 3 weeks off, what should I build?
For design, I recommend reading solidbook.io - Focuses on Domain-Driven-Design, plus it's a great quick read.
dimeatree··on What ORMs Have Taught Me: Just Learn SQL (2014)
Management is an issue unfortunately, we need a larger developer team, he wants more sales. Yeesh.
dimeatree··on Using const/let instead of var can make JavaScript code run 10× slower in Webkit
This takes me back to VB6 days where placing a dim in the sub would be too costly if that sub was called iteratively and using a global was the only way to optimize it because of the poor stack allocations.

Would love to see what semantics are making let/const abysmal.

dimeatree··on What ORMs Have Taught Me: Just Learn SQL (2014)
Even with documentation, it is a lot to consume - someone on the project for a longer time can get more done definitely, but bringing on more people will lead to wildly different quality control. I find it do be a scaling problem if anything.
dimeatree··on What ORMs Have Taught Me: Just Learn SQL (2014)
My project has no ORM, and now that other developers are coming on it is hard to work with - the readability of an ORM far surpasses writing your own queries and I can see that the benefits far outweigh the cons.

And what's not to say you can't write your own lightweight ORM to abstract the database if you can't find a tool that suits your goals - and as always it all depends on your use case.

Page 1 of 2Next →