English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

Thread Tools
Old 23 July 2018, 12:25   #221
Code Kitten

Join Date: Aug 2015
Location: Montreal/Canadia
Age: 47
Posts: 1,091
Originally Posted by idrougge View Post
That's a totally pointless debate. Use whatever works for you.
Yes ... with a few caveats.

* What works when writing code is different than what works for reading code.
Oftentimes, shortcuts used to make code simpler to write go against readability and hinder maintainability in the long run.
I have suffered enough cases of "what the kitten is this code I wrote six months ago attempting to achieve?" that I have long made sure to make my code readable by future me rather than just writable by current me.
Coding is a never ending task, there are always enhancements to add or bugs to fix and being able to dive back into old code instantly is definitely a plus in these cases.

* Sharing code requires it to be readable with minimal effort.
When working as a team or simply when exchanging snippets of code, readability does help. Sure, one can adapt to others's writing style but if that happens frequently enough, the friction this creates becomes a pain. Making sure your way of writing code is readable by most people does help.

This said, having a style guide (code formatting, naming, etc.) is very different from a coding style (avoid globals like the plague, use functions not macros, optimize only after profiling and after features are implemented, decouple functionality, use DRY (Don't Repeat Yourself) for data, etc.).

And the former is much less important than the latter: not point in having a well formatted code base if the code is overly complicated, inefficient and slow.
ReadOnlyCat is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Neat idea - borderless WinUAE and Amiga wallpaper Bloodwych Amiga scene 8 13 January 2011 00:58
2000 - black screen... Chips good... PSU good... chiark support.Hardware 45 09 January 2009 06:41
Mitser Org'oeil, good platformer in old style s2325 Retrogaming General Discussion 2 23 November 2008 22:58
good retro racer in Lotus/Outrun style s2325 Retrogaming General Discussion 4 27 May 2007 21:57
very good new racing PC game in old style s2325 Retrogaming General Discussion 1 20 February 2007 23:34

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 15:07.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06019 seconds with 13 queries