Интеграция утилиты Artistic Style в скрипт сборки прошивки
Есть утилита для автоматического выравнивания отступов в исходных кодах. Называется astyle.exe. В этом тексте я покажу, как работать с утилитой Astyle.
Интеграция утилиты Artistic Style в скрипт сборки прошивки
Есть утилита для автоматического выравнивания отступов в исходных кодах. Называется astyle.exe. В этом тексте я покажу, как работать с утилитой Astyle.
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");
}
Use a backslash to add indentation or your code errors.
#Development #Techniques
Responsive ‘tab-size’ · Code indentation meets responsive design https://ilo.im/168dkg
_____
#Tabs #Indentation #Code #Content #Blog #ResponsiveDesign #WebDesign #WebDev #Frontend #CSS
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
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.)
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.
This is what I imagine people's code looks like when they complain about the forced indentation in #python.
And yes, this code is correct.
#programming #c #formatting #indentation #tabsvsspaces #whitespace #developers #developerexperience #debugging #fail #goodluck
#Development #Pitfalls
Lessons from plain text · “Plain text might not always be as straightforward as it appears.” https://ilo.im/160erg
_____
#Programming #Tools #TextEditor #CodeEditor #Newline #Indentation #Wrapping #WebDev #Frontend #Backend
Periodic reminder that fuck YAML
Do not try to mandate what indentation we use. Last I checked this config file is OURS, not yours, YAML spec writers.
@krutonium also #Tabs don't fuck with other peoples' #IDE and correlate with #indentation depth easily.
https://www.youtube.com/watch?v=V7PLxL8jIl8
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
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
Coding indentation styles. I'm a K&R man, myself.
https://en.wikipedia.org/wiki/Indentation_style
If you are a Horstmann person, please unfollow.
#developers #programming #coding #dev #indentation #format #coders
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
Googled "#vim heuristic #indentation", wasn't disappointed. 🤯
Dynamic Tabbing For Automatic Indentation With The Layout Rule
(1998) : Lapalme, Guy
DOI: https://doi.org/10.1017/s0956796898003098
#emacs #indentation #haskell #my_bibtex
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..
Historic #ProgrammingStyle question: I remember that more than a decade ago everyone (i know of) exclusively used four spaces for #indentation. Now I see almost-exclusively two spaces for indentation. When did this switch start? What's the trend?
Can someone scrape dotfiles repos on github and their histories and plot that change in people's vim/emacs configs?
I suspect that it's correlated with the popularity of modern webdev brought by its Mariana-deep <div> nesting.