Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
CWins48117y@Divisionbyzero
I'm using vs and c#, so for me there are roslyn analyzers for style and technical mistakes. They tell me "hey, your naming here sucks, you didn't check that parameter for null and that var is never used" and a lot more.
After some time with those tools, i do it right as a habit.
I can't tell you what's equivalent for your technologies, but others here can. -
Pick a style and stick with it! Keep correcting yourself whenever you see the naming mistake and soon you'll find yourself only using that one type of naming scheme.
-
@tisButABug yesterday I did some javascript in which I started all variables with a dollar sign because Ive been doing quite a lot of PHP lately.
-
@Divisionbyzero it was indeed when I noticed, first thing I did was redo everything.
-
Wombat105827y@Codex404 gladly I'm not that inconsistent. 😅
I mostly have problems when switching languages, too. I write other PHP than I write JS. And actually I stick more to the "rules" in frontend. Cause people could see it... 😅
Related Rants
-
darkMatter10*In Office Coworker raises his head, looks at boss: "I'm leaving". Boss raises head looks at coworker: "Ok". ...
-
hidd3ntrack1Secretary of the IT department stated in a meeting that she was "overqualified to babysit a group of 40 grown-...
-
TopsyKretts93 years ago..... *lunch break. In a table with 2 other co-workers* Me: "I am going to quit today!" Co-worke...
When it comes to the indentation or look I am fully consistent.
But when it comes to naming I am inconsistent like a crack whore telling she's clean.
Camelcase, underscores inconsistent variable and function names. I use all of them within a single file. On some days I even switch languages.
I truly am miserable in code consistency. Is there any good advice to keep the code consistent?
rant
programming looser
wk101
confessions