<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: greggman3</title><link>https://news.ycombinator.com/user?id=greggman3</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 17 Apr 2026 09:52:38 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=greggman3" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by greggman3 in "Pipe Operator (|>) For JavaScript"]]></title><description><![CDATA[
<p>I agree that having a "can't modify this object" via this reference is useful and that JavaScript doesn't have it. TypeScript has it with `ReadOnly<T>`<p>It could be worse. You could be in python that has no const whatsoever :P<p>I also agree pass by reference is useful. JavaScript only has pass by value, similar to python.</p>
]]></description><pubDate>Sat, 21 Jan 2023 05:46:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=34464219</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34464219</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34464219</guid></item><item><title><![CDATA[New comment by greggman3 in "Ask HN: Google spam filter getting worse?"]]></title><description><![CDATA[
<p>I suspect they spent several millions of dollars a year and at least 20-30 people if not more and I think you don't have any idea of how hard the problem is and how it's getting harder all the time.<p>It's going to get even harder as spammers use ChatGPT like tech to write individual spam messages for each person</p>
]]></description><pubDate>Sat, 21 Jan 2023 05:35:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=34464183</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34464183</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34464183</guid></item><item><title><![CDATA[New comment by greggman3 in "Summer Afternoon – A WebGL Experiment"]]></title><description><![CDATA[
<p>Of course, why not?</p>
]]></description><pubDate>Sat, 21 Jan 2023 05:23:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=34464125</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34464125</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34464125</guid></item><item><title><![CDATA[New comment by greggman3 in "Ask HN: Google spam filter getting worse?"]]></title><description><![CDATA[
<p>How about reframing to "Is spam getting harder to filter?"<p>No one at google wants spam.</p>
]]></description><pubDate>Fri, 20 Jan 2023 18:05:39 +0000</pubDate><link>https://news.ycombinator.com/item?id=34457102</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34457102</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34457102</guid></item><item><title><![CDATA[New comment by greggman3 in "Pipe Operator (|>) For JavaScript"]]></title><description><![CDATA[
<p>> That brings me to something I really want in JS, actual unmutable values. If you use `const x = new SomeClass()`, you cannot reassign it, but you can change fields. The first time I encountered `const`, I thought it did the opposite. It would be cool if you could declare something (object, array) to be an immutable value.<p>That sounds like a fundamental mis-understanding. Variables do not hold objects, they hold references to objects.<p><pre><code>    const foo = {};
    let bar = foo;
</code></pre>
foo and bar hold references to the same object. They do not hold the object themselves. foo's reference can not be changed. It's const. bar's reference can. But the object is independent of both variables.<p>If you want the object itself to be unmodifiable there's Object.freeze.<p><pre><code>    const foo ...
</code></pre>
makes foo const. If you wanted a shortcut for making the object constant (vs Object.freeze) it would be something like<p><pre><code>    let foo = new const SomeObject()
</code></pre>
This doesn't exist but it makes more sense than believing that `const foo` some how makes the object constant. It only makes foo constant (the reference).</p>
]]></description><pubDate>Fri, 20 Jan 2023 18:00:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=34457002</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34457002</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34457002</guid></item><item><title><![CDATA[New comment by greggman3 in "Pipe Operator (|>) For JavaScript"]]></title><description><![CDATA[
<p>and yet looking through code from the place you work I see something like this<p><pre><code>    let field = ve.instanceContext.replace(/(#\/)|(#)/ig, "").replace(/\//g, ".")
</code></pre>
Which you apparently claim should be<p><pre><code>    const fieldWithHashMarksUnesacped = ve.instanceContext.replace(/(#\/)|(#)/ig, "");
    const field = fieldWithHashMarksUnesacped.replace(/\//g, ".")

</code></pre>
<a href="https://github.com/mirusresearch/firehoser/blob/46e4b0cab9a2adf775fd438c57f217d40fef6102/firehoser.js#L205">https://github.com/mirusresearch/firehoser/blob/46e4b0cab9a2...</a><p>and this<p><pre><code>    return moment(input).utc().format('YYYY-MM-DD HH:mm:ss')
</code></pre>
Which apparently you believe should be<p><pre><code>    const inputAsMoment = moment(input);
    const inputConvertedToUTC = inputAsMoment.utc()
    return inputConvertedToUTC.format('YYYY-MM-DD HH:mm:ss')</code></pre></p>
]]></description><pubDate>Fri, 20 Jan 2023 17:51:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=34456877</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34456877</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34456877</guid></item><item><title><![CDATA[New comment by greggman3 in "Pipe Operator (|>) For JavaScript"]]></title><description><![CDATA[
<p>I agree that<p>(1) named intermediate values are sometimes more readable ... though I have examples where it's very hard to come up with names and not sure it helped<p>(2) debugging is easier.<p>For (2) though, this IMO is a problem with the debugger. The debugger should allow stepping by statement/expression instead of only by line (or whatever it's currently doing). If the debugger stopped at each pipe and showed in values (2) would mostly be solved. I used a debugger that worked by statements instead of lines once 34 years ago. Sadly I haven't seen once since. It should be optional though as it's a tradeoff. Stepping through some code can get really tedious if there are lots of steps.</p>
]]></description><pubDate>Fri, 20 Jan 2023 17:43:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=34456724</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34456724</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34456724</guid></item><item><title><![CDATA[New comment by greggman3 in "Hello, PNG"]]></title><description><![CDATA[
<p>I don't consider ASCII simple because it needs to be parsed (more than a binary format).<p>As sample example, a binary format could be as simple as<p><pre><code>    struct Header {
      uint32 width;
      uint32 height;
    }

    struct Image {
      Header header;
      uint8* data;
    }

    Image* readIMG(const char* filename) {
      int fd = open(filename, ...)
      Image* image = new Image();
      read(fd, &image->header, sizeof(image->header));
      size_t size = image->header.width * image->header.height * 4;
      image->data = malloc(size);
      read(fd, image->data, size);
      close(fd);
      return image;
    }
</code></pre>
Yea I know, that's not a complete example, endian issues, error checking.<p>Reading a PPM file is only simple if you already have something to read buffered strings and parse numbers etc...  And it's slow and large, especially for todays files.</p>
]]></description><pubDate>Wed, 18 Jan 2023 22:59:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=34434339</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34434339</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34434339</guid></item><item><title><![CDATA[New comment by greggman3 in "Someone stole my car and now I own hundreds of vinyl records"]]></title><description><![CDATA[
<p>I had my car stolen from an apartment complex garage in like 1991. Sure it sucks to have my car stolen but the only irreplaceable thing was 36 mix tapes that were in the car. Guess that's an issue that no longer exists :P</p>
]]></description><pubDate>Wed, 18 Jan 2023 22:49:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=34434239</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34434239</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34434239</guid></item><item><title><![CDATA[New comment by greggman3 in "In the past, I've had students call my problem sets “emotionally trying”"]]></title><description><![CDATA[
<p>I forgot where I heard this but "It's impossible to remember what it was like not to know something". This generally means all kinds of things are obvious to someone that knows a topic. They're so obvious they're invisible, forgotten about, and therefore you don't even think to teach them.</p>
]]></description><pubDate>Wed, 18 Jan 2023 11:48:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=34425650</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34425650</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34425650</guid></item><item><title><![CDATA[New comment by greggman3 in "No Start Menu for You"]]></title><description><![CDATA[
<p>For me Spotlight fails constantly. I don't know what's tripping it up but programs I use often it randomly decides "today I'm not going to find those for you". I have it set to only show programs and nothing else so no idea why it can't do that simple task but whatever, several times a week it decides "not this time"<p>As for tiling, Mac does do somethings that Windows (IIRC) doesn't. One is, if you move a window or the edge of a window slowly it will snap at the border of another window. So you move fast to get it close then slow down and it will align nicely.<p>Also, tiling: <a href="https://support.apple.com/en-us/HT204948" rel="nofollow">https://support.apple.com/en-us/HT204948</a><p>But I agree that Windows tiling is more discoverable.</p>
]]></description><pubDate>Wed, 18 Jan 2023 11:41:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=34425615</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34425615</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34425615</guid></item><item><title><![CDATA[New comment by greggman3 in "Hello, PNG"]]></title><description><![CDATA[
<p>Honestly, I don't consider PNG a simple format. The CRC and the compression are non-trivial. If you're using a new language that doesn't have those features built in and/or you don't have a reasonable amount of programming experience then you're going to likely fail (or learn a ton). zlib is 23k lines. "simple" is not word I'd use to describe PNG<p>Simple formats are like certain forms of .TGA and .BMP. A simple header and then the pixel data. No CRCs, no compression. Done. You can write an entire reader in 20-30 lines of code and a writer in other 20-30 lines of code as well. Both of those formats have options that can probably make them more work but if you're storing 24bit "True color" or 32 bit "true color + alpha" then they are way easier formats.<p>Of course they're not common formats so you're stuck with complex formats like PNG</p>
]]></description><pubDate>Wed, 18 Jan 2023 11:29:39 +0000</pubDate><link>https://news.ycombinator.com/item?id=34425548</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34425548</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34425548</guid></item><item><title><![CDATA[New comment by greggman3 in "The Pretty Good House"]]></title><description><![CDATA[
<p>1000 square feet is only small in the USA. 1000 sqft is the average size of a home in Japan. 50% are smaller. There's plenty of creative ways to use 1000 sqft</p>
]]></description><pubDate>Tue, 17 Jan 2023 05:02:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=34409329</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34409329</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34409329</guid></item><item><title><![CDATA[New comment by greggman3 in "Conditional CSS"]]></title><description><![CDATA[
<p>I believe the reason there's no if/else is because CSS is supposed to be easy enough to interpret relatively quickly (in a finite amount of time). The moment you add if/else you'd up with a full programming language and the halting problem and an arbitrary amount of calculations before the system can finally know what to render.</p>
]]></description><pubDate>Tue, 17 Jan 2023 01:37:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=34408115</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34408115</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34408115</guid></item><item><title><![CDATA[New comment by greggman3 in "Quitting the rat race"]]></title><description><![CDATA[
<p>Yes, I did consider that. That's exactly my point. He stated he hates (A) and likes (B). I suggested that hating (A) is a poor POV. It would be better to like both (A) and (B) even if you prefer (B).<p>Let's put it another way. If someone says the France sucks, Germany rules. And someone replies "The France doesn't suck, here's a few reasons why". Why do you feel the need to jump in and defend the POV that "France sucks"?<p>I also listed spending time with people as a plus to the city. It's interesting that you left that out. I'd guess if the author had a job they loved with people they loved their attitude about everything else would change. The fact they're in a job they hate arguably taints everything else about their life. Commuting of course sucks if it's to a place you don't want to go in the first place. To me, commuting by public transport rocks because I got, on average, 50+ minutes of walking (25 each way) for free (added to the 20 minutes of standing on the train)<p><a href="https://www.youtube.com/watch?v=KPUlgSRn6e0">https://www.youtube.com/watch?v=KPUlgSRn6e0</a></p>
]]></description><pubDate>Tue, 17 Jan 2023 01:31:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=34408065</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34408065</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34408065</guid></item><item><title><![CDATA[New comment by greggman3 in "Quitting the rat race"]]></title><description><![CDATA[
<p>He did call it crap or did you miss it?<p>In so many words he said cities suck, nature rocks.<p>Vs me, who said both nature and cities rock, and that the attitude that one sucks is a poor attitude</p>
]]></description><pubDate>Tue, 17 Jan 2023 00:21:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=34407464</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34407464</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34407464</guid></item><item><title><![CDATA[New comment by greggman3 in "Quitting the rat race"]]></title><description><![CDATA[
<p>They have opinions. One is nature rules. The other is the city sucks.<p>I think their opinion of that the city sucks is wrong, full stop, and that a change in attitude would see all the great things a city provides that nature does not so that then you can appreciate both.<p>To me, enjoying the good parts of both the city and nature is a better POV than shitting one one of them.</p>
]]></description><pubDate>Tue, 17 Jan 2023 00:20:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=34407454</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34407454</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34407454</guid></item><item><title><![CDATA[New comment by greggman3 in "Quitting the rat race"]]></title><description><![CDATA[
<p>Hey, if being in nature makes you happy good for you but your outlook on the rest is kind of crap.<p>Me, best time in my life, commuting in Tokyo to my jobs working on a project I loved with people I loved. All the ads on the trains were eye candy to me. I didn't buy anything that I remember but I did find out about museums, concerts, and other events around town as well as various obscure services which I never used but was amused to read about.<p>Drinking with my buddies, including work buddies about once a week was great. Clubbing, going to restaurants, and going to events of the kind that generally only happen in giant cities was lovely.<p>I like the occasional trip to nature but as for me I'll pick the city and the public transportation. I love it!</p>
]]></description><pubDate>Mon, 16 Jan 2023 23:56:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=34407244</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34407244</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34407244</guid></item><item><title><![CDATA[New comment by greggman3 in "Two surprises in browser crashes"]]></title><description><![CDATA[
<p>how is that different than any other POST endpoint?</p>
]]></description><pubDate>Thu, 05 Jan 2023 05:02:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=34256186</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34256186</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34256186</guid></item><item><title><![CDATA[New comment by greggman3 in "‘Breakthrough’ obesity drugs that have stunned researchers"]]></title><description><![CDATA[
<p>Is it true there are plenty of places in the world that don't have an epidemic of obesity?<p>My belief is Japan doesn't have as much of an obesity problem.<p>Sure, I'd love a drug that lets me eat more calories and not get fat but I'd also love it if we some how managed to stop eating so many cookies, donuts, potato-chips, sugary sodas, giant portion meals, etc....  I'd also love it if we designed more areas to be walkable and bikeable.<p>I lived  ~15 years in Japan. I never missed owning car because the country is designed not to need a car. I also spent a year in Europe and Singapore and again, never missed owning car for the same reasons.<p>Let me also add that in Japan, at least in big cities like Tokyo, Osaka, Kyoto, you are almost always 1-2 minutes away from junk food. You can walk to a convenience store and find whole aisles of pastries, chips, ice cream, candies, etc and yet somehow the Japanese manage not to pig out.<p>Similarly there are bakeries all over full of donuts, etc...<p>Somethings that help are the portions are often smaller. Certainly for potato chips most bags in Japan are 1/3th the size of the average bag in the USA. Similarly cookies are small and come in small portions vs the USA where pretty much any supermarket sells cookies in packages of 20 to 40 cookies and each cookie is giant 300-500 calories each.<p>I guess this is one of those, we're not going to get people to stop eating too much so we have to find another solution? I can just imagine once I get this drug I'll start eating more because I can and companies will ramp up the portion sizes even more.... TACO TIME!!!!!</p>
]]></description><pubDate>Thu, 05 Jan 2023 00:45:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=34254256</link><dc:creator>greggman3</dc:creator><comments>https://news.ycombinator.com/item?id=34254256</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34254256</guid></item></channel></rss>