HNHacker News
TopNewBestAskShowJobs

cole-k

385 karma · joined July 25, 2020

Hi
submissionscomments
cole-k··on Haskell error messages: come on
While I agree that this error message sucks, I would like to point out that it could be improved greatly by adding a type annotation.

  Prelude> :{
  Prelude| result :: Int
  Prelude| result = 1 + [1,2]
  Prelude| :}
  
  <interactive>:3:10: error:
      • Couldn't match expected type ‘Int’ with actual type ‘[a0]’
      • In the expression: 1 + [1, 2]
        In an equation for ‘result’: result = 1 + [1, 2]
Now I agree that this might not be an ideal thing to do when showing someone Haskell on a REPL, but I will argue in favor of annotating types at least for top-level declarations in a file. Especially for beginners, as learning to follow the types I feel is helpful to understanding the language and, in turn, its error messages.

I am told that well before I learned Haskell, type inference was the Cool Thing. However, I am of the opinion that a strong type system like Haskell's is best used with guidance (annotations) from the programmer. The more powerful your types, the better a specification you can write. And with a better specification, the type checker can give you better insight into what's wrong when it gets stuck.

cole-k··on Show HN: Looptap – A minimal game to waste your time
Not that I endorse it, but you could do some (or all) of the following to preserve the suggested system while still having everyone's favorite size of transactions:

- Ads after X failures

- Spend Fun Points to avoid ads and prevent misclicks from subtracting your score

- Fun points can be bought

- or obtained by watching an ad

- or obtained very rarely through regular play (e.g. by spending many Fun Coins)

- Spend Fun Coins to customize your ball and background

- Fun coins can be bought

- or obtained by watching an ad

- or obtained infrequently through regular play

- Daily bonuses which scale with number of consecutive days logged in

- Fun Points and/or Coins obtained by referring a friend

et cetera

cole-k··on Keyboard lets people type so fast it’s banned from typing competitions
On the one hand, yeah the "controversy" here seems rather dumb. It's banned from a website where people compare their typing speeds, big whoop. And the discussion about its possible advantage in games like Smash is similarly stupid, seeing as there already are similar controllers.

On the other hand, it admittedly seems like it could be a nice development in consumer stenography. I'm only aware of open-source stuff like Plover, which I never got around to trying.

I admit that if the sensationalism and fake drama were stripped, the article would probably read like a product endorsement. So I guess me saying, "I'm OK with ads if they're cool" is itself a dumb defense.

cole-k··on Ask HN: Why doesn't YC list compensation for their own open positions?
I'm not so in-the-know w/rt pay: are there a lot of companies that _don't_ do regional pay?
cole-k··on Do you ever avoid submitting something on HN so devs won't ruin it?
I think it's just a difference in attitude.

Some people (like myself) prefer to be treated with more respect than a snarky comment. You can attribute that to being sensitive if you'd like.

I think other commenters think more along the lines of, "It's the internet, I'm (sort of) anonymous, if you don't like what I say, T.S."

Personally, I think that aside from being rude, the comment in question ignores the fact that the original commenter stated they saw other people receive snarky responses, and after receiving those responses themselves decided they'd rather not be criticized. I think they'd know better whether their life or career require exposure on HN.

cole-k··on Tiny
I can jive with the idea that people aren't "very good" at solving the problems they don't engage with, but I think it's important to acknowledge that plain old "good" can be enough.

To wit, I'm not going to be upset if tech support takes 3 minutes to process my question and reads out an answer from a pamphlet in monotone if it is indeed a solution to my problem. And there is some software that I use _despite_ its pain points because it solves problems I have.

cole-k··on Update on Omicron
Well, if you want to be picky, the parent comment asked

> When did it get renamed to "Omicron"?

which is neither "why" nor "did it happen".

Regardless, it seems that the other commenters you're referring to are citing the same sources in the stack exchange thread [1] [2].

I'm not sure what additional clarification your comment has to offer, as there is already speculation on why Xi was skipped [1] [3].

[1] https://skeptics.stackexchange.com/a/52686

[2] https://news.ycombinator.com/item?id=29374052

[3] https://news.ycombinator.com/item?id=29373580

cole-k··on Update on Omicron
The answers address your question here: https://skeptics.stackexchange.com/questions/52676/did-the-w...
cole-k··on California moves to recommend delaying algebra to 9th grade statewide
I think there must be a language difference between us, since I usually interpret "for the lulz" as meaning "without a [good] reason." Kudos to you for doing well on it.

The oddest reason I've ever heard for taking a standardized test was from a fellow who was an SAT tutor. He would take the test in order to covertly write down good math questions onto his calculator while the instructors weren't looking. He made a point of telling me that when you do this, you have to make sure you answer most questions incorrectly. He knew other tutors who took the tests, got perfect scores, and then were told they couldn't take it again. There was almost pride in his voice when he said to me (paraphrased), "If CollegeBoard sees a 30-year-old man acing the SAT, they're going to look at him funny if he tries to take it again. If they see a 30-year-old man bombing the SAT repeatedly, they're just going to think he's stupid."

Doing this is of course morally dubious, to put it nicely. But I still am amused by the whole thing. There's a degree of "sticking it to the man" both in pilfering question examples from CollegeBoard and lowering the curve by an infinitesimally small amount when he takes the exams.

cole-k··on California moves to recommend delaying algebra to 9th grade statewide
... Do you laugh with your friends about how one time you studied for two weeks and took the GED tests?

There must have been some use in taking it for you, right?

Otherwise, I guess I am missing the joke.

cole-k··on Why Are Topre Keyboards So Expensive?
In defense of the site, the mechanical keyboard hobby consists of a lot of buying things. New keyboards, new keycaps, new artisans, new cases, new cords, new switches... I'm probably missing a few of the other things people buy. So it would make sense that a blog related to it would be giving advice on what to consider when you're next shopping for something keyboard-related.

Not in defense of it, the site does seem to be the typical blog model of review and drop an affiliate link.

cole-k··on Why Are Topre Keyboards So Expensive?
Maybe it's changed in the past five years, but I don't recall being treated disrespectfully when I was active on /r/mk and deskthority (can't speak for geekhack, and I admittedly wasn't very active on deskthority).

As what switches/layouts/keycaps/etc. folks like are highly subjective and sometimes polarizing, I would often see people espousing opinion as fact. But no one treated me rudely even when I asked dumb questions in their daily discussion/advice threads.

I agree that much of the community consists of essentially bragging to other people about your own keyboards. But I saw even braggarts showing up in newbie threads to try and help other people get into the hobby.

Edit: I will add though, I tend to lurk for a while and gather knowledge before I even ask a newbie question. And I probably fit better with the kind of boys club tech bro culture that you're implying is prevalent (although I can't say I noticed this all too much).

cole-k··on Making the dislike count private across YouTube
> There is always bias in the userbase, people usually watch content on their side of the political agenda for example.

I agree, but as a user I am used to assuming a baseline of support for a video coming from the channel's subscribers. So even if the pie-in-the-sky random sampling is biased, I can usually account for that. What I would like to be able to assume is that likes and dislikes come from the "usual" traffic a video receives.

> Also are we talking about global opinion?

No. I think it can be assumed (like you said) that videos typically receive views from certain people. My point is more that brigades disrupt the helpfulness of ratings for viewers like myself. I think we should not offend the sensibilities of the homophobes in this world (lmao) by asking them to watch LGBT-friendly videos. Conversely, I think said homophobes should refrain from brigading such a video just because they dislike LGBT people.

I also will reiterate my claim that it is rude for the hypothetical homophobe to exercise targeted downvotes on LGBT videos.

As for myself, I'm not all too pleased with downvotes being straight up removed from Google (edit: YT). But acting like brigades are constructive and normal use of the platform is silly to me.

Edit: clarified some points

cole-k··on Making the dislike count private across YouTube
The hope with youtube videos is that the likes/dislikes represent a random sampling from the ratings of everyone who would watch the video. A brigade is purposefully adding to the sample ratings from only one side. So from an objective standpoint it makes the like/dislike ratio lower quality.

But from a less objective standpoint, it's just rude. Even if the rankings are purely cosmetic, why go out of your way to leave a dislike on one person's video if you wouldn't interact with it otherwise?

cole-k··on Pinterest ruined photo search on the internet
Forgive me, for I have become the Hacker News curmudgeon and armchair-know-it-all.

Subject matter aside, this piece's journalism brought me much ire.

Did they really need Pinterest's failed acquisition to contextualize this article? It's not even discussed save for a throwaway comment at the end. Pinterest has been an annoyance to image searchers for a long time, are they suggesting that somehow PayPal didn't know, and upon discovery they too concluded, "Pinterest sucks and it has utterly ruined photo searching on the internet."

Is a HN thread with 24 upvotes now a means of "pleading" with Google engineers [0]?

Am I just getting mad at a low-quality, click-baity online magazine?

[0] - https://news.ycombinator.com/item?id=21546202

cole-k··on Taking notes in mathematics lectures using LaTeX and Vim (2019)
Usually what happens when I try a text editor, shell, etc. is that I'm happy with 95% of the features but there are a few things that nag at me. And inevitably I go down a rabbit hole of hacks until I end up with (an approximation of) my desired feature. If I do that enough times then something ends up wonky until my whole setup is kinda scuffed.

As an example pertinent to this post, I repeatedly have to dismiss notifications from pdflatex about some sort of incompatibility with my setup. I think it's relative line numbering, I'm not sure though. My attempts to fix it have only resulted in pdf files occasionally opening as raw code.

I will take a look at SpaceVim, though. I've been using vanilla vim for a while to edit personal stuff because I don't want to open spacemacs...

cole-k··on Taking notes in mathematics lectures using LaTeX and Vim (2019)
I'm always envious of people who have vim/emacs setups that appear so clean and functional.

I just think to my cobbled-together vim setup which both had a long startup and was riddled with idiosyncrasies (both I'm sure caused by my own misconfiguration).

I since have migrated to spacemacs, thinking that I could let people more competent than I do the brunt of configuration, but still I have managed to make the startup long and the experience janky.

I guess I should either spend more or less time configuring my setups...

cole-k··on Bitcoin Is a Ponzi Scheme
Sing it with me, "Ev-ry bo-dy wants to be rich-er"

(to the tune of "Everybody Wants To Rule The World")

Maybe I'm beating a dead horse, but it seems to me that if bitcoin investors care about its status as a Ponzi scheme or its greater merits at all, they certainly don't care as much as they do for its potential to multiply their investment.

cole-k··on About that time I had an outburst during the Y Combinator Interview
There has to be some irony in you writing a passive aggressive reply over me adding in "not to be rude" in an attempt to not sound passive aggressive myself.

Maybe the irony is in me taking the bait and writing a passive aggressive reply to your passive aggressive reply.

cole-k··on About that time I had an outburst during the Y Combinator Interview
The message is written at the end of the post:

> The lesson that I walked away with was to listen to that pain, no matter how irrational it may seem in the moment... I’ve been learning to listen and to trust my emotions in less desperate situations in the years since the YC interview.

I do not think the author is claiming you should shout about your niece in a YC interview. They told a pretty interesting anecdote and gave the insight they gained from it.

Not to be rude but your comment seems kind of like it should just be a downvote (or I suppose a withheld upvote).

cole-k··on New horizons for SPJ
I would be careful making such generalizations lest you give this vocal minority of haskellers more reason to believe that non-haskellers are luddites (edit: can you use the word "luddite" to refer to people who don't like theory? Probably not but pretend that's what it means).
cole-k··on Kind: A Modern Proof Language
Disclaimer: I am not an SEO expert

I think you should be fine if you call it "kindlang" or "kind lang" everywhere.

You have to understand that the languages Python, C, and even Ruby have been around for a long time, and I would wager SEO mattered much less when they were being created. This is obviously true for C, and arguably true for the others. To boot, many of them are often searched for with "(programming) lang(uage)" as an associated query.

Similar arguments follow for the rest (Go/Swfit/Rust are supported by big companies, Perl is a unique string, etc.).

What is unfortunate for your language is that Kinds are something associated with PLs theory AND it also seems to be that many people are interested in searching for "what kinds of programming languages are there?" ("kind" in the sense of "type of language").

If I were you, I wouldn't let it get to me – I think this project is cool regardless of name. But if popularity matters to you, maybe try and emphasize "kindlang".

cole-k··on Tencent deploys facial recognition to detect minors gaming at night
If that's the case, then where is the crackdown on rampant underage drinking?

My college gives a presentation to freshman that essentially says "we know you're going to drink, so please drink responsibly and take care of yourself." And I personally think this is much better than telling kids to not drink underage.

It reminds me of parents who teach their kids abstinence and then are shocked to find them pregnant.

cole-k··on Functors and Monads for People Who Have Read Too Many “Tutorials”
That's fair, and I hope that I didn't come across too harsh in my comment. I elided a paragraph of praise I thought was redundant to my first few sentences.
cole-k··on Functors and Monads for People Who Have Read Too Many “Tutorials”
> The paragraph starting with "I am aware of the notorious effect" directly addresses this, do you disagree with it?

I suppose my answer should be "yes," but let me try to explain my convoluted reasoning:

Understanding monads simply in terms of interfaces is what I think is the silver bullet to comprehending them. It's what helped me "get" them. So they are my "burrito."

> Also calling it an interface isn't an analogy.

I agree, I apologize if I came across this way.

cole-k··on Functors and Monads for People Who Have Read Too Many “Tutorials”
I agree wholeheartedly that Functors and Monads should be thought of as interfaces. And that much of what complicates them is separating the implementation details from the interface details.

However, I can't help but feel that the author and I have some common flaws.

The first being verbosity. I often notice the same thing in my own writing: I will see a well-written paragraph and think "this is good stuff" and then wonder "but what purpose does it serve here?" Stuff like dedicating 5 paragraphs to discussing whether Functor should be a noun (I get the point, but that's a lot of words to make it), or a paragraph with caveats about how Haskell does name resolution.

The second being that we both seem to have fallen victim to the monad tutorial fallacy (https://byorgey.wordpress.com/2009/01/12/abstraction-intuiti...). But I'm not 100% sure about this one. I don't think it's wrong to call monads interfaces in the same way that it's wrong to call them burritos. However, our framework of thinking does seem to align with what that author refers to as fallacious.

Still was a good enough read that I felt the need to comment partway through :)

cole-k··on Replit used legal threats to kill my open-source project
I can understand now why you would doubt the blog post. Radon and I are friends from college, and in my approximately five years of knowing him I have no reason to believe him ever capable of faking a blog post so he can get back at his former employer. He certainly fights for what he believes in, though.

I suppose we can only wait to hear what Amjad has to say.

cole-k··on Replit used legal threats to kill my open-source project
Well, if we want to supply character evidence, I know Radon.

And I believe that not only were his intentions good, but also his actions.

Although I would still like to hear Amjad’s side of the story.

cole-k··on Replit used legal threats to kill my open-source project
Riju is down, but I had a chance to use it for a few minutes when it was up. To me it was very similar to tio.run, so take a look and see for yourself how they are similar to repl.it.
cole-k··on Replit used legal threats to kill my open-source project
Second-hand source here, but I’m pretty sure Riju postdates the author’s internship.

IANAL but if he signed a non-compete maybe this could be a legal issue.

← PreviousPage 5 of 6Next →