Table and Query Classes good or unnecessary?
Hey Clifford,
On 20/3/18 11:19 am, Clifford Ilkay wrote:
>
> Every single language that isn’t Omnis or has an IDE like Omnis requires “a
> whole set of tools and helpers to make your life easier”. If you’re writing
> C, C++, Java, C#, Go, Dart, JavaScript, PHP, Ruby, whatever, without some
> setup of your environment, and especially if you’re working on a team, a
> style guide and a linter, you’re going to annoy your teammates.
True, though just like with Omnis, many development environments come as
a completely package. XCode or Visual Studio, while both incredibly
bloated give you the tools you need. Its a flawed argument though and
you are correct, with Python all you get is the compiler, and you pick
the toolset you wish to use on top of that. The same applies to me
writing C/C++ code. I actually avoid XCode and Visual Studio like the
plague preferring to use tools like Sublime.
>
> function mySuperDuperFunction()
> {
> // do all the things
> }
MY EYES, MY EYES! Yes, this is just one of the indentation horrors
Microsoft has unleached on us and they apply it across the board, C,
C++, C#, VB,….
But at least they offer it as the default option, they do not enforce
it. If you don’t like it, layout your code the way that works for you
and your team and C/C++ gives you immense freedom here.
Unlike python where changing the layout of your code to something that
looks readable to you and your team BREAKS YOUR CODE!
Seriously, how can you judge Microsoft for changing a code style but
defend Python for forcing one on you?
> If the second case is idiomatic in the Microsoft orbit, I’d do that and get
> used to it.
I don’t know about that. I think Microsoft would like it to be but
judging from the code I encounter many C/C++ programmers have told
Microsoft to take a hike. Especially those who program cross platform
where longer established styles exist and people have the same reaction
to Microsoft wanting things differently as I do…
But I guess those who start with Visual Studio and don’t know any
better, learn what the IDE by default makes them do, in those circles
this coding style does take the upper hand unfortunately…
> By the way, Git isn’t the only revision control system that has pre and
> post commit hooks so you don’t have to use Git to correct line endings,
> convert tabs to spaces, etc. I’ve been doing that for more than 15 years
> starting with Subversion, then Mercurial, now Git. I tolerate Git despite
> its ugliness. I prefer Mercurial but Git seems to have won over the
> majority of developers mostly because of the network effect.
Yeah I’m definitely loving Git but the formatting hooks on commit for me
are mostly a final check and to make sure cross platform development
doesn’t bite us. I don’t use it for formatting as I’m working, I see it
as a source control tool, not a fix my code tool.
Cheers,
Bas
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com