<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: MaxArt2501</title><link>https://news.ycombinator.com/user?id=MaxArt2501</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 17 Apr 2026 16:45:43 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=MaxArt2501" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by MaxArt2501 in "Tailwind vs. Semantic CSS"]]></title><description><![CDATA[
<p>I can't, for the sake of me, understand how some frontend devs still complain about CSS' global scope when style encapsulation exists and is widely adopted in a form or the other, either native (Shadow DOM) or emulated.<p>You don't like global styles? Don't use global styles, period.<p>Even without adopting Nue and staying on React, CRA and Next comes out with CSS Modules out of the box. Angular and Vue have their own equivalent.</p>
]]></description><pubDate>Tue, 24 Oct 2023 06:21:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=37995375</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=37995375</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37995375</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "TS to JSDoc Conversion"]]></title><description><![CDATA[
<p>That's an interesting hybrid approach, thanks Andrea.<p>Is this what Svelte will use? (Asking anybody that knows, of course.)<p>Anyway, to me the main problem in using TS <i>with libraries</i> is that we have 3-4 major releases per year, and they're just too many. Unless one takes a very restrained approach, releasing very generic (and thus less helpful) types that won't (presumably) break future (or past) versions of TypeScript, we need to release with `typesVersions` targetting <i>n</i> different versions of TypeScript. That's an ever-growing bother indeed for maintainers as time passes.<p>And I fear the hybrid approach above won't escape this issue. So using "pure" JSDoc or JSDoc with just a sprinkle of TypeScript actually makes sense... But I'd expect this workflow to be winning with smaller projects, and that's why this announcement for Svelte has been surprising to me.</p>
]]></description><pubDate>Fri, 12 May 2023 12:34:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=35915301</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=35915301</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35915301</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "TS to JSDoc Conversion"]]></title><description><![CDATA[
<p>> it starts to add up both in bandwidth, and in storage taken<p>Are we really talking about <i>disk space</i> in 2023? Seriously?<p>And bandwidth? Like we don't have several cache systems - including npm's - that can help?<p>> how to make your software easier to change in the future<p>Ok, is there someone who can explain in details how would that help?</p>
]]></description><pubDate>Thu, 11 May 2023 22:48:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=35909389</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=35909389</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35909389</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "TS to JSDoc Conversion"]]></title><description><![CDATA[
<p>> JSDoc _is_ TypeScript<p>No.
At least, it didn't used to be. JSDoc had its own syntax, but now you can piggyback its format and put TypeScript inside. So now you can write `@type {Record<string, number>}` instead of the "classic" `@type {Object.<string, number>}`, and use some more TypeScript goodies.<p>You can even kind of use generics with JSDoc, still thanks to TypeScript, but then again... you're not really leaving TypeScript, you'll still have to deal with TS versions, and probably with some of the not-clearly-explained "papercuts" from above.<p>And finally, I'm not sure that JSDoc+TypeScript is perfectly equivalent to TypeScript. I have a hunch that some of the advanced strategies, e.g. involving `infer` or `extends`, aren't really replicable in JSDoc - or at least <i>I</i> have no clue how to do that in JSDoc - so we'll have to settle for weaker definitions in some cases. So, I'll have to see if it's actually "the same outcome".<p>I admit I'm no JSDoc guru, so maybe if somebody is compelled to try harder they might actually find a solution for a transition from TypeScript to a completely equivalent alternative. I'm all ears... but surely, if you try <i>too</i> hard the point will be lost.<p>All of this just to help the Svelte community to contribute - I'll have to take Rich' word for it. For now, it's the only community I've heard that switched from TypeScript in favor of JSDoc. They'll have to deal with a more verbose and less readable codebase for sure, I think there's no doubt about it. Is it really helping the contributors?<p>It may work for an open source project with a strong governance, maybe. I have a very different experience with projects that decided to use JS instead of TS. Unless we're talking about a very small project, it always turned out to be an ungodly mess.<p>> it doesn't have to be built to run<p>If <i>this</i> is a problem, then you have <i>other</i> problems...</p>
]]></description><pubDate>Thu, 11 May 2023 22:41:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=35909325</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=35909325</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35909325</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "Ask HN: Is TypeScript worth it?"]]></title><description><![CDATA[
<p>For me, the main problem is that TS doesn't follow semantic versioning and this leads to a fragmentation of libraries support - unless they also provide multiple type definitions (some of them actually do) - and migrating to newer versions is usually harder, because breaking changes happen so often. So I guess point i) is correct.<p>Let's see the others.<p>ii) It's true that many libraries don't have type definitions, but the most used ones have an externally-maintained corresponding @types/### package that solves the problem. And even if they don't, how is it the fault of TS? The alternative is no type documentation at all - is that better for you?<p>iii) Yes, error messages are something that can be improved, but then again, the alternative is no static error and eventually an even more laconic runtime error. Would that be better?
At least, TS catches that there's a problem <i>before</i> you run the code.<p>iv) Compilation adds a burden to the CPU, not the developer. But anyway, it's a one-time process, and unless it takes 30 minutes it shouldn't be a problem. There are new, much faster compilers nowadays, like esbuild and SWC, plus other tooling tricks like module caching, that makes your local development almost feel like there's no compilation at all.<p>I won't discuss the merits of the adoption of TypeScript. Since I started using it - except for very simple projects - I always felt like I'd be way less productive without it. And I actually had the confirm recently, when I had to work on a Loopback@3 BE that somehow is in JavaScript (even though Loopback 3 does support TS).<p>It's been a mess. Trying to understand the models, the signature and the sense of all the entities has been a nightmare. The documentation for LB v3 is badly maintained and sometimes broken, and this adds even more difficulty. Some dev tried to add some JSDoc info here and there, but it's not nearly sufficient to understand what's going on without investing hours of study of the existing code.<p>This is part of the cause that prevented the team to upgrade to LB@4, so much that I even suggested to redo the BE altogether in Nest (save for the core business logic parts), rather than trying to make a sense of it.<p>So yeah, I'll stick to TS for the foreseeable future, and strongly suggest all the teams I'm going to work with to do the same.</p>
]]></description><pubDate>Mon, 16 Jan 2023 11:09:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=34399435</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=34399435</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34399435</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "Show HN: Share-this: Medium-like text sharing"]]></title><description><![CDATA[
<p>I'll have to deal with npm and bower too, though. I guess I'll have to release a new package and deprecate the old one.</p>
]]></description><pubDate>Mon, 26 Jun 2017 02:49:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=14633691</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14633691</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14633691</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "Show HN: Share-this: Medium-like text sharing"]]></title><description><![CDATA[
<p>Yeah, someone already pointed that out on Reddit :(
Let's see how it develops.</p>
]]></description><pubDate>Sun, 25 Jun 2017 17:27:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=14631099</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14631099</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14631099</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "Show HN: Share-this: Medium-like text sharing"]]></title><description><![CDATA[
<p>I agree, that's somewhat annoying, but that's also something developers and commissioners want.<p>But the good news is that the DOM skeleton is so minimal that you can create a stylesheet that does exactly what you said. Given the reference to the selection, positioning the popover is up to the developer.</p>
]]></description><pubDate>Sun, 25 Jun 2017 17:22:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=14631072</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14631072</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14631072</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "Show HN: Share-this: Medium-like text sharing"]]></title><description><![CDATA[
<p>Are you using Firefox, perchance? It has a "bug" (not sure about that, but surely it's the only one that shows that behavior) relating to SVGs, so it used to size incorrectly the fouth icon. I worked it around some minutes ago and it should be fine.<p>The first icon should be Twitter, so maybe it's really Adblocker. I've tested it with uBlock Origin and it shows the same behavior but, honestly, I don't want to tamper with that.<p>In fact, the sharers that are provided are meant to be <i>examples</i>, and not part of the core library. I guess simply changing the name attribute of the sharer would end up in showing the button.</p>
]]></description><pubDate>Sun, 25 Jun 2017 16:26:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=14630774</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14630774</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14630774</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "Show HN: Share-this: Medium-like text sharing"]]></title><description><![CDATA[
<p>I'm pretty sure there's a lot of prior art for their "design", so I'm kind of safe there.<p>Edit: unless you were referring to the whole aspect of the page. In that case, it's just a presentational page for an open source project, so it has nothing to do with blogging platforms. That should be ok, I guess.</p>
]]></description><pubDate>Sun, 25 Jun 2017 14:45:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=14630215</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14630215</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14630215</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "Show HN: Share-this: Medium-like text sharing"]]></title><description><![CDATA[
<p>Strange. The selection itself isn't handled by the library itself, rather than the browser/OS. The library only reacts when a selection is made.<p>Does it happen to you in other cases as well?</p>
]]></description><pubDate>Sun, 25 Jun 2017 14:29:59 +0000</pubDate><link>https://news.ycombinator.com/item?id=14630139</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14630139</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14630139</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "Show HN: Share-this: Medium-like text sharing"]]></title><description><![CDATA[
<p>I actually used the sharing functionality provided by the library to post this link here.<p>Suggestions are well accepted.</p>
]]></description><pubDate>Sun, 25 Jun 2017 10:27:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=14629438</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14629438</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14629438</guid></item><item><title><![CDATA[Show HN: Share-this: Medium-like text sharing]]></title><description><![CDATA[
<p>Article URL: <a href="https://maxart2501.github.io/share-this/">https://maxart2501.github.io/share-this/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=14629436">https://news.ycombinator.com/item?id=14629436</a></p>
<p>Points: 72</p>
<p># Comments: 25</p>
]]></description><pubDate>Sun, 25 Jun 2017 10:26:56 +0000</pubDate><link>https://maxart2501.github.io/share-this/</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14629436</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14629436</guid></item><item><title><![CDATA[New comment by MaxArt2501 in "TypeScript support in Electron"]]></title><description><![CDATA[
<p>It's definitely VS Code and it's quite mind-blowing thinking that they're the guys behind Atom, and the blog's domain is electron.atom.io.</p>
]]></description><pubDate>Fri, 02 Jun 2017 17:58:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=14472014</link><dc:creator>MaxArt2501</dc:creator><comments>https://news.ycombinator.com/item?id=14472014</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14472014</guid></item></channel></rss>