473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Code review of cross platform code sample

I've written an application which is intended to act as a code sample
"how to code applications with a well designed GUI". Since this code is
intended to also act as a sample for beginners it should not contain any
quirks or unusual constructs or be misleading or else. It should be as
clean and as readable as possible. It simple should be how you would
code.

I therefore ask for a public code review. Just criticize, make
annotations, suggest improvements or state if you like something very
well. Keep in mind the code is still beta but it runs fine on Windows
and fairly well on Linux/GTK1.

You can look directly at the code through ViewCVS starting at
"http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxguide/wxGuide/editor/s
rc/app.cpp?rev=1.108&content-type=text/vnd.viewcvs-markup" or get the
complete source from
"http://prdownloads.sourceforge.net/wxguide/editor.tar.gz?download" (ca.
80kB) or download the app from
"http://wxguide.sourceforge.net/indexedit.html".

If you want to know more about the purpose go to the URL in the
signature.

O. Wyss

--
See "http://wxguide.sourceforge.net/" for ideas how to design your app.
Jul 19 '05 #1
5 2065
On Sat, 06 Sep 2003 11:43:27 +0200, Otto Wyss wrote:
I've written an application which is intended to act as a code sample
"how to code applications with a well designed GUI". Since this code is
intended to also act as a sample for beginners it should not contain any
quirks or unusual constructs or be misleading or else. It should be as
clean and as readable as possible. It simple should be how you would
code.

I therefore ask for a public code review. Just criticize, make
annotations, suggest improvements or state if you like something very
well. Keep in mind the code is still beta but it runs fine on Windows
and fairly well on Linux/GTK1.

You can look directly at the code through ViewCVS starting at
"http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxguide/wxGuide/editor/s
rc/app.cpp?rev=1.108&content-type=text/vnd.viewcvs-markup" or get the
complete source from
"http://prdownloads.sourceforge.net/wxguide/editor.tar.gz?download" (ca.
80kB) or download the app from
"http://wxguide.sourceforge.net/indexedit.html".

If you want to know more about the purpose go to the URL in the
signature.


Your code does not support the official release of wxWindows (which is
version 2.4.x). Your project requires version 2.5.x, which isn't even
listed on the wxWindows download page.

Josh
Jul 19 '05 #2
On Sat, 06 Sep 2003 12:09:57 -0400, Josh Sebastian wrote:
On Sat, 06 Sep 2003 11:43:27 +0200, Otto Wyss wrote:
I therefore ask for a public code review. Just criticize, make
annotations, suggest improvements or state if you like something very
well. Keep in mind the code is still beta but it runs fine on Windows
and fairly well on Linux/GTK1.

You can look directly at the code through ViewCVS starting at
"http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wxguide/wxGuide/editor/s
rc/app.cpp?rev=1.108&content-type=text/vnd.viewcvs-markup" or get the
complete source from
"http://prdownloads.sourceforge.net/wxguide/editor.tar.gz?download" (ca.
80kB) or download the app from
"http://wxguide.sourceforge.net/indexedit.html".

If you want to know more about the purpose go to the URL in the
signature.


Your code does not support the official release of wxWindows (which is
version 2.4.x). Your project requires version 2.5.x, which isn't even
listed on the wxWindows download page.


While I agree with your sentiments, I want to defend the OP. The fact
of the matter is, if you develop using wxWindows you pretty much have
to use CVS head. This is because none of the developers is interested
in fixing bugs or even talking about workarounds for bugs unless they
have been demonstrated in CVS head. All requests for help with problems
with the 2.4.x series vanish into a black hole.
Jul 19 '05 #3
Josh Sebastian <cu****@cox.net> wrote:
Your code does not support the official release of wxWindows (which is
version 2.4.x). Your project requires version 2.5.x, which isn't even
listed on the wxWindows download page.

You can build my code either with 2.4.1 plus the patches I mentioned in
"BuildInfo.txt" or with just the WX_2_4_BRANCH which will become 2.4.2.
I'm currently using the WX_2_4_BRANCH with the patches I made but aren't
accepted so far. Again all you currently need to build successfully is
the WX_2_4_BRANCH.

I don't like the fact that the code can't be compiled with the stable
release of wxWindows but it's almost impossible to code a decent windows
menu without the "FindItemByPosition" patch. Since this patch got
immediately included in HEAD and WX_2_4_BRANCH when 2.4.2 is released
this problem will be solved.

Another fact is the WX_2_4_BRANCH contains IMO a very important bug fix
for wxStyledTextCtrl. Therefore it doesn't make much sense to use a
plain 2.4.1.

O. Wyss

--
See "http://wxguide.sourceforge.net/" for ideas how to design your app.
Jul 19 '05 #4
On Sun, 07 Sep 2003 00:58:31 +0200, Otto Wyss wrote:
Josh Sebastian <cu****@cox.net> wrote:
Your code does not support the official release of wxWindows (which is
version 2.4.x). Your project requires version 2.5.x, which isn't even
listed on the wxWindows download page.


I don't like the fact that the code can't be compiled with the stable
release of wxWindows but it's almost impossible to code a decent windows
menu without the "FindItemByPosition" patch. Since this patch got
immediately included in HEAD and WX_2_4_BRANCH when 2.4.2 is released
this problem will be solved.

Another fact is the WX_2_4_BRANCH contains IMO a very important bug fix
for wxStyledTextCtrl. Therefore it doesn't make much sense to use a
plain 2.4.1.


OK, I'm not a wxWindows programmer. I just happened to notice that after
installing it, your program wouldn't compile. Your trying to use this as a
tutorial (right?), and generally tutorials shouldn't have complex build
requirements (I did see the documentation for the build requirements,
but I hadn't gotten around to doing it yet). If FindItemByPosition will be
supported in 2.4.2, though, then I suppose it's only a matter of time
before the point is moot.

Josh
Jul 19 '05 #5
In comp.programming Sheldon Simms <sh**********@yahoo.com> wrote:
While I agree with your sentiments, I want to defend the OP. The fact
of the matter is, if you develop using wxWindows you pretty much have
to use CVS head.
This isn't really true. You can #if wxCHECK_VERSION(2,5,0) ... #endif
features that depend on recent bug fixes. You can also write your own
workarounds so that no features are lost. I often do this myself.
This is because none of the developers is interested
in fixing bugs or even talking about workarounds for bugs unless they
have been demonstrated in CVS head. All requests for help with problems
with the 2.4.x series vanish into a black hole.


Well, it's true that stable branch is mostly supported by application
developers. You have to submit your own patches.
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
7
by: Web Master | last post by:
Are there any good websites or books that deal with cross platform XML? I'd like to target Internet Explorer/Netscape Navigator 5 or later, as well as Opera, possibly konqueror on Linux as well. ...
0
by: demibee | last post by:
Thought this might be of interest to some out there... For those who've never encountered it, it's a free, open-source, cross-platform GUI library (Windows/Mac/Linux). Forte's Agent 2.0 will be...
18
by: Ben Hanson | last post by:
I have created an open source Notepad program for Windows in C++ that allows search and replace using regular expressions (and a few other extras). It is located at...
13
by: jc | last post by:
I have written a parser using bison and flex to read ASAP2 file for CAN communications. entire development was done in an unix environment and now the code is ready to be integrated to an existing...
1
by: Vinod Sadanandan | last post by:
Cross Platform Migration An Unproblematic Approach (Windows-UNIX ) Oracle 10\11g The principal restriction on cross-platform transportable database is that the source and destination platform...
3
by: saneman | last post by:
I have read that Python is a platform independent language. But on this page: http://docs.python.org/tut/node4.html#SECTION004220000000000000000 it seems that making a python script...
4
by: satish mullapudi | last post by:
Hi Everyone, Am facing an issue. Am using DB2 UDB EE v8.2 on AIX platform. I have taken the offline backup of a db( say SAMPLE ) on AIX platform. Now I want to restore the same on Linux platform....
5
by: Hartmut Goebel | last post by:
Hi, has anybody used McMillan Installer, PyInstall or py2exe cross-platform? I have a Windows partition with Python installed there, so this would "only" required working on a different...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.