Skip to content
  • Home Home Home, current page.
  • Moments Moments Moments, current page.

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
EmilyGorcenski's profile
Emily G
Emily G
Emily G
Verified account
@EmilyGorcenski

Tweets

Emily GVerified account

@EmilyGorcenski

Lead Data Scientist, activist, survivor. Was actually assaulted by an actual right-wing terrorist. Opinions belong only to me, especially the bad ones. she/they

Deep Space Nine
emilygorcenski.com
Joined June 2013

Tweets

  • © 2018 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. Emily G‏Verified account @EmilyGorcenski Jun 17

      Hot take: python is too verbose to have an 80-character line length standard while retaining the semantic readibility it promotes as a feature.

      8 replies 7 retweets 83 likes
      Show this thread
    2. Emily G‏Verified account @EmilyGorcenski Jun 17

      All too often I look at code and just think "where am I even suppose to break this line???"

      1 reply 0 retweets 14 likes
      Show this thread
      Emily G‏Verified account @EmilyGorcenski Jun 17

      This line is 95 characters. I can break at the comma and it comes down to 75. But 75 characters to do some really basic stuff. Maybe I can simplify the code, idk. Not the point. initial_chars = sorted(set([n[0].upper() for n in df['street'].dropna()]), key=locale.strxfrm)

      4:35 AM - 17 Jun 2018
      • 1 Retweet
      • 9 Likes
      • Fenneladon Privacyasaurus Aurorateratops 🦕🕵 Andrew Deloucas Rongeur Jim smythe b(oo) 。.*.(っ ᐛ )っ 🔪 ($_$)ノ🎩 Peter Barfuss 𒀱 jasmine 'data goth' mithani Continuous Devilry
      10 replies 1 retweet 9 likes
        1. Emily G‏Verified account @EmilyGorcenski Jun 17

          The purely-pandas version of doing this is no better, and is actually worse, as I can't specify the locale to sort characters properly.

          2 replies 0 retweets 6 likes
          Show this thread
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. New conversation
        2. Paul Ford‏ @ftrain Jun 17
          Replying to @EmilyGorcenski

          Sometimes it can be a very soothing task that helps me refactor, sometimes it makes me yearn for a lisplike where everything is moving in one direction. I do a lot of assignment for readability. Culturally in 2018 python is pseudo-functional but syntactically it's imperative.

          1 reply 0 retweets 3 likes
        3. Emily G‏Verified account @EmilyGorcenski Jun 17
          Replying to @ftrain

          I write python like a functional programmer and I can't decide if that makes me terrible or not

          2 replies 0 retweets 3 likes
        4. Emily G‏Verified account @EmilyGorcenski Jun 17
          Replying to @EmilyGorcenski @ftrain

          Actually I write it like a Rubyist who mostly wrote c#.

          0 replies 0 retweets 3 likes
        5. End of conversation
        1. New conversation
        2. Luca Soldaini‏ @soldni Jun 17
          Replying to @EmilyGorcenski

          I’d break that in 4 (!!!) lines (new line after “sorted(“, new line after the first comma, new line before the last parenthesis), but you’re damn right that the 80 cols is just ridiculous, especially on the modern, large screens we have nowadays.

          1 reply 0 retweets 1 like
        3. Emily G‏Verified account @EmilyGorcenski Jun 17
          Replying to @soldni

          According to PEP-8 and the python specs, two of those line breaks wouldn't lead to a reduction in line length, just readability.

          2 replies 0 retweets 0 likes
        4. Emily G‏Verified account @EmilyGorcenski Jun 17
          Replying to @EmilyGorcenski @soldni

          Well, I suppose delegating the final parents to a new line would save one char :P

          0 replies 0 retweets 0 likes
        5. End of conversation
        1. New conversation
        2. @egrasmed@toot.thoughtworks.com‏ @emilyagras Jun 17
          Replying to @EmilyGorcenski

          Maybe I’ve just been writing too much clojure, but can you turn that list comprehension into a named function?

          1 reply 0 retweets 0 likes
        3. Emily G‏Verified account @EmilyGorcenski Jun 17
          Replying to @emilyagras

          Probably, but it's a marginal tradeoff really. And stylistically, nothing is really great and all this exists only because pandas' sorting method is less general than builtin methods, so we have a smorgasboard of style concepts happening here.

          1 reply 0 retweets 0 likes
        4. @egrasmed@toot.thoughtworks.com‏ @emilyagras Jun 17
          Replying to @EmilyGorcenski

          For whatever reason I thought this would need to be a function but this can just be a named variable. I think making the list comprehension a named variable improves readability anyway, and is better than just going to 120 characters or whatever.

          0 replies 0 retweets 1 like
        5. End of conversation
        1. e. hashman  👻‏ @ehashdn Jun 17
          Replying to @EmilyGorcenski

          have you seen this talk from PyCon 2015? It touches on this and the distractions it causes, I really like it https://youtube.com/watch?v=wf-BqAjZb8M …

          0 replies 1 retweet 3 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. Dave  🦔‏ @_dmh Jun 17
          Replying to @EmilyGorcenski

          I think this is why Pycharm defaults to nagging you at 120 chars instead of 80, despite Pep8

          0 replies 0 retweets 1 like
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. Jim smythe‏ @xavierjulep Jun 17
          Replying to @EmilyGorcenski

          use 1 letter var names lol

          0 replies 0 retweets 1 like
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. JoYo‏ @joyo_fresh Jun 17
          Replying to @EmilyGorcenski

          I think your python is beautiful. Dont change it

          0 replies 0 retweets 0 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. Greg Jones‏ @gregjoneskeepup Jun 17
          Replying to @EmilyGorcenski

          I break generator expressions at "for" if necessary and at "if" almost as a rule.

          0 replies 0 retweets 0 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo
        1. The scary furnace downstairs with the CO leak ☭‏ @JohnnyCommunist Jun 17
          Replying to @EmilyGorcenski

          Python is all over the road, but better than perl.

          0 replies 0 retweets 0 likes
          Thanks. Twitter will use this to make your timeline better. Undo
          Undo

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2018 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Cookies
        • Ads info