home.social

#snake_case — Public Fediverse posts

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

fetched live
  1. Эта музыка будет вечной: микросервисы против монолита, camelCase против snake_case и другие неугасающие споры в ИТ

    В любой сфере деятельности найдутся неоднозначные решения, время от времени заставляющие полыхнуть ту или иную часть интернета. Разумеется, такие «вечнозеленые споры» есть и в ИТ, и сегодня мы в

    habr.com/ru/companies/beeline_

    #beeline_cloud #итспоры #иттренды #camelCase #snake_case #low_code #микросервисы

  2. [Перевод] PEP 8 как религия: почему Python сам не соблюдает свои же правила

    Команда Python for Devs подготовила перевод статьи о PEP 8. Мысль проста: споры о стиле в Python часто сводятся к одному — snake_case против camelCase. Даже сам Python не следует своим же правилам. Так стоит ли вообще относиться к PEP 8 как к догме?

    habr.com/ru/articles/953412/

    #Python #PEP8 #стиль_кода #читаемость #snake_case #camelCase #закон_Свейгарта #правила #разработчики #open_source

  3. ok since hashtags are actually useful around here

    and this place seems to have a culture of accessibility

    please remember to camelCase or PascalCase your tags to make them human, and screen reader, readable

    more info: freecodecamp.org/news/snake-ca

    #camelCase #PascalCase #kebab-case (hashtag kebab, dash case, lol. kebab case does not work for hashtags) #snake_case #accessibility #AltText

  4. #TIL that #SnakeCase is a less frequently used tagging scheme on the #fediverse.

    This could be due to that some services break their internal tagging schema, e.g. #Minds doesn't work well with #KebabCase.

    Or it could be due to the laziness of the users and subjectively arguing that #snake_case doesn't add to the readability of #PascalCase or #camelCase tags.

    In return the argument is that snake_case can add value if the tag has a not obvious word break, especially if the tag is completely written in lowercase or UPPERCASE.

    Or if the the underscore replaces a different character other than space like slash, pipe, hyphen, etc.

    And in AReallyLongTag / a_really_long_tag it could aid readability.

    Thus if one wants grouping and discoverability of posts while creating a brand identity consider using snake_case tags.

    #mastodon #ActivityPub #friendica #pixelfed

  5. Рецепты TypeScript: перевод ключей объекта в camelCase

    Всем привет! С вами снова Костя Логиновских — ведущий разработчик Смотреть рецепт

    habr.com/ru/companies/cloud_ru

    #typescript #camelcase #snake_case #infer

  6. @foon @purinkle Does #snake_case also address accessibility concerns while maintaining the lowercase aesthetic?

  7. @weirdwriter

    #Inclusion and #Programming

    #snake_case,
    #kebap-case,
    #camelCase, and
    #PascalCase

    (1/n)

    " I wish all apps made all hashtags pascal case! "
    Thanks for sharing this introspective, Robert.
    Me, too. In fact, it makes long hashtags more easily readable for "sighted people" as well. ;) It is quite a bit more work, alas, in particular, as my apps try suggesting (and auto-replacing) previously used #Hashtags with all small letters, which I then have to...

    @MoiraEve @elan @jamesbritt

  8. @0x00string @inherentlee R has a package called "janitor" that, among other things, can convert random strings in the column headers of a table to well-formed #snake_case strings.

    cran.r-project.org/web/package

    #rstats

  9. Testing weird #hashtags for the Bridgy bridge 🌉 #snake_case #kebab-case #ŻółtaŁódźPodwodna #ДобрийВечір #trolo🧌lolo #🦀 #ILoveJavascript❤️🤪
  10. Hey #dotnet friends using System.Text.Json ✋

    Has anyone managed to create code that uses source generators but for snake_case naming policy?

    I notice I can not pass anywhere the serializer options when I specify using the source generator, and then I can not pass the snake_case naming policy?

    Any help please, repost for reach?

    #csharp #aspnet #aspdotnet #serialization #json #snake_case #jsonserializer #sourcegenerators #systemtextjson

  11. One of my frailties, as a #programmer, is my low tolerance for the #snake_case, despite having programmed in C for more than four decades. Oddly, when I'm using LISP, I have no qualms with its #kebab-case! But my preferred style has always been Smalltalk's #camelCase.

    Nim is the only modern language that I know that automatically converts between camel case and snake case, allowing the programmer to use whichever style he fancies.

    Language designers should take note.

  12. @ChristosArgyrop

    The case of a variable name `Num_sequences` is a firing offence, to start with... 😜

    #snake_case #SnakeCase #CamelCase #camel_case

  13. 2/4
    i.e. your post won't show up in a search of a hashtag that wasn't in the original post. So if you realise there are some relevant hashtags you should add to a post, then you will actually need to make that post again from scratch in order for it to show up in searches!

    In regards to #readability #accessibility you should always use #PascalCase (every word starts with a capital) or #camelCase (first word lower-case, then capitals for subsequent words). Don't use #snake_case (underscores)...

  14. @sundew @meredith

    #snake_case can work but will be treated differently from #snakeCase because it's a different #. I think. Let's see!

    #Test_Test

    ETA: yup # TestTest did not find this post.

  15. @Texan_Reverend fun fact #snake_case (using underscores instead of spaces) is not used in hashtags but in programing and is called that bc of the programming language python. It's my least favourite all one word convention T-T

  16. What is the difference between PascalCase, camelCase, Kebab-case, and Snake_case?

    It all started in programming all the way back in the 90s, but it is very useful in today's world of #hashtags, most specially in the #fediverse.

    Let's go over each.
    1. #PascalCase. First letter of every word should be capitalised.

    e.g. #ThisIsYetAnotherExample

    2. #camelCase. First letter of the first word should be in lowercase. Every other word after should be capitalised.

    e.g. #thisIsAnExample

    3. #Kebab-case. Words are separated with a hyphen.

    e.g. #this-Is-an-Example

    4. #Snake_case. Words are separated with an underscore.

    e.g. #This_is_An_example

    ---

    Most #SNS software and apps will not convert Snake_case and Kebab-case hashtags into an active link, so these two are rarely used.

    PascalCase is the preferred format as it makes it very easy to read hashtags with multiple words. A camelCase #hashtag is fine as well.

    Well, that's as short as it can be.

  17. @bignose also says hi! 🐍 (though hopefully staying out of it?)

  18. I've seen both recommended on here -- which is best for #accessibility on Mastodon hashtags, #camelCase or #PascalCase ? Probably not #snake_case

  19. @thriveth @feditips It's called Camel Case. Well, in your example Pascal Case to be precise. You could also do snake_case but that it just weird (to me).

    #caleCase #PascalCase #snake_case