Most active commenters

    ←back to thread

    617 points EvgeniyZh | 11 comments | | HN request time: 0.001s | source | bottom
    Show context
    stkai ◴[] No.43576376[source]
    The source code is such a fun read (for the comments). I found some source code for GW-BASIC, and here are two of my favorites:

      ;WE COULD NOT FIT THE NUMBER INTO THE BUFFER DESPITE OUR VALIENT
      ;EFFORTS WE MUST POP ALL THE CHARACTERS BACK OFF THE STACK AND
      ;POP OFF THE BEGINNING BUFFER PRINT LOCATION AND INPUT A "%" SIGN THERE
    
      ;CONSTANTS FOR THE RANDOM NUMBER GENERATOR FOLLOW
      ;DO NOT CHANGE THESE WITHOUT CONSULTING KNUTH VOL 2
      ;CHAPTER 3 FIRST
    
    Edit: GW-BASIC, not QBASIC (https://github.com/microsoft/GW-BASIC)
    replies(2): >>43576945 #>>43579555 #
    deathtrader666 ◴[] No.43579555[source]
    Shouldn't it be "valiant" ?
    replies(2): >>43579805 #>>43584969 #
    1. roryirvine ◴[] No.43579805[source]
    Sure, but in those days spellcheckers were separate apps - the most popular at the time being CorrectStar from MicroPro.

    They weren't integrated into programming-oriented editors, and it would have been unusual to run them against code.

    replies(1): >>43581285 #
    2. 3836293648 ◴[] No.43581285[source]
    I still haven't seen anyone using a spellchecker in code outside of IntelliJ
    replies(7): >>43583379 #>>43585594 #>>43586083 #>>43586241 #>>43586335 #>>43586660 #>>43592318 #
    3. timcobb ◴[] No.43583379[source]
    Some people use VSCode extensions
    4. dhosek ◴[] No.43585594[source]
    Emacs has the ability to do spellcheck inline, both as a run through the buffer (old-school style) and as an as-you-type live feature. That said, I do most of my coding in JetBrains IDEs these days.
    5. eddythompson80 ◴[] No.43586083[source]
    cSpell alone has 13 million installs

    https://marketplace.visualstudio.com/items?itemName=streetsi...

    6. StanAngeloff ◴[] No.43586241[source]
    I recently found https://github.com/tekumara/typos-lsp that uses https://github.com/crate-ci/typos Plenty of GH stars so likely a solid user base. Works great in NeoVim with the built-in apellchecker.
    replies(1): >>43590708 #
    7. mindcrime ◴[] No.43586335[source]
    Eclipse has had an integrated spell-checker, which I believe is on by default for most file types, for like approximately forever. Now maybe everybody turns it off, but I gotta imagine there are some people who like it and keep it on.
    8. freedomben ◴[] No.43586660[source]
    For Vim/Neovim users, there is one built in that is pretty good, and once you've added frequent custom words to the dictionary it is great. You can turn it on with `:set spell` or off with `:set nospell`. Add custom words by pressing `zg` on the target word:

    I have this in my vimrc file so it's on by default for certain file types:

        " Turn on spellcheck for certain filetypes and word completion.                                                                                                                                                                               
        " words can be added to the dict by pressing 'zg' with cursor on word.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
        autocmd Filetype markdown setlocal spell                                                                                                                                                                                                      
        autocmd Filetype gitcommit setlocal spell                                                                                                                                                                                                     
        set complete+=kspell                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                  
        " Don't highlight in red an underscore (_) in markdown                                                                                                                                                                                        
        " https://vi.stackexchange.com/q/18471/17441                                                                                                                                                                                                  
        autocmd Filetype markdown syn match markdownIgnore "\v\w_\w"
    
    Custom additions to the dictionary will go to a simple text file (one word per line) in `~/.vim/spell/en.utf-8.add` (depending on your settings) where it is easy to edit or backup.
    replies(1): >>43603046 #
    9. griffzhowl ◴[] No.43590708{3}[source]
    "apellchecker" is actually a great name for a spellchecker
    10. maleldil ◴[] No.43592318[source]
    Codespell works very well, in my experience. I run it from the command line and in CI.

    https://github.com/codespell-project/codespell

    11. porridgeraisin ◴[] No.43603046{3}[source]
    > custom additions

    You can also add it directly when using it. Move the cursor to the word and (I forget the command...) can add it as a rare word, good word or bad word.