Hehe yeah I love nice formatting :)

You don't need to convince me , I prefer coding dynamically

Ironically enough is the static that is not a real thing anymore. I am
coding C++ and Unreal uses templates for pretty much everything. Templates
the equivalent of dynamic types, kinda.

However when performance is concerned anything dynamic must go, which in
C++ means templates and smart pointers. One for dynamic types and the other
for dynamic memory management.

Generally however templates and generics are super popular and coders are
frowned upon if they do not use them because falling back to pure static
coding is considered bad coding practice.

C++ is on route of becoming even more hybrid, the new hot potato being
modules a replacement to header files , similar to Python modules. It was
to be included in the next iteration of C++ but was postponed. Probably
will get included in the one after the next. In Python a module is a source
code file that is treated as an object. So a global variable is equivalent
to class variable, the source file being the class. If the module is a
package (file folder) then it's class variables are the sub modules.

Nowadays people use static languages not because they want to but because
the have to for legacy code and performance reasons.

Still modern projects usually mix dynamic with static languages. The static
plays the role of the kernel providing high performance the dynamic the
role of easy to use , beginner friendly, scripting interface.

Java and C# support out of the box any dynamic language out there. So the
lines nowadays are extremely blurry.

It's 2017 , great time to live in when you can choose among so many
choices.
On Fri, 31 Mar 2017 at 21:35, Sven Van Caekenberghe <[email protected]> wrote:

>
> > On 31 Mar 2017, at 19:38, Dimitris Chloupis <[email protected]>
> wrote:
> >
> >
> > On Fri, 31 Mar 2017 at 19:13, Sven Van Caekenberghe <[email protected]>
> wrote:
> > if you copy/paste something you should give a reference
> >
> >
> > I did not copy paste anything, 100 % mine. What part you think it's copy
> ?
>
> Ah, sorry then, the formatting seemed to suggest it came from somewhere
> else.
>
> BTW, I don't think the hybrid part is a real thing.
>
> Although I understand that static typed languages like C, C++, Java and so
> many others have their place and use, people in those languages spend an
> awful amount of time and code dealing with the types they love so much. The
> modern static languages with all their magic are even worse. And even in a
> nice static typed program that compiles with no warnings, there are still
> dynamic errors lurking everywhere. The world cannot be defined in a static
> way.
>
> The dynamic type errors that you get in Pharo during development are 95%
> plain logic errors, once you fix those and write some unit tests, a Pharo
> program is just as stable and reliable as anything else that is well
> written, tested and debugged.
>
> And I love Igor's "Don't ask, tell" idea - right on target.
>
> Anyway, that is my personal opinion, I don't want to convince you.
>
> Sven
>

Reply via email to