Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Peak UI Design

Peak UI Design

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
103 Posts 89 Posters 742 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ediacarium@feddit.orgE [email protected]

    This is disgusting. Who enters dates in month/day/year order?

    L This user is from outside of this forum
    L This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #88

    How do you see that and this is your reaction?

    ediacarium@feddit.orgE 1 Reply Last reply
    1
    • gerryflap@feddit.nlG [email protected]

      We can clearly see that this design is silly, because it allows for so many invalid states. Yet when we represent some type, let's say in Java, were so often forced to do this exact same thing. Have variables in a container of which only a certain combination is valid. And then have at most a comment saying "this number is only valid if X is also set" or "if the validity boolean is true". Luckily Java finally has some ability for the so-called sum types now, just like Haskell's data types or Rust's enum types. Imo any language should have this.

      F This user is from outside of this forum
      F This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #89

      Having data dependent on each other in a type means that either you have redundant data (so one of the fields should be computed) or that your container tries to be too generic (you should in this case prefer an 'Apple' class over a 'Fruit' class with an enum field 'Type')

      1 Reply Last reply
      0
      • L [email protected]

        I assume the post is the maximum. I wonder if there is an algorithm for that

        tetris11@feddit.ukT This user is from outside of this forum
        tetris11@feddit.ukT This user is from outside of this forum
        [email protected]
        wrote on last edited by [email protected]
        #90

        hierarchical letter clustering would be my guess, or graph-based clustering using ngrams of 2-4 as nodes and maximising for connections.

        Or using an optimized Regex and printing out the DFA?

        Edit: Quick N-gram analysis (min=3, max=num letters in that month)

        :::spoiler R-code

        library(ngram)
        
        tmonths = c("january", "february", "march",
                   "april", "may", "june", "july",
                   "august", "september", "october",
                   "november", "december")
        
        zzz = lapply(tmonths, function(mon){
          ng = ngram::ngram_asweka(paste(unlist(strsplit(mon, split="")), collapse=" "), min=3, max=nchar(mon))
          return(gsub(" ", "", ng))
        })
        res = sort(table(unlist(zzz)))
        res[res > 1]
        

        :::

        This gives the following 9 ngram frequencies greater than 1:

          ary   uar  uary   emb  embe ember   mbe  mber   ber 
            2     2     2     3     3     3     3     3     4 
        

        As you can see two longest most common motifs are "em-ber" and "uar-y"

        Using this I propose the following graph

        ::: spoiler Mermaid

        stateDiagram
            direction LR
            sept --> em
            nov --> em
            dec --> em
            em --> ber
            oc --> to
            to --> ber
            feb --> uar
            uar --> y
            jan --> uar
            ju --> ne
            ju --> l
            l --> y
            ma --> r
            ma --> y
            r --> ch
            
            a --> p 
            p --> r
            r --> il
            a --> u
            u --> gust
        
        

        :::

        tetris11@feddit.ukT U 2 Replies Last reply
        11
        • cm0002@lemmy.worldC [email protected]
          This post did not contain any content.
          C This user is from outside of this forum
          C This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #91

          Febranber. Those who know, remember.

          1 Reply Last reply
          0
          • cm0002@lemmy.worldC [email protected]
            This post did not contain any content.
            archmageazor@lemmy.worldA This user is from outside of this forum
            archmageazor@lemmy.worldA This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #92

            I love the month of Jay

            1 Reply Last reply
            3
            • tetris11@feddit.ukT [email protected]

              hierarchical letter clustering would be my guess, or graph-based clustering using ngrams of 2-4 as nodes and maximising for connections.

              Or using an optimized Regex and printing out the DFA?

              Edit: Quick N-gram analysis (min=3, max=num letters in that month)

              :::spoiler R-code

              library(ngram)
              
              tmonths = c("january", "february", "march",
                         "april", "may", "june", "july",
                         "august", "september", "october",
                         "november", "december")
              
              zzz = lapply(tmonths, function(mon){
                ng = ngram::ngram_asweka(paste(unlist(strsplit(mon, split="")), collapse=" "), min=3, max=nchar(mon))
                return(gsub(" ", "", ng))
              })
              res = sort(table(unlist(zzz)))
              res[res > 1]
              

              :::

              This gives the following 9 ngram frequencies greater than 1:

                ary   uar  uary   emb  embe ember   mbe  mber   ber 
                  2     2     2     3     3     3     3     3     4 
              

              As you can see two longest most common motifs are "em-ber" and "uar-y"

              Using this I propose the following graph

              ::: spoiler Mermaid

              stateDiagram
                  direction LR
                  sept --> em
                  nov --> em
                  dec --> em
                  em --> ber
                  oc --> to
                  to --> ber
                  feb --> uar
                  uar --> y
                  jan --> uar
                  ju --> ne
                  ju --> l
                  l --> y
                  ma --> r
                  ma --> y
                  r --> ch
                  
                  a --> p 
                  p --> r
                  r --> il
                  a --> u
                  u --> gust
              
              

              :::

              tetris11@feddit.ukT This user is from outside of this forum
              tetris11@feddit.ukT This user is from outside of this forum
              [email protected]
              wrote on last edited by [email protected]
              #93

              Interestingly

              • Aprch
              • Maril

              are the only two hallucinations, everything else is always a legit month

              1 Reply Last reply
              0
              • cm0002@lemmy.worldC [email protected]
                This post did not contain any content.
                I This user is from outside of this forum
                I This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #94

                I unironically love this. Of course it isn't practical in the least, but I love it.

                1 Reply Last reply
                13
                • tetris11@feddit.ukT [email protected]

                  hierarchical letter clustering would be my guess, or graph-based clustering using ngrams of 2-4 as nodes and maximising for connections.

                  Or using an optimized Regex and printing out the DFA?

                  Edit: Quick N-gram analysis (min=3, max=num letters in that month)

                  :::spoiler R-code

                  library(ngram)
                  
                  tmonths = c("january", "february", "march",
                             "april", "may", "june", "july",
                             "august", "september", "october",
                             "november", "december")
                  
                  zzz = lapply(tmonths, function(mon){
                    ng = ngram::ngram_asweka(paste(unlist(strsplit(mon, split="")), collapse=" "), min=3, max=nchar(mon))
                    return(gsub(" ", "", ng))
                  })
                  res = sort(table(unlist(zzz)))
                  res[res > 1]
                  

                  :::

                  This gives the following 9 ngram frequencies greater than 1:

                    ary   uar  uary   emb  embe ember   mbe  mber   ber 
                      2     2     2     3     3     3     3     3     4 
                  

                  As you can see two longest most common motifs are "em-ber" and "uar-y"

                  Using this I propose the following graph

                  ::: spoiler Mermaid

                  stateDiagram
                      direction LR
                      sept --> em
                      nov --> em
                      dec --> em
                      em --> ber
                      oc --> to
                      to --> ber
                      feb --> uar
                      uar --> y
                      jan --> uar
                      ju --> ne
                      ju --> l
                      l --> y
                      ma --> r
                      ma --> y
                      r --> ch
                      
                      a --> p 
                      p --> r
                      r --> il
                      a --> u
                      u --> gust
                  
                  

                  :::

                  U This user is from outside of this forum
                  U This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #95

                  Thanks for saving me time, my head was already spinning on the previous comment but you made it stop.

                  tetris11@feddit.ukT 1 Reply Last reply
                  3
                  • U [email protected]

                    Thanks for saving me time, my head was already spinning on the previous comment but you made it stop.

                    tetris11@feddit.ukT This user is from outside of this forum
                    tetris11@feddit.ukT This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #96

                    I'm really disappointed by June, April and August. Without these months, everything would be so neat and orderly

                    U 1 Reply Last reply
                    1
                    • cm0002@lemmy.worldC [email protected]
                      This post did not contain any content.
                      B This user is from outside of this forum
                      B This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #97

                      "Lousy Smarch Weather"

                      'Do Not Touch
                      -Willie'

                      "Hey, good advice!"

                      1 Reply Last reply
                      6
                      • tetris11@feddit.ukT [email protected]

                        I'm really disappointed by June, April and August. Without these months, everything would be so neat and orderly

                        U This user is from outside of this forum
                        U This user is from outside of this forum
                        [email protected]
                        wrote on last edited by [email protected]
                        #98

                        Freaking romans with their gods and emperors, they couldn't go from unember to duodecember

                        1 Reply Last reply
                        2
                        • P [email protected]

                          My insurance won't cover it so I have to take Novemugust...

                          A This user is from outside of this forum
                          A This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #99

                          Novemugust is what I’ve been feeling since last November.

                          1 Reply Last reply
                          4
                          • L [email protected]

                            How do you see that and this is your reaction?

                            ediacarium@feddit.orgE This user is from outside of this forum
                            ediacarium@feddit.orgE This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #100

                            Because I'm not used to entering dates in month/day/year order.

                            L 1 Reply Last reply
                            1
                            • ediacarium@feddit.orgE [email protected]

                              Because I'm not used to entering dates in month/day/year order.

                              L This user is from outside of this forum
                              L This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #101

                              Neither am I but much less am I used to the day starting at 0

                              1 Reply Last reply
                              1
                              • O [email protected]

                                Wake me up when Septempril ends

                                L This user is from outside of this forum
                                L This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #102

                                Like my father's come and past, 1900 years has gone so fast!

                                1 Reply Last reply
                                1
                                • cm0002@lemmy.worldC [email protected]
                                  This post did not contain any content.
                                  omegalemmy@discuss.onlineO This user is from outside of this forum
                                  omegalemmy@discuss.onlineO This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #103

                                  this is how my apps look when I try optimising them, just to gut them of all its usability because 'why have an array of values if I can reuse this string or integer' like a fucking idiot

                                  1 Reply Last reply
                                  1
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups