Console example in wx/samples folder version 3.x vs 2.x

This forum is reserved for everything you want to talk about. It could be about programming, opinions, open source programs, development in general, or just cool stuff to share!
Post Reply
samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 335
Joined: Mon Oct 06, 2008 12:55 pm

Console example in wx/samples folder version 3.x vs 2.x

Post by samsam598 »

Greetings,

I recalled the console example in wx/samples folder of version 2.x is very huge in source code and it provides plenty of the library features to learn ,socket,threads,file manipulations,...,etc.However since version 3.x,this sample became very short and very less feature provided.

Is anybody know why such a change and any replacement sample over there.Really missing the old console sample,so much one can learn from it.
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
MinGW47/8.1/msys2-mingw12.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2/3.1 Unicode Mono Static gcc static build
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4043
Joined: Sun Jan 03, 2010 5:45 pm

Re: Console example in wx/samples folder version 3.x vs 2.x

Post by PB »

For example, sockets and threads are shown in their own samples. IMO, many of the current samples are still rather large and difficult to comprehend, particularly for beginners, for whom they should be most useful for.

I don't think file functions really need to be shown in the samples.

Moreover, wxWidgets developers generally recommend not using most non-GUI features of wxWidgets anymore (e.g., its thread support). Those are artifacts from the era when C++ did not reliable provide their implementation in the standard library.
samsam598
Super wx Problem Solver
Super wx Problem Solver
Posts: 335
Joined: Mon Oct 06, 2008 12:55 pm

Re: Console example in wx/samples folder version 3.x vs 2.x

Post by samsam598 »

Got it,thank you.

Based on my very limited C++ knowledge and learning experience,I felt myself wxWidgets very comfortable compare to other c++ library (including several very famous library),roughly for below reasons:
1. Very thin wrapper on some fundamental types/components/ OS APIs,which is easier to understand,to use;
2. Not so "wild & crazy " heavily using generics/templates(I mean those very deep & complicated features);
3. Not so wide & deep design patterns involved and used.This is not so easy to burn the brain.

So if the non-gui library is still as robust and workable and available as those GUIs,I will try to get familiar in one place(wx).Sorry for silly me.

Any good suggestions & advices & guideline would be much appreciated.
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
MinGW47/8.1/msys2-mingw12.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2/3.1 Unicode Mono Static gcc static build
Post Reply