HNHacker News
TopNewBestAskShowJobs

JasonCannon

87 karma · joined September 23, 2021

Director of Engineering @ NavigatorCRE Mostly a lurker I dream of being an Indie Game Dev one day. jason@navigatorcre.com
submissionscomments
JasonCannon··on Yet Another Roguelike Tutorial
The author is pretty active on /r/roguelikedev and definitely still works on this and the original library
JasonCannon··on Tailwind CSS v3.0
Not at all. You design and iterate on the button using the individual classes, then you swap them out for a concise class once you are done. It's how tailwind is designed to be used.

https://tailwindcss.com/docs/reusing-styles

Although I realize in looking this up in the documentation to show you, it's actually @apply and not @extend you are supposed to use.

JasonCannon··on Tailwind CSS v3.0
Agreed. My team is doing this very process. If we run into not knowing what class to use, we just look it up on the docs. VSCode also has a great intellisense plugin for tailwind as well (https://marketplace.visualstudio.com/items?itemName=bradlc.v...). For the first day or two we used the docs pretty heavily. Now, we just make a best guess, intellisense generally tells us what the class name actually is, and if we can't figure it out then we go to the docs.
JasonCannon··on Tailwind CSS v3.0
I use tailwind with Angular, and we solve this with using [ngClass] to add/remove the class. You could do something similar with plain JS as well, and I imagine in most frameworks. Although yes, that is annoying to have to deal with.
JasonCannon··on Tailwind CSS v3.0
Even then, I would still recommend using the postcss extend tag. Much easier to read that way. Also, postcss doesn't require any frameworks, you can still do everything with plain ol' html and javascript.
JasonCannon··on Tailwind CSS v3.0
postcss is literally how tailwind works. If you are using tailwind, you already have postcss. I get it, you don't like modern frameworks. Don't use it.
JasonCannon··on Tailwind CSS v3.0
>This works okay in extremely componentized web apps. It's a nightmare if your UI isn't highly componentized. I've seen projects where you make a button by copy pasting this ~80 character string of tailwind classes all over the place, and then changing the color names if you need to. Good luck fixing that when the designer decides that we don't want any buttons to have rounded corners anymore.

That app is done wrong. If you are using the same styles to represent a button you should use postcss and do

.myButtonClass { @extend: (80 tailwind classes here) }

JasonCannon··on Sshell: Serverless Shell
>If you count someone else's server as "serverless"

That's literally what serverless is. Serverless doesn't mean there are no servers. It is simply the ability to run your code without having to think about the server it is running on. More server agnostic than serverless.

JasonCannon··on Pfizer and Biontech provide update on Omicron variant
>I assume "Taiwan region" is simply something to satisfy the PRC gov't (CCP) which believes Taiwan is a part of its country and governed by PRC.

To be fair, Taiwan (Officially the Republic of China) also claims that it is a part of China and is in fact the rightful rulers of China. The Kuomintang withdrew to Taiwan after losing control of mainland China to Mao and the Communists. I'm not super up to date on the latest claims between China and Taiwan, but Taiwan has never recognized officially that they do not rightfully control China.

JasonCannon··on Ask HN: Skill you want to learn in 2022?
Going to be brushing up on c++ and game development. 2022 is going to finally be the year in which I seriously make a game.
JasonCannon··on Overdue library book returned more than 110 years later
Now you need to determine if you like the video for what it is, instead of relying on the masses to tell you if you dislike the video.

Or, you know, just read the comments.

JasonCannon··on Ask HN: How can leave my comfortable old job for a new one?
Every hiring manager is different. Some have some bullshit "requires 3 years in this stack" kind of requirements. Personally I feel like the important thing is knowing how to program period. I think knowing paradigms is what's more important than stacks. Id take someone who knows how to build a oop backend with a spa front end for my position I'm hiring for even if they don't have specifically .net/angular experience. You can always ramp up on the specifics while learning paradigms can be much harder.
JasonCannon··on “It's not peaches and cream either for men”
>No true Scotsman there.

No, it isn't. You are just imagining that woman and feminist are synonyms. They are not.

JasonCannon··on “It's not peaches and cream either for men”
>Feminism goes out of their way to cancel male spaces while building up female spaces. Video games made by men for men? Bad, needs to include women!

Oh yes, I totally remember the Feminist Jihad of 2016 when women rose up and destroyed Video Games forever!

Do you think that having diversity in video games, both in the creation and consumption of it is somehow destroying video games? If so that is your own sexism talking.

>as if they let men make their own spaces...

Men are free to make their own spaces. They do it all the time actually.

>Feminism also started shaming men who complain about women. Women are still allowed to complain freely about men. Don't they understand how damaging this is for men's mental health that they aren't allowed to let out steam while women are free to do so?

I can still complain about women. So can you. Feminists haven't stopped that. Unless by complain and let out steam about women you mean being misogynistic, then yeah that's your own sexism talking.

>If I bring up male issues as I did here, feminists will come and say things like "Are you so weak that you need to complain and let out steam just to manage your day? Grow up!", or "Why do you need your own space, can't you handle women around you? Don't be a child, just learn how to socialize and all your issues are solved!".

Emphasis on "how you did here" because what you are doing is creating straw men and being sexist. However men are free to talk about male issues. https://old.reddit.com/r/MensLib

Also, feminists aren't saying the shit you claim they are saying about men there. Not all women are feminists. Especially since you are claiming that

>But instead they just say that men have to be stoic or they aren't welcome in feminist society. And I bet this post will get such toxic masculinity responses from feminists who argue that men just have to be more stoic and everything will be fine.

Because feminists do not want men to be Stoics. They literally want men to talk about their issues, their emotions, and their wants and desires. The opposite of stoicism.

>But feminists says men should cry more!", they say that, but they don't mean it. If a man cries such that it inconveniences a woman, guess what? It is the man who is bad. The woman complaining about the main crying is obviously correct, the man should have been stronger, but now he is so weak that it burdens the woman and that is bad. "But you can't expect a person to handle too much emotional labor!", well, the thing is, I've never seen a situation where a woman complained about a man crying and feminists didn't took her side.

Again, I question if you've ever actually talked to a feminist before. I cry in front of my wife all the time. Feminists do not want men to be strong to the point of not wanting them to have emotions. That's not what feminism is about, at all. That's a prime example of internalized patriarchy on the part of the woman. You seem to think that feminist === woman. That is not at all the case.

JasonCannon··on “It's not peaches and cream either for men”
What bigotry? What oppression are cis men facing? I can definitely share tons of examples of the oppression that cis men have carried out.
JasonCannon··on “It's not peaches and cream either for men”
What do you think feminism has taken away from men?
JasonCannon··on “It's not peaches and cream either for men”
If he is terrified because of custody, I suggest you/him read this

https://www.reddit.com/r/MensLib/comments/67xa50/why_does_cu...

JasonCannon··on Ask HN: What's your startup's BI tool/setup?
My startup is a bit different, because we actually have a BI team that offers custom BI dashboards for our clients. We use PowerBI Premium to embed our BI dashboards into our web application.
JasonCannon··on Web4 Should Run on LaTeX
And yet HTML+CSS+JS which is so hated for making applications handles the use case of working across mobile and desktop almost perfectly. Maybe it's not just because we don't want to learn real programming like the grandparent post insinuated and instead a perfectly viable solution to the problem at hand.
JasonCannon··on Kropotkin's 'The Conquest of Bread'
Right. I used to love reading Lenin. Until I realized that the first thing Lenin did upon assuming power was destroying the power of the Soviets and assuming full control of the entire state, thus removing almost all of the democratic elements from the revolution.
JasonCannon··on Kropotkin's 'The Conquest of Bread'
Love the amount of Anarchist thought being posted on HN lately. First people discussing Graeber recently due to the release of his new book, and now the Bread Book.
JasonCannon··on Django, HTMX and Alpine.js: Modern websites, JavaScript optional
1.) Don't be a jackass.

2.) I know what reactive programming is, I make extensive use of RxJS at work. And I obviously know what an event listener is. I was asking why is it wrong to have the button have functionality and only emit events. And I did google that, but nothing from your comment you posted that I googled lead to anything about reactive programming.

JasonCannon··on Django, HTMX and Alpine.js: Modern websites, JavaScript optional
Doing a ground up rewrite of our app at work. I made the call that the application needed to be semantically correct (well, mostly correct. We avoid div everywhere), have proper tab order, and be screen reader accessible. It takes more time but honestly it's not that difficult to do. Most people just.... Don't do it.
JasonCannon··on Django, HTMX and Alpine.js: Modern websites, JavaScript optional
Why? Have any reading on this?
JasonCannon··on Ask HN: What are your 2022 predictions?
Sure but the GOP are pushing extremely hard to ensure that it's even more not fair and not free.
JasonCannon··on The Unfulfilled Promise of Serverless
Stay on the version that already works and provides the features you need? Fork it to add new features if needed? You don't need to constantly update software dependencies.
JasonCannon··on Ask HN: What are your 2022 predictions?
>- Supply chain issues will get worse throughout 2022, massively fueled by US-China tensions and COVID related shifts in demand. Major inflation like we haven't seen since the 1970s.

Due to this, GOP is probably going to retake the house largely because people won't realize that the inflation has little to do with Democrats policies but is entirely because of COVID fucking everything.

JasonCannon··on Adults who microdose psychedelics report lower levels of depression and anxiety [pdf]
>two separate doses of 25 mg of psilocybin 3 weeks apart plus 6 weeks of daily placebo (psilocybin group) or two separate doses of 1 mg of psilocybin 3 weeks apart

I don't know how this compares to similar studies (if there are any similar studies) but microdosing is almost never done 3 weeks apart. That's usually the time frame done for macro dosing (but with multiple grams not mg).

Even the study at the top mentions that

>Reported microdoses identifed in observational research typically range from 5 to 20 μg of LSD and from 0.1 to 0.3 g of dried psilocybin mushrooms. Microdoses are most commonly used several times a week with various patterns of alternating days.

JasonCannon··on SerenityOS demo at Handmade Seattle 2021 [video]
I especially like how he did this all after getting out of rehab trying to spend his time on something productive. Mad respect.
JasonCannon··on Ask HN: I can program, but have nothing to show for it. Where do I go from here?
I would not recommend taking programming tutorials from someone who is unable to get a job programming. No offense to OP, but there is a certain amount of real world experience you'd want from a teacher. I say this from experience, as a bootcamp graduate that ended up teaching at the bootcamp after graduating. I did my best I could, and I worked super hard at helping my students, many of whom did get a job after, but there was a ton I was bumbling my way through and hand waving involved that wouldn't be if I had 1-2 years of actual industry experience first.
Page 1 of 5Next →