Live data from Hacker News

Show HN: A motherfucking app (does one thing, under 300 LOC)

adnjoo.github.io

11–20 of 32 posts

Re: Show HN: A motherfucking app (does one thing, under 300 LOC)

#12
post #2

> 100% static HTML/JS app. > under 300 LOC > "Do nothing" button WTF mf, why are so many lines and fancy tech for do nothing button?

Last week we had an entire game of DOOM in a QR code... I think someone can get us "Do nothing" in less than 300 lines of code.

I'm sure someone can get it smaller than this (save as .html)

  
  Do This
  Do Nothing
  

Re: Show HN: A motherfucking app (does one thing, under 300 LOC)

#14
post #6

This is clickbait. The app does two things, there's a do nothing and a do one thing button. That's TWO things, not one. One thing would be ONE button. 0 star review. Developer should be ashamed of himself and should never ever build another thing ever again.

You're doing it wrong. Counting doing nothing as something is incorrect.

Doing nothing counts as not a thing and doing a thing counts as one thing, which is what it says it does.

It may have two dot points, but only one of them is something.

If I tell my wife I was busy all day because I was doing nothing, she would say you did not get one thing done today, and she would be right.

Re: Show HN: A motherfucking app (does one thing, under 300 LOC)

#16
post #2

> 100% static HTML/JS app. > under 300 LOC > "Do nothing" button WTF mf, why are so many lines and fancy tech for do nothing button?

You forced me to stand up and write the code. Here is your cross-platform desktop app in 10 lines, pretty sure others can do better than me:

    package main
    import (
     "fyne.io/fyne/v2/app"
     "fyne.io/fyne/v2/widget"
    )
    func main() {
     w := app.New().NewWindow("One Button App")
     w.SetContent(widget.NewButton("Do Nothing", func() {}))
     w.ShowAndRun()
    }
Post reply on HN