HNHacker News
TopNewBestAskShowJobs

jamescostian

1,129 karma · joined May 11, 2014

submissionscomments
jamescostian··on Self-improvement is embracing your messy, imperfect life
> Being able to change wants and desires at will however seems almost unattainable.

Operant conditioning makes this very attainable. Depending on how long you've had these exact wants and desires, how much you've thought of them, and what exact conditioning program you design, you may even get results in a matter of hours (unlikely though without spending a ton of time on it, it usually takes me at least a week). Keep up (and space out) conditioning and you eventually won't need it.

Initially you probably won't go from "I always would/wouldn't want to do this" to "I always wouldn't/would want to do this" - typically, you'll have super short periods where you have your old want/desire, and then you rapidly switch to your new want/desire. But it doesn't feel disingenuous or anything - it's a natural switch due to the conditioning. Over time the period with your old feelings shrinks. Combine that time with varying conditioning (maybe a different-feeling conditioning program, or even something random that happens in your life and conditions you), and you may be able to entirely eliminate those short periods.

Here's an intro: https://www.verywellmind.com/operant-conditioning-a2-2794863

jamescostian··on That's My Ape - A blockchain-free chain of custody tool
From the FAQ:

> Q. Can I see the source code and run it locally?

> Yes. The source code for That's My Ape! is available here and is licensed for local, personal use.

The word "here" in that quote is a link to the source code: https://github.com/cryptogogue/thatsmyape

Theoretically, "anyone" can run thatsmyape locally, and assuming they've ran `npm install`, they don't even need internet access to do so. Not sure how realistic this is in reality - there aren't even any instructions to get set up, but if there were, then an even larger set of "anyone" could run it.

That said, this is of course a joke. Also from their FAQ:

> Q. Is any of this for real?

> No. Good lord. If you want to protect your digital rights, hire a lawyer. If it wasn't immediately clear that this is a work of satire, we've got some NFTs to sell you.

jamescostian··on Kubernetes ingress-nginx controller vulnerability
I know nearly nothing about ARMO, and I have nothing against you, the company you founded and are CTO of (ARMO), or ARMO providing an open source tool. I appreciate that you have made this work open source.

Still, some of us on hackernews dislike advertising. I 100% agree with everything you've written in this comment, but as I mentioned in the comment you're replying to, the GitHub issue also contains an ad for the same tool - it just doesn't make it front and center, allows for any competitors to make their own comments on an open platform, and it feels less biased. Less advertisey.

Instead of "install our product", it could have been something like "run this thing specific to this exact vulnerability that does the absolute bare minimum. Oh, btw, if you liked that, you should check out our product that does much more, kubescape"

But as it stands now, it just feels different

jamescostian··on Kubernetes ingress-nginx controller vulnerability
I agree 100% with that comment :) Including the first part:

> 'bash -c $(curl )' doesn't mitigate a website's ability to detect whether you're downloading a file via curl versus accessing it in a browser

You're totally right, I forgot about this one! It's wild how many tricks there are in the security world

jamescostian··on Kubernetes ingress-nginx controller vulnerability
> The only legitimate risk I've heard about 'curl | bash' is that web servers can detect whether the site is being accessed by a browser versus curl, and serve different content

This is the reason why you shouldn't do curl ... | bash, you should do bash -c "$(curl ...)"

The former is truly vulnerable, for the exact reason you mention, while the latter isn't.

> With curl | bash, the URL of the bash script is right there. I can copy it, plug it into my browser, and inspect with ease the shell script that will run

Not exactly, see http://thejh.net/misc/website-terminal-copy-paste

More savvy users might have set their shell up in a way that mitigates this risk, and some users will, as you mentioned, copy and paste URL, but go ahead and try that with the command in the link I provided - note that if you copy just the git URL, it only copies that bit, and then you can paste it into your browser, and not realize that there's a malicious bit before it

Of course, copying and pasting a command involving apt/dnf/etc is also vulnerable to that same attack :)

jamescostian··on Kubernetes ingress-nginx controller vulnerability
Agreed, I'd prefer a GitHub issue over an advertisement. The HN user who posted this works for the company that wrote this post, and that person's title is "VP Marketing & Business Development".

The issue contains a comment where they're also advertising their service, so I think that using the GitHub issue would be better, and would be a good compromise for them since they'll still have their ad.

jamescostian··on Cloudflare Distributed Web Gateways: Unlocking the Web3 Metaverse
Correct me if I'm wrong but isn't it totally different from a large organization seeding a torrent, because everyone downloading data from them is also likely seeding the torrent too while downloading it, while anyone using the gateway is not also storing any info on their machines?

Won't this gateway make it less likely to have some sort of p2p app take off, because why help out peers at your expense when you can get what you want from Cloudflare at no expense? Or maybe I'm looking at IPFS wrong - I interpret it as something meant to become popular (meaning much more non-programmers would use it than programmers), but I suppose if it remains a small community like torrenting, then it could remain effectively decentralized despite Cloudflare's gateway, because of how many users are being peers instead of solely leaching

jamescostian··on Cloudflare Distributed Web Gateways: Unlocking the Web3 Metaverse
git has a narrow target market, which is developers. There's a high percentage of cloning, so if GitHub goes away all the data remains on people's machines.

Things that are supposed to be able to become mainstream have to expect different users. They need to expect a ridiculously high amount of e.g. Cloudflare usage. Most people aren't developers. And things like Cloudflare's gateway make it harder to sell "use this app that uses your phone's storage space to store things you like", because those cost storage space while Cloudflare is free. Sure, the systems can still be decentralized de jur, but de facto they are centralized. Git remains decentralized de facto due to the high percentage of git users who clone things.

GitHub's codespaces definitely are super centralized, and if they became mainstream, then I'd argue that git is centralized de facto.

jamescostian··on Cloudflare Distributed Web Gateways: Unlocking the Web3 Metaverse
> Cloudflare has an advantage that no other company in this space — and very few in the industry — have: a global network. For instance, content fetched through our IPFS Gateway can be cached near users, allowing download latency in the milliseconds. Compare this with up to seconds per asset using native IPFS. This speed enables services based on IPFS to go hybrid. Content can be served over the source decentralised protocols while browsers and tools are maturing to access them, and served to regular web users through a gateway like Cloudflare. We do provide a convenient, fast and secure option to browse this distributed content.

It's wild to see people who love the word "decentralized" also love it when an organization tries to centralize a something that's decentralized. It's really hard in these times to know if someone is trying to pump and dump for sure, or if they're being genuine.

jamescostian··on Rome will be written in Rust
That doesn't support type checking, see https://github.com/swc-project/swc/issues/571

You'd still need to run `tsc` to check types even if you used swc

jamescostian··on Rome will be written in Rust
I wonder if they will write a TypeScript type checker in rust? TypeScript currently only has one serious implementation that actually checks types (esbuild, for example, does no type checking). Getting another one that's written in rust would be tremendously helpful for type checking times!

But, on the other hand, if they don't write a type checker in rust, we may still need `tsc`. Since Rome won't be written in JS/TS, I worry that calling The official TypeScript compiler from rust may be prohibitively expensive, necessitating users to run a separate `tsc` process. That goes against Rome's goal of having a single AST generated once by a single tool

jamescostian··on “I wish I could have licensed the Id source code releases as BSD”
>> I don’t lose sleep over Boeing patching a random library I wrote and not sharing the patch

> What you call "permissive" then is only permissive in the short term, because it precisely introduces this segmentation between users and developers in the long term. If you look at this as a tree structure, it's permissive only to your immediate children, because you are granting them the right to take away this precise freedom from your grandchildren, thus introducing the separation between users and developers.

It sounds like vsw02 understands your argument, and has already showed that they don't consider the scenario you describe to bothersome. One might say vsw02 predicted your argument, but I'd say you didn't fully consider vsw02's argument.

Your example sounds like the paradox of tolerance, but there is a critical difference: consequences. If you are tolerant of intolerance, then the repercussion is that intolerance continues, and even increases, which can also increase physical violence, and various human rights violations. If you give code freely to those who will not provide the modifications to that code freely, there won't be an increase in violence, or what most people would consider human rights violations.

Could we have a bit more FOSS code if all OSS was libre? Maybe. Carmack disagrees though in TFA, stating "I'm pretty sure there would have been more total users of the code, likely making the amount shared in the open still greater." Explaining libre isn't helping, you need to provide an argument that vsw02 hasn't already shown to be irrelevant to them, and ideally, one that also addresses Carmack's argument (saying "that's just speculation" is true, but it seems Carmack's speculation is speculation that a lot of us subjectively already agree with)

jamescostian··on Google fined €100M by Italian antitrust over Google Play abuse of dominance
No. Truly, the 2 sentences I provided were made of all the real meaning I could find in your paragraph that was relevant to oblio's messages you were replying to, even after re-reading your message several times.

Judging by the upvotes I have received, other readers also agree that my summary was a good summary of your comment. I'd encourage you to practice making that paragraph you wrote smaller, with a goal of reaching a length similar to my rewrite's length. It's something I've been doing more often to make my own messages more concise, and it has definitely helped.

jamescostian··on Google fined €100M by Italian antitrust over Google Play abuse of dominance
I'd like to help you see how to write more concise messages. Here's how I'd rewrite your entire message:

"This is a very complex subject matter, and I don't know how to express my thoughts on it concisely. I don't want to get downvoted for my long-windedness."

It's less than a 1/5 of characters, but conveys just as much of the on-topic and non-meta parts of your response.

jamescostian··on The Import on Interaction Pattern
But if you want a good user experience, you should really use `scrollTo({ top: 0, left: 0, behavior: 'smooth' })`

Smooth scrolling in 42B (minified, not gzipped) rather than 7KB, and supported by 85% of users' browsers (source for that number: https://caniuse.com/mdn-api_scrolltooptions)

jamescostian··on Sourcehut's Second Year in Alpha
>> You can argue that GitHub and GitLab have UI that degrades a developer's experience. [...] And all of those arguments may be right. But right now, I'd argue that this design hurts mass adoption

> You seem to be stuck with confirmation bias: Just because the way things are doesn't mean they're optimal

I'm afraid you haven't understood my words. I'm not talking about optimal, in fact, optimal is explicitly made a non-goal in my comment. You can tell me about VHS vs Betamax, and all I can say is I had never even heard of Betamax until I saw people talking about it on HN. You can tell me Plan 9 is better than Linux, or that (insert obscure brand here) is better than Heinz. Mass-adopted solution != optimal solution. Mass-adoption doesn't even require products to attain local optima, let alone global optima. I use an obscure toothpaste that comes in tablets in glass bottles - totally obscure, likely will never reach mass-adoption, but it is better.

I was not aware that mass-adoption was not a goal of SourceHut, and I mistakenly assumed it was. Without mass-adoption as a goal, I can totally see how this mentality you expressed makes perfect sense, and I personally agree with it for less-well-adopted things that I use too: "If it does survive, then we all progress. If it doesn't, it was a great experiment"

jamescostian··on Sourcehut's Second Year in Alpha
I'm a web developer, and I actually agree completely about their scrolling and page loads. Absolutely awful on both counts! That said, Apple already has mass adoption, and dealing with those UI inconveniences is considered acceptable in exchange for the OSes they provide (by their users - just look at how so many of them vote with their wallets). If Apple.com were a popular website, I'd say they'd be in trouble, but their real money comes from their (non-web-frontend) software.

That said, you can have a "modern" UI (although not UX) from SourceHut with only CSS changes. You can write all the CSS needed for a modern UI without doing it wrong like Apple did, and (if you know what you're doing) without adding megabytes of bloat. Add caching to the mix, and SourceHut would be just as fast but look more modern.

jamescostian··on Sourcehut's Second Year in Alpha
No. Especially on a non-mobile screen. I used to have better-than 20/20 vision, I would guess that I now have around 20/20 vision. I find the text to be too small on the home page and scrunched up. I'm on a 4k monitor, and the front page stops at "30" and wants me to click "More" instead of loading in more posts automatically (and loading in even more as I scroll). I find this inconvenient and wasteful - I'd much rather each post take up more height, and I'd strongly prefer a "infinite" scrolling system. Even if I was on a 1080p monitor, I'd rather have each post on the front page take up double the amount of vertical space it does now than have it's current UI. The loss of information density would be (to me) well worth it.

I've switched from a mac and iPhone to Linux and Android, and as you can tell, I'm still on HN. Clearly, design isn't absolutely everything to me. But the notion that aesthetics "get in the way for the most part" is one I and most other developers I know in real life disagree with. I'd argue that HN's aesthetics get in the way. I personally have used browser extensions to change the HN CSS, due to how much I dislike the UI.

jamescostian··on Sourcehut's Second Year in Alpha
I did not downvote you. I think it's wonderful that people love the UI of SourceHut. You've put a lot of effort in and made a product that many people love, and that is fantastic and a hell of a lot more than I can say for myself. Seriously, congrats on all you've accomplished, and thank you for all you've done for the open source community, it's quite a lot and very deserving of appreciation

But my point is about mass-adoption. What I personally think of the UI isn't very important - as you say, "Design is in the eye of the beholder". But I would argue that if GitHub were to release a redesign identical to SourceHut in 2020, we'd see the largest exodus of GitHub users (for personal projects at least) ever - far, far, FAR more than any other time GitHub has changed their UI.

You can argue that GitHub and GitLab have UI that degrades a developer's experience. You can argue that their designs are FADs, and even that eventually they might change their design to be more similar to your's. And all of those arguments may be right. But right now, I'd argue that this design hurts mass adoption, and even though what design language is "in style" is completely a FAD, following the FAD does help adoption, and entire companies (e.g. fast-fashion like H&M) make tons of profit on FADs (even when they do horrible things - like how fast fashion is bad for the environment, some of GitHub's actions are bad for open source, the Apple example, etc).

I think your numbers are great evidence that you will get users with your current design, and I think that were you to release a GitHub clone (design-wise), you'd lose most of your users and would still struggle to gain non-GitHub users. I don't think there's a way to satisfy both camps of users, but perhaps a "colorful" and "minimal" theme may help? This is not as important as other things you are doing such as the things mentioned in https://news.ycombinator.com/item?id=25103662 but I do think it would help with mass-adoption (which may even be a non-goal, or may be far less important than other goals - that's totally fine too, I'm not trying to judge you or say you're completely wrong, just pointing out something which I feel is missed in these design discussions on HN).

jamescostian··on Sourcehut's Second Year in Alpha
I, on the other hand, dislike this design. Consider how many devs use Apple products - proprietary products that come in a walled garden, and that in many ways go against developers. A good amount of it comes down to aesthetics. Were Sourcehut to have, say, a "2020 theme" or something, that would help lots of those devs appreciate it more.

Developers are using macOS despite it continually removing features from developers, and are even in some cases defending Apple's decisions. I believe that this design actively harms the adoption of Sourcehut. There are definitely other things Sourcehut should do if they want more of GitHub's and GitLab's marketshare, changing their UI (or adding an alternative UI) is an important part of that process.

jamescostian··on iMessage for Windows: A labor of love that will never see light of day (2018)
Most of this happened while I was in high school, and now I am currently 22 years old.

Exactly zero of the people who have said any of these things are in the tech industry

jamescostian··on iMessage for Windows: A labor of love that will never see light of day (2018)
If you're looking to be even more disappointed, check this out: https://news.ycombinator.com/item?id=23406844
jamescostian··on iMessage for Windows: A labor of love that will never see light of day (2018)
I'm 22 and live in a mid-sized city, and I've seen people trying to get into a relationship (or even something more casual, but not a platonic friendship) get rejected because of the dreaded "green bubbles" - and really, I'm not exaggerating. And not from rich people who have the latest iPhone either.

In addition, I have been in friend groups that would exclude Android users because if you have even 1 Android user in a group chat on iMessage, you lose tons of features, like the ability to name the group chat (I'm being completely serious here; this was considered an important thing). The work around was "we'll take you out of this chat, and if something important happens someone will send you a text" - of course, it's not very easy to always remember to send that person an SMS, so they end up _very_ left out of things. This has also happened with middle-class people.

jamescostian··on De-Escalation Keeps Protesters and Police Safer
> I would prefer to look at it by police encounter or by crime or something like that

How would that fix anything? Look at the numbers of white vs black people who were picked for stop-and-frisks (read: number of white vs black people who were suspected of crime) as well as the innocence ratings: https://www.nyclu.org/en/stop-and-frisk-data

To see how innocent minorities are, look at this article about stop-and-frisks: https://www.nyclu.org/en/press-releases/nyclu-releases-repor...

If 5% of a population ("Young black and Latino males between the ages of 14 and 24") accounts for 38% of the stop-and-frisk and is innocent 80% of the time, doesn't that sound like targetting? If you look harder for crime from certain demographics, you'll find more crime from them. Replace the targetted demographic with another demographic and you'll find way more crime in that other demographic. But get this - once you target people and get stats on them, you now have "statistics" and "facts" that show you were right and should continue to target them - even though your statistics are garbage collected on unrepresentative samples! This is why per-capita is the best metric to use - any other metric is tainted.

> total number of killings for white on white or black on black is roughly the same despite the 15% number you quoted.

What does this have to do with anything? Just because there are a lot of "black on black" murders doesn't justify the amount of black people killed by cops. Honestly, I don't even care if the officers are white, black, or any other race or ethnicity. It's the victims who matter. Just because an innocent black person is killed by a black police officer, does not mean it had nothing to do with the victim's race, nor does it mean we can ignore how disproportionately policing is applied.

jamescostian··on LogMeIn Acquired by Private Equity
If there weren't pieces of software that people were willing to pay a subscription for, then software quality would be horrible. The reason why 1Password is so good is that the developers are paid to work on it, and some business needs (such as having really good quality stuff so you can get recommended to more potential customers, and so that your existing customers don't leave) push you towards higher quality software. When working on OSS for free, the need to survive pushes you to work at a job, and your OSS work is done in your spare time, often to get things you want done, but not to make an amazingly polished and very user-friendly work.

Subscriptions allow developers to keep improving their software. If you just pay for software once and keep using an older version, developers miss out on money that could keep them working and improving things. OSS is great, but money is important for developers to deliver quality and updates.

jamescostian··on What Happens if SAT Scores Consider Adversity?
By doing nothing you're allowing opportunities to be taken away from many kids against their will (bc their parents lack the money). That's cheating
jamescostian··on What Happens if SAT Scores Consider Adversity?
You're right about the flaw in tying capitalism to individual benefit, however, don't those parents also appreciate the love a not-so-fortunate parent has for their own child? If they want such great opportunities for their child, why wouldn't they want the same for other children? Capitalists who are so selfless for their own offspring should also feel the same about others, right?

I guess it's just hard for me to imagine someone who loves their child so much but doesn't care enough about how much someone less fortunate would care about their child. Perhaps it's because I'm not a parent

jamescostian··on What Happens if SAT Scores Consider Adversity?
Good point! I take it back, you (and the person I was replying to) are right about the usage of the term.
jamescostian··on What Happens if SAT Scores Consider Adversity?
Is that really worse than what we already have, where most people are denied the ability to reach as high as they could because of who they were born to? You can appreciate that many parents who are able to want to provide generously to their kids, so imagine a parent feeling the same but not being able to be generous. Passing on money you don't have is pretty hard, but passing on the way people looked down on you for your financial status is unfortunately easy to pass on, as are your wishes that you went to (or even had the money to) go to college, among other things. You know your child deserves so much and could do so much, if only they had the resources to achieve all they could
jamescostian··on What Happens if SAT Scores Consider Adversity?
I don't personally think that capitalism does a good job of rewarding work. But, IME, people who are in favor or capitalism are under the impression that it's a system that allows anyone to succeed and do well, all they have to do is work hard, get money, invest, start their own business, etc.

They feel communism is unfair as it rewards people for doing nothing, while capitalism allows rags-to-riches based on work and risk AIUI

← PreviousPage 2 of 11Next →