tag:blogger.com,1999:blog-4818293967282096791.post4694608253288238537..comments2023-12-01T01:44:11.747-08:00Comments on Delphi Bar: 4 space indent vs 2 space indentUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4818293967282096791.post-75147614595203010862016-12-10T14:17:47.907-08:002016-12-10T14:17:47.907-08:00>don't try to fit your identation for all
...>don't try to fit your identation for all <br />>languages. be flexible.<br /><br />The problem is that today most people use more than one language. Just as all IDEs (except Delphi's) allow you to change all of the key bindings so that you can have a consistent set of keyboard commands across IDEs and applications, it can be useful to implement a consistent style guide across languages one uses (so long as it isn't radically at odds with established norms for that language).<br /><br />alcaldehttps://www.blogger.com/profile/14404682533930977783noreply@blogger.comtag:blogger.com,1999:blog-4818293967282096791.post-21647793502925200482016-12-08T00:41:41.122-08:002016-12-08T00:41:41.122-08:00The default now for C# and MS SQL Server is 4 spac...The default now for C# and MS SQL Server is 4 spaces, but is still 2 spaces for the Delphi source (System.Classes.pas). You say to be flexible and I agree that would be nice, however consider how you would write this in the coding standards for a company when you need to be consistent. Maybe the answer is to follow what the default is for the source, this would then also end the argument of where the 'begin' should be, one the same line (Egyptian style) or on a new line (as the source code). Richardhttps://www.blogger.com/profile/03817406301425251310noreply@blogger.comtag:blogger.com,1999:blog-4818293967282096791.post-87758205426770114662016-12-07T10:31:16.616-08:002016-12-07T10:31:16.616-08:00it was always 2, and should be 2 (IMHO). for other...it was always 2, and should be 2 (IMHO). for other languages (C#, Python, SQL, etc) their standards should apply. don't try to fit your identation for all languages. be flexible.Anonymousnoreply@blogger.com