D
D
Dima Zherebko2016-01-12 23:57:35
Java
Dima Zherebko, 2016-01-12 23:57:35

Is this style of writing code considered normal?

example 1
https://gist.github.com/kraken97/37678ac21d9e85fb55ae
example 2
https://gist.github.com/kraken97/7d4d35ce3c20ffe1bc10

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VZVZ, 2016-01-13
@VZVZ

It's an architecture, not a coding style. Style is where to put {, }, what tabs to do, etc.
Example 1: it is
better to untie the class with main from the MainTest class, in separate files.
In C#, by default, Main always goes in a separate Program.cs file.
This really makes it easier to dig into someone else's code - you know where to start.
Example 2:
in the case of the GUI - even more so.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question