Skip to content
By using Twitter’s services you agree to our Cookies Use. We and our partners operate globally and use cookies, including for analytics, personalisation, and ads.
  • Home Home Home, current page.
  • About

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
the_sttts's profile
Stefan Schimanski
Stefan Schimanski
Stefan Schimanski
@the_sttts

Tweets

Stefan Schimanski

@the_sttts

Dev @ Red Hat, Kubernetes, OpenSource, logician, Lean & ToC, restless, hungry & foolish, þetta reddast, code @ http://github.com/sttts  – Opinions & tweets are my own.

Brüssel, Belgien
sttts.io
Joined June 2007

Tweets

  • © 2019 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.

    Stefan Schimanski‏ @the_sttts 21 Mar 2018

    Today in Go land.pic.twitter.com/XFQfN9CpIM

    2:00 AM - 21 Mar 2018
    • 162 Retweets
    • 433 Likes
    • DON'T-GET-ME-RIGHT 变态鸭韭菜籽 Edgar Barbosa IT proletarian TOMAT ok ok 23slider skappa Alexei Tymoshenko
    27 replies 162 retweets 433 likes
      1. Stefan Schimanski‏ @the_sttts 21 Mar 2018

        It's unfortunate that this does not work: http://bit.ly/2DIT4PK 

        3 replies 0 retweets 3 likes
        Show this thread
        Thanks. Twitter will use this to make your timeline better. Undo
        Undo
      1. New conversation
      2. francesc‏ @francesc 21 Mar 2018
        Replying to @the_sttts

        not sure this is Go's fault ... replace nil by None and you got some Python :)

        3 replies 0 retweets 20 likes
      3. Stefan Schimanski‏ @the_sttts 21 Mar 2018
        Replying to @francesc

        Many other languages would have a sum type to express the intent better: Either[GiantTuple,Error]

        3 replies 0 retweets 8 likes
      4. francesc‏ @francesc 21 Mar 2018
        Replying to @the_sttts

        Sure, Rust and Haskell do this very nicely. But you can still abuse those languages and writing non idiomatic code. That doesn't say much about a language.

        3 replies 0 retweets 11 likes
      5. Stefan Schimanski‏ @the_sttts 21 Mar 2018
        Replying to @francesc

        No question about that. And actually the real point of critic is the repeated error handling if clause. Not the many nils. The later become awkward due to the former.

        1 reply 0 retweets 4 likes
      6. James Tucker‏ @raggi 21 Mar 2018
        Replying to @the_sttts @francesc

        for _, applyer := range [] interface {Apply to(...)}{ Thing, thing, thing } { if err := applyer(config) ....

        1 reply 0 retweets 0 likes
      7. Stefan Schimanski‏ @the_sttts 22 Mar 2018
        Replying to @raggi @francesc

        Nope, ApplyTo signatures (can) differ.

        1 reply 0 retweets 0 likes
      8. James Tucker‏ @raggi 22 Mar 2018
        Replying to @the_sttts @francesc

        Exactly none in your image do

        1 reply 0 retweets 0 likes
      9. Stefan Schimanski‏ @the_sttts 22 Mar 2018
        Replying to @raggi @francesc

        Yes, I know. Here is one with those different signatures.pic.twitter.com/ZFM8go03ur

        0 replies 0 retweets 1 like
      10. End of conversation
      1. New conversation
      2. Michal Fojtik‏ @mfojtik 21 Mar 2018
        Replying to @the_sttts

        time to convert the return value to a struct? ;-)

        1 reply 0 retweets 12 likes
      3. Stefan Schimanski‏ @the_sttts 21 Mar 2018
        Replying to @mfojtik

        With 80 columns as the limit we can still add some more nils :D

        2 replies 0 retweets 25 likes
      4. Michal Fojtik‏ @mfojtik 21 Mar 2018
        Replying to @the_sttts

        reminds me the publisher bot scripts input arguments :-) we can always add one more.

        1 reply 0 retweets 0 likes
      5. Stefan Schimanski‏ @the_sttts 21 Mar 2018
        Replying to @mfojtik

        Induction: if you can have n arguments, you can have n+1.

        1 reply 0 retweets 11 likes
      6. Yassine Tijani‏ @yassinetj 21 Mar 2018
        Replying to @the_sttts @mfojtik

        pic.twitter.com/oizBwNznQ8

        0 replies 0 retweets 14 likes
      7. End of conversation
      1. New conversation
      2. R‏ @FourPillTherapy 22 Mar 2018
        Replying to @the_sttts

        This is horrible. Is that how things are done in Go?

        1 reply 0 retweets 0 likes
      3. Kamil Kisiel‏ @kisielk 22 Mar 2018
        Replying to @FourPillTherapy @the_sttts

        No. This is just someone's shitty API design.

        1 reply 0 retweets 4 likes
      4. Stefan Schimanski‏ @the_sttts 22 Mar 2018
        Replying to @kisielk @FourPillTherapy

        Nope, it's no API. internal plumbing code.

        1 reply 0 retweets 0 likes
      5. Kamil Kisiel‏ @kisielk 22 Mar 2018
        Replying to @the_sttts @FourPillTherapy

        I was referring to the API / interface of that particular function. Having 7 return values is a real bad code smell in any language.

        3 replies 0 retweets 3 likes
      6. Stefan Schimanski‏ @the_sttts 22 Mar 2018
        Replying to @kisielk @FourPillTherapy

        Agree.

        1 reply 0 retweets 2 likes
      7. David‏ @RizomeEs 23 Mar 2018
        Replying to @the_sttts @kisielk @FourPillTherapy

        I don't get your point. If you agree on «having 7 return values in a function is a code smell case» Why are you ranting about that code in Go?

        1 reply 0 retweets 1 like
      8. Stefan Schimanski‏ @the_sttts 24 Mar 2018
        Replying to @RizomeEs @kisielk @FourPillTherapy

        I never ranted. I observed what happens with code that is iteratively extended by many authors following the pre-existing code pattern. The result smells, but it‘s superficially ugly only. It‘s super uniform. Uniformity is beauty. What is more important?

        1 reply 0 retweets 0 likes
      9. David‏ @RizomeEs 24 Mar 2018
        Replying to @the_sttts @kisielk @FourPillTherapy

        Most probably y misunderstood your initial tweet, because I thought that saying «today in go», you meant «it only happens in go» But yes, you're right. When people adding more and more functionalities don't take their time to think, it happens situations like the one you showed.

        1 reply 0 retweets 0 likes
      10. 2 more replies

    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

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