Lazy names are lazy
Douglas R Andreani

Douglas R Andreani @andreanidouglas

About: I'm not sure what I'm doing. But it's working

Joined:
Aug 8, 2017

Lazy names are lazy

Publish Date: Mar 20 '18
17 24

If you are starting a project, but you have no idea how to call it, maybe just a placeholder, how do you name it?

My goto is Douglas1 or test1, how about yours?

Comments 24 total

  • Ben Halpern
    Ben HalpernMar 20, 2018

    I use the word yolo all over my dev environment in various contexts.

  • Bence Hornyak
    Bence HornyakMar 20, 2018

    temp or tmp most of the time.

  • Andy Zhao (he/him)
    Andy Zhao (he/him)Mar 20, 2018

    When running each loops, I always assign the each variable as x, y, or z.

    products.each do |x|
      x.orders.each do |y|
        y.destroy!
      end
    end
    

    Also, a lot of things are called asdf or some variation of that.

  • Mac Siri
    Mac SiriMar 20, 2018

    I name things based on what I'm thinking right at that moment.

    hmm = User.first.name
    huh = "lskdfjlksjdf"
    what = /\(^[a-zA-Z0-9]+\)\.\([a-z]+\)/
    damit = huh.gsub(what, hmm)
    
  • edA‑qa mort‑ora‑y
    edA‑qa mort‑ora‑yMar 20, 2018

    I usually start with a name that I think captures what I'm working on. Maybe a branch name, or a directory name. Then about 2hours, or 2days later, I make a PR with a subject and branch name that absolutely don't line up.

    Sometimes I'm right though, and it feels satisfying. But often wrong, for example, from today:

    • Branch: fix/trigger-action
    • PR Subject: "Fixes redundant InvalidateLayout in LayoutRole change"

    :)

  • Slava Abakumov
    Slava AbakumovMar 21, 2018

    I use the names of Greek Gods or animals. Like Zeus or narwhal.

  • ☕ツ
    ☕ツMar 21, 2018

    Waffles and pickles abound in my projects, be they classnames, logging or project names.

  • Antonio Radovcic
    Antonio RadovcicMar 21, 2018

    my first choice while learning a lang or lib is "hello x", like "hellodart".
    Then, when I want to do something more involved, its usually dartymcdartface.

    The commit-messages for my playaround-projects are mostly some song-lyrics that happen to play either in my head or headphones while i do the commit, like "bluebirds are so natural".

    (Same with savegames back when one could name savegames in PC-games)

  • Jonathan Nicholas
    Jonathan NicholasMar 21, 2018

    I used i, j, k for loops, and every other letter for other variables.

  • Angelika Cathor
    Angelika CathorMar 21, 2018

    My go-to word for any placeholder or bogus strings for tests is "banana". If I need more, I go with "apple" and "orange".

  • rendall
    rendallMar 21, 2018

    I don't do it. I will literally sit, flow-stopped, doing nothing, until I think of a good descriptive name.

  • Gunnar Gissel
    Gunnar GisselMar 21, 2018

    biff scuzz junk whatevs are a couple I keep returning to

    • Gunnar Gissel
      Gunnar GisselMar 21, 2018

      For projects, I pick island names from archipelagos I like.

  • Dimitris Pliakos
    Dimitris PliakosMar 21, 2018

    lala is my favorite!

    it's:

    • easy to remember (la two times)
    • extensible (lalalalala as long you want. I swear)
    • Hack-able (lala -> customization engine -> lolo | lili etc)

    For times that laziness pass the upper limit, a, b, c are fine too :p

  • Idan Arye
    Idan AryeMar 22, 2018
    head -c8 /dev/urandom
    
  • Scott Yeatts
    Scott YeattsMar 22, 2018

    Had a dev on a production app that I had to code review more times than I would have expected because he would use single letter variable names.

    a = someValue
    

    Made my heart sad every time I saw it.

  • Ross Henderson
    Ross HendersonMar 22, 2018

    If I don't have a descriptive name for something, I won't do it. My manager and I have sat down for over a day before trying to figure out what to call certain things. For us, since we're creating a department, it's important that anyone could walk into the job and know exactly what we mean.

  • Valentin Baca
    Valentin BacaMar 22, 2018

    For truly throwaway things, like tutorials or learning, here's my go-to placeholders:

    foo
    bar
    baz

    asdf
    zxcv
    lkj

Add comment