Better HN
topnewbestaskshowjobs
Log inSign up

Rairden

8 karma · joined Apr 9, 2019 (7y ago) · 4 submissions

Submissions

comment 4y ago · link · parent

Windows vs Linux is similar to the chess.com vs lichess.org comparison.

chess.com is worse performance, bloated to the moon w/ ads and popups, costs money, not open-source. And lichess.org is the opposite in every way (free, way higher quality, zero ads).

I can't believe MS would put ads in system tools. What the hell are they thinking!? I've used linux for 5 years now and not looking back!

comment 5y ago · link · parent

To me, the two most important symbols in a programming font are the 0O vs 1l.

I've been using the same 2 fonts for maybe five years and recently got confused looking at a lowercase "L" or a one (1).

Cool website.

comment 6y ago · link · parent

I just tried repl.it. I don't like it, but am impressed you have access to a shell (ubuntu, bash).

I tried to delete Main.java, and it won't let you. Fine, so I just erase the whole text file. Then, I place two separate folders w/ src code in them. Code compiles fine, but still prints out "Hello, world!".

Buggy. If you use Main.java, you can still have several packages and it all works, but I don't like that. What I might do is erase Main.java, then you're forced to manually run your program from their bash shell ($ java MyClass). And then it works fine.

I also don't like they're on openJDK 11. All the nice stuff is in 12-14 (text blocks, switch expressions).

comment 6y ago · link · parent

I use these suffix aliases to open programs occasionally.

    alias -g G='| grep'
    alias -g R='| rg'
    alias -g L='| less'
    alias -g V='| vim -'
    alias -g S='| subl'
And if I want Zsh to auto-expand it out to type the full command (after pressing space), add this to end of your .zshrc:

    globalias() {
        if [[ $LBUFFER =~ '[A-Z0-9]+$' ]]; then
            zle _expand_alias
            zle expand-word
        fi
        zle self-insert
    }
    zle -N globalias
    bindkey " " globalias # space key to expand globalalias

Identical examples:

    grep -rw --exclude-dir={test,build} 'throw' L
    grep -rw --exclude-dir={test,build} 'throw' | less