all 10 comments

sorted by: hot top controversial new old
[–] 1 point 1 year ago*

For test data I like to use different movie or comic book names for different epics.

So when we start a new epic with multiple user stories I decide this will be all star wars, or matrix or donald duck characters, etc etc. The nice thing about it is when certain test data gives unexpected errors in other parts of application its easy to track where the test data is from.

  • source
  • [–] 1 point 1 year ago*

    const binOfStoRajj = {};

  • source
  • [–] 1 point 1 year ago

    Should be 213 area code, not 123

  • source
  • Life Pro Tip - Jenny's number also (usually) works at the grocery checkout line to get the advertised store member discount on items. Choose whichever area code you like, someone has likely set it up in the past.

  • source
  • [–] 8 points 1 year ago (2 children)

    Jim Bo Bob 555-867-5309 123 test Street, Testville Ca, 55555

    Is my goto

  • source
  • hideshow 2 child comments
  • [–] 7 points 1 year ago (1 child)

    From someone who does this for a living... vary your names and addresses. Less chance of collisions if your suite teardown fails to clean up properly. Depending on your needs, having a hard-coded unique name/address per test can be fine, or if you're using Python, there's a library called Faker that will generate ISO-valid test data. It's also a bit easier to see where a teardown failed if maybe an exception got swallowed.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 7 points 1 year ago (1 child)

    I once made test users who were all named John Smith in different languages. I learned that basically every name is a variant of John.

  • source
  • hideshow 1 child comment
  • [–] 3 points 1 year ago

    const jennyFromTheBlock

  • source
  • 27 comments in c/programmerhumor@lemmy.ml view that post
    [–] 7 points 1 year ago* (5 children)

    I think it's commendable to vertically align code. (Just not with tabs.) It makes it look neater.

  • source
  • hideshow 5 child comments
  • [–] 1 point 1 year ago (4 children)

    We underutilize tabs. https://nick-gravgaard.com/elastic-tabstops/

    (Don't mistake this as me saying everyone should start using tabs immediately. This would take a drastic overhaul of all textual displays and we're likely to never see such a thing, but it's still a cool concept.)

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 1 year ago* (last edited 1 year ago) (3 children)

    Good to see tabs' fundamental flaw was solved. I think I'll be switching to this.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago

    It's not "solved." Not trying to dive into yet another tabs vs. spaces argument. But this is just another example of how tabs can be pretty neat when they're interpreted in a specific way. But it's up to your editor, plugin, etc. to do so. Take the same text and throw it into an editor that doesn't use this same interpretation, and it immediately falls apart.

  • source
  • parent
  • [–] 26 points 1 year ago (11 children)

    the fact that these are strings instead of an object that is broken up by country code, area code, and number makes me irrationally angry.

  • source
  • hideshow 11 child comments
  • [–] 20 points 1 year ago (3 children)

    i think you think that telephone numbers are well-structured. they are not. they are messy. they do not fit a certain schematic.

    I recommend also the following topic: "people have names". https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/

    Names do not in general fit into the schematic "first name, last name"

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago* (last edited 1 year ago) (2 children)

    Is there not a "falsehoods programmers think about phone numbers" yet?

    Edit: And once again, I'm still confused about some of these. Do we need to expand unicode for names? It's supposed to be universal. WTF is up with 40?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago* (1 child)

    WTF is up with 40?

    People have names.

    I suppose that a counterexample to this might be Tibetan children, who get named at puberty, IIRC. Before that, they have no names. They are just referred to as "child" or "somebody's child".

    People’s names are all mapped in Unicode code points.

    I suppose a counterexample to that might be cultures which do not use script in general. Then, obviously, there's no Unicode characters for these non-existant glyphs.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Ah, so it dovetails with the whole "children get a name reasonably fast" thing. I was interpreting that as "ever, in a natural lifespan". My bad, haha.

    I suppose a counterexample to that might be cultures which do not use script in general. Then, obviously, there’s no Unicode characters for these non-existant glyphs.

    True, but there's little risk of a name being entered into a form without some kind of transcription.

  • source
  • parent
  • [–] 6 points 1 year ago

    Without monospacing....

  • source
  • [–] 6 points 1 year ago

    Not gonna lie, that vertical alignment is making my brain purr like a kitten

  • source
  • [–] 6 points 1 year ago (4 children)

    Junior devs don’t know Jenny.

  • source
  • hideshow 4 child comments
  • [–] 2 points 1 year ago (3 children)

    It's true. Who's Jenny, for the zoomers in the chat?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 year ago (2 children)

    It was a very popular song in the 80s. Jenny’s phone number was 867-5309.

    https://en.m.wikipedia.org/wiki/867-5309/Jenny

    If you’re ever at a store and need a frequent shopper card, this number with your local area code is usually registered.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago

    Tell me you are 40-50 without telling me

  • source
  • [–] 2 points 1 year ago

    Could have stopped the meme at the top text to be honest

  • source