home.social

#indentation — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #indentation, aggregated by home.social.

  1. Интеграция утилиты Artistic Style в скрипт сборки прошивки

    Есть утилита для автоматического выравнивания отступов в исходных кодах. Называется astyle.exe. В этом тексте я покажу, как работать с утилитой Astyle.

    habr.com/ru/articles/1004610/

    #Artistic_Style #astyle #codestyle #indent #indentation

  2. Интеграция утилиты Artistic Style в скрипт сборки прошивки

    Есть утилита для автоматического выравнивания отступов в исходных кодах. Называется astyle.exe. В этом тексте я покажу, как работать с утилитой Astyle.

    habr.com/ru/articles/1004610/

    #Artistic_Style #astyle #codestyle #indent #indentation

  3. Интеграция утилиты Artistic Style в скрипт сборки прошивки

    Есть утилита для автоматического выравнивания отступов в исходных кодах. Называется astyle.exe. В этом тексте я покажу, как работать с утилитой Astyle.

    habr.com/ru/articles/1004610/

    #Artistic_Style #astyle #codestyle #indent #indentation

  4. Интеграция утилиты Artistic Style в скрипт сборки прошивки

    Есть утилита для автоматического выравнивания отступов в исходных кодах. Называется astyle.exe. В этом тексте я покажу, как работать с утилитой Astyle.

    habr.com/ru/articles/1004610/

    #Artistic_Style #astyle #codestyle #indent #indentation

  5. I'm falling in love with this weird curly-braces style. I don't know what to call it. The indentation in 2 characters wide.

    void weirdy()
    ..{
    ....printf("I know I'm weird\n");
    }

    #C #indentation

  6. Yes..
    #Python s #indentation craze is annoying

    Had to fix a code renderer recently cause py will no longer work without its beloved "my precious" indents ..

    https://www.quora.com/What-are-the-reasons-for-people-complaining-about-Pythons-indentation-based-syntax-Is-there-a-more-modern-language-that-they-could-be-using-instead

    :neocat_think: :blobcatfacepalm:
    #repost •acws #acws
  7. I'm researching for a rewrite of our OData tutorials in our SAP Developer Centre and came across this example of an Atom feed (you know the connection, right?). I cannot unsee the absolute randomness of indentation here, so I thought it only right that I share it here. #XML #Indentation #Atom #OData

  8. What's a command-line tool to hard-wrap a file but preserve ?

    (No, I'd never hard-wrap anything willingly, but sometimes you have to bow to evil in order to achieve greater good.)

  9. What's a command-line tool to hard-wrap a file but preserve #indentation ?

    (No, I'd never hard-wrap anything willingly, but sometimes you have to bow to evil in order to achieve greater good.)

    #wrapping #linux #opensource #terminal

  10. What's a command-line tool to hard-wrap a file but preserve #indentation ?

    (No, I'd never hard-wrap anything willingly, but sometimes you have to bow to evil in order to achieve greater good.)

    #wrapping #linux #opensource #terminal

  11. What's a command-line tool to hard-wrap a file but preserve #indentation ?

    (No, I'd never hard-wrap anything willingly, but sometimes you have to bow to evil in order to achieve greater good.)

    #wrapping #linux #opensource #terminal

  12. What's a command-line tool to hard-wrap a file but preserve #indentation ?

    (No, I'd never hard-wrap anything willingly, but sometimes you have to bow to evil in order to achieve greater good.)

    #wrapping #linux #opensource #terminal

  13. I have #legacyCode with #indentation switching arbitrarily between 1 and 2 spaces
    I shit you not

    I do not love my job every single day.

  14. Judging a programming #language based on whether it uses #braces or #indentation for block scoping is like judging a dinner course by the shape of the pot it was cooked in.

    #python #dinner #dish #course #block #scope #syntax #programming

  15. @tth

    There is an ongoing underground global war where you have chose a side: either TAB or SPACE

    I was on the TABS side, for many years

    I cannot tell you how i have been caught, I have no memories left, no trace of my former life where TABS was my default indentation key, whatever the language

    I assure you the <Space> people are really friendly. They have not hurt me. I just no longer use the TAB key, that is the only difference

    #python #indentation

    Now, I have been told there is a growing schism between 2-space indentation and the 4-space indentation

    Given the galactically-known wisdom of the bipedal cousins of the chimpanzees, we can be sure they will bury the axes of war

    PEP8 advises to stand with space-4 as the prefered pythonic way of indenting

  16. Spicy take: If your software development team is using Prettier, you should set it to indent with tabs, not spaces.

    That makes it easy for everyone to set whatever indentation depth they want, and even adjust it if they feel the need. Someone who can pick out a 4-column indent better than 2 will have trouble reading that "indented with 2 spaces" stuff, but tabs let everyone coexist.

    #SoftwareDevelopment #coding #programming #webdev #code #Prettier #indentation

  17. @Catweazle

    That's very #strange. To me the #links are complete after #loading and the #indentation works for me too. Can I have a #personal #question? Can you please tell me what #reader you are using? Ideally and operating #system or at least one of the above. I'd be happy to #fix it, but I can't bring up the #errors. I've tried two readers at the same #time and it's #always been ok..

  18. If you could only indent your code with either tabs or spaces from now on, which would you prefer to use?

    Without considering the norms/preferences in specific languages, which one do you personally prefer to work with?

    Reply with your reasoning if you'd like - please keep the discussion civil though 😅

    #tabs #spaces #indentation #formatting #code

  19. @mattwilcox Oof, this hits hard, because my interest in #accessibility completely agrees with you, but this is such an unpopular opinion that making such a transition will be a long and tricky process (not to say it's not worthwhile), and I'll have to work out how to configure various linters and code formatters to do the right thing.
    Have you found code formatters can usually be configured to use tabs without too much trouble?
    (In particular, I've not yet worked out if I can make autopep8 or similar go against its grain and *not* just do 4-space indents.)
    #indentation #tabs #spaces #tabsOverSpaces

  20. Do you prefer your lists indented or not?

    ```
    a:
    - foo
    - bar
    b:
    - foo
    - bar
    ```

    (please boost to gather more replies to the poll!)

  21. I was once a strong believer in spaces over tabs for indentation. I'd map my tab key to 4 spaces. I had vim auto-convert tab characters to 4 spaces, etc.

    Then it was brought to my attention how awful spaces are when it comes to accessibility for those with visual impairments: adamtuttle.codes/blog/2021/tab

    I now prefer tab indentation over spaces with the exception of languages that require spaces for indents.

    #Disabilities #Programming #Indentation #Accessibility

  22. TIL: threaded conversations on Mastodon web are not rendered in any way that makes sense. #indentation

  23. For code #indentation, I consider tabs to be superior to spaces. They're useful, elegant and just make sense.
    Still, I seem to use spaces in my projects. Why?

    Certainly due to useful, elegant, and sensible code having no business in my projects

  24. Suis-je le seul à beaucoup trop galérer à comprendre comment fonctionne l'#indentation sur #vim ? 🤔

  25. @mattwilcox Oof, this hits hard, because my interest in #accessibility completely agrees with you, but this is such an unpopular opinion that making such a transition will be a long and tricky process (not to say it's not worthwhile), and I'll have to work out how to configure various linters and code formatters to do the right thing.
    Have you found code formatters can usually be configured to use tabs without too much trouble?
    (In particular, I've not yet worked out if I can make autopep8 or similar go against its grain and *not* just do 4-space indents.)
    #indentation #tabs #spaces #tabsOverSpaces

  26. @mattwilcox Oof, this hits hard, because my interest in #accessibility completely agrees with you, but this is such an unpopular opinion that making such a transition will be a long and tricky process (not to say it's not worthwhile), and I'll have to work out how to configure various linters and code formatters to do the right thing.
    Have you found code formatters can usually be configured to use tabs without too much trouble?
    (In particular, I've not yet worked out if I can make autopep8 or similar go against its grain and *not* just do 4-space indents.)
    #indentation #tabs #spaces #tabsOverSpaces

  27. @mattwilcox Oof, this hits hard, because my interest in #accessibility completely agrees with you, but this is such an unpopular opinion that making such a transition will be a long and tricky process (not to say it's not worthwhile), and I'll have to work out how to configure various linters and code formatters to do the right thing.
    Have you found code formatters can usually be configured to use tabs without too much trouble?
    (In particular, I've not yet worked out if I can make autopep8 or similar go against its grain and *not* just do 4-space indents.)
    #indentation #tabs #spaces #tabsOverSpaces

  28. @mattwilcox Oof, this hits hard, because my interest in #accessibility completely agrees with you, but this is such an unpopular opinion that making such a transition will be a long and tricky process (not to say it's not worthwhile), and I'll have to work out how to configure various linters and code formatters to do the right thing.
    Have you found code formatters can usually be configured to use tabs without too much trouble?
    (In particular, I've not yet worked out if I can make autopep8 or similar go against its grain and *not* just do 4-space indents.)
    #indentation #tabs #spaces #tabsOverSpaces