473,397 Members | 2,028 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,397 software developers and data experts.

Fully Working Examples

Tom
By my estimate, greater than 90% of the online doco code does not work
without additional coding effort. Fully working solutions are
invaluable for the student. A guru's work measured in minutes can take
a newb ages to duplicate. Imagine the improved teaching efficiency of
being able to direct someone to a working solution! Gurus would not
have to teach the same lesson repeatedly and their work would be more
persistent.

A picture is worth 1,000 words and a working solution that teaches is
worth a million!

How can this need for more fully working solutions be met?

The help provided within this group is amazing. The brain power in
here is immense. The knowledge transfer efficiency is lacking because
there are an infinite number of ways for a newb to falter when
starting from blocks of code that are not fully functional.

The only explanation to this dilemma that I can fathom is the problem
of malicious code being included in solutions. Oh how the power of the
evil wins all to often!
Dec 5 '07 #1
7 1909


"Tom" wrote:
By my estimate, greater than 90% of the online doco code does not work
without additional coding effort. Fully working solutions are
invaluable for the student.
I would say that 99% of the online docs code does not work without addtional
coding effort to build a product. Keep in mind though, that is not the
purpose for the most part, of these types of docs. The docs are to show
examples of classes and methods, and how they are to be used. Its similar to
showing someone how to use a hammer and a nail, but not giving them details
to build a house versus a table.

Dec 5 '07 #2
I certainly empathize with your frustration.

However, having first hand experience as a teacher, I can categorically
state that most students will, when presented with a fully-working example,
will tend to copy-and-paste the example without bothering to dissect the
example and understand what the code is actually 'doing'.

Certainly some, generally those who genuinely want to learn, do make the
effort to understand the code before attempting to use it.

It's a matter of finding the happy-medium, and the concept of you can't make
everyone happy all of the time comes into play.

Generally the purpose of an example is to point you in the right direction
rather than to hand you the answer on a plate. Unfortunately there are a lot
of examples that do neither.
"Tom" <Th********@earthlink.netwrote in message
news:9i********************************@4ax.com...
By my estimate, greater than 90% of the online doco code does not work
without additional coding effort. Fully working solutions are
invaluable for the student. A guru's work measured in minutes can take
a newb ages to duplicate. Imagine the improved teaching efficiency of
being able to direct someone to a working solution! Gurus would not
have to teach the same lesson repeatedly and their work would be more
persistent.

A picture is worth 1,000 words and a working solution that teaches is
worth a million!

How can this need for more fully working solutions be met?

The help provided within this group is amazing. The brain power in
here is immense. The knowledge transfer efficiency is lacking because
there are an infinite number of ways for a newb to falter when
starting from blocks of code that are not fully functional.

The only explanation to this dilemma that I can fathom is the problem
of malicious code being included in solutions. Oh how the power of the
evil wins all to often!
Dec 5 '07 #3
codeproject.com is your friend
"Stephany Young" <noone@localhostwrote in message
news:OE**************@TK2MSFTNGP04.phx.gbl...
>I certainly empathize with your frustration.

However, having first hand experience as a teacher, I can categorically
state that most students will, when presented with a fully-working
example, will tend to copy-and-paste the example without bothering to
dissect the example and understand what the code is actually 'doing'.

Certainly some, generally those who genuinely want to learn, do make the
effort to understand the code before attempting to use it.

It's a matter of finding the happy-medium, and the concept of you can't
make everyone happy all of the time comes into play.

Generally the purpose of an example is to point you in the right direction
rather than to hand you the answer on a plate. Unfortunately there are a
lot of examples that do neither.
"Tom" <Th********@earthlink.netwrote in message
news:9i********************************@4ax.com...
>By my estimate, greater than 90% of the online doco code does not work
without additional coding effort. Fully working solutions are
invaluable for the student. A guru's work measured in minutes can take
a newb ages to duplicate. Imagine the improved teaching efficiency of
being able to direct someone to a working solution! Gurus would not
have to teach the same lesson repeatedly and their work would be more
persistent.

A picture is worth 1,000 words and a working solution that teaches is
worth a million!

How can this need for more fully working solutions be met?

The help provided within this group is amazing. The brain power in
here is immense. The knowledge transfer efficiency is lacking because
there are an infinite number of ways for a newb to falter when
starting from blocks of code that are not fully functional.

The only explanation to this dilemma that I can fathom is the problem
of malicious code being included in solutions. Oh how the power of the
evil wins all to often!

Dec 6 '07 #4
Tom
Bob >Thanks for the codeproject.com suggestion !!

I looked it over briefly and its a definite winner. I'll dig it plenty
for sure. :)

Some additional "Fully Working Examples" thoughts >>

For brevity and not getting lost in the forrest ... partial coding
snips do have purpose. A LOT of purpose. But do they really work? When
I try to implement them I get hours of frustration and very often NO
success. How discouraging!!

I suggest that the MS doco should snip all they want but ALWAYS give a
link to the complete and fully functional program than contains the
code. The smaller the better ... but provide a stable starting point
for us struggling to learn.

In the past 72 hours I've been struggling with two clips dealing with
binding and DataGridView. With help from Marc I managed to get
BindingList to work ... but IBindingList and DataTable are causing me
headaches. Heck, without Marc's help I'd still be stuck trying to get
List to work. Or maybe I'd have gone back and tried some more on
ArrayList? My point is this binding stuff is darn tricky and my texts
don't cover it very well. Seems the focus is on data base usage and
XML I/O. That's good stuff for sure. But there are needs for locally
generated data binding without the XML layer. IBindingList doco makes
it sound like the cat's meow for DataGridView ... but just give it a
try on a non well established database data format. If you have no
problems ... I salute you!! Even if you have database usage needs and
access to a database for learning purposes ... the examples in the
doco are incomplete. Thus you really know your stuff, or you are in
for some pain. :(

If you are coaching a football team ... don't you provide the play
book to the team members? Or do you tell them you have some good plays
and here's some of the aspects but I can't be bothered to show you all
the details? HA!! Give me a working starting point and let me learn by
experimenting. Please!!! No example program is going to meet my exact
needs ... so the fear of a student cutting and pasting without
studying the code seems a bit like an excuse for the way things are.
I'm not asking for a play book with every play ever conceived ... just
a reasonably solid set would be a tremendous improvement.

Here's a goal >90% of the snips linked to fully working solutions.
After all, somebody did test them? Right? Come on Coach MS ... don't
call two times outs on us again, everyone makes mistakes but we little
guys that can't afford enterprise level applications need better
support.

Whew, I vented ... but I don't feel the least bit better. I know my
struggles will continue and that many others are in the same boat.

Why post this noise of mine here you might ask? I feel it has just as
likely a chance to be heard here as anywhere. The voice of one is
weak. Take a poll on years of programming experience vs the doco
examples usefulness. The focus needs to shift a bit towards the entry
level. Maybe someday I won't be a newb? I'd still appreciate solid
working solutions for examples!

-- Tom
Dec 6 '07 #5
BobF <rN***********@charter.netwrote:
codeproject.com is your friend
Well, partly. I've seen a lot of *really* dodgy examples on
CodeProject. The only sort of peer review is through comments, and
often there'll be a lot of people saying how it's exactly what is
required before you get to comments explaining how the sample is
critically flawed.

This isn't limited to CodeProject of course. For example, look at:
http://dotnet.org.za/deon/pages/2998.aspx

I happened to see this (can't remember why) and people had been pretty
confident in it, not spotting that the salt was being used in a
completely broken way.

Examples in books *tend* to be better because they have extensive peer
review before being published; full, active open source applications
which have been around for a while tend to be reasonable as well,
although it's far from always the case.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Dec 6 '07 #6
Tom wrote:
By my estimate, greater than 90% of the online doco code does not work
without additional coding effort. Fully working solutions are
invaluable for the student.
No. The purpose of example code is not to build and run the
code. The purpose of example code is to read the code. So
whether there are a Main to call the code is irrelevant.

Good examples are short and focus on the essential.

Arne
Dec 7 '07 #7
On Thu, 06 Dec 2007 21:43:43 -0500, Arne Vajhj <ar**@vajhoej.dk>
wrote:
>Tom wrote:
>By my estimate, greater than 90% of the online doco code does not work
without additional coding effort. Fully working solutions are
invaluable for the student.

No. The purpose of example code is not to build and run the
code. The purpose of example code is to read the code. So
whether there are a Main to call the code is irrelevant.

Good examples are short and focus on the essential.
I agree.The walkthroughs are excellent ways to learn and better
understand the topics.

regards
A.G.
Dec 7 '07 #8

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

Similar topics

3
by: Hans Deragon | last post by:
Greetings. Total newbie to Glade here. I created an interface using glade-2 and I want to use it with my python program. Following is what I wrote (test prg): -------------------------...
3
by: Lewis | last post by:
I have "My Documents" redirected to a network share but when I go to open a project it says that the share is not fully trusted. I found this info: > The simplest (least work) in this situation...
4
by: John Dann | last post by:
I have a listview control on a simple vb.net form that's populated programmatically. It is set to scrollable and a scroll bar duly appears. However the scroll bar doesn't allow the bottom rows of...
23
by: Xah Lee | last post by:
The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee, 2006-03-15 Let me summarize: The LISP notation, is a functional notation, and is not a...
25
by: Syam | last post by:
Fully answered interview questions in c and c++ from http://www.faiqs.com
6
by: Toby Inkster | last post by:
Does anyone have any idea why this effect using script.aculo.us is working in Opera, but not Firefox? http://examples.tobyinkster.co.uk/Balloons2/Balloon%20tooltip.html (I've not had the...
30
by: Xah Lee | last post by:
The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations Xah Lee, 2006-03-15 In LISP languages, they use a notation like “(+ 1 2)” to mean “1+2”....
69
by: Bill Reid | last post by:
This is how I handle a check that the last character of a text file is a newline: /* checks if newline is last character of text file */ unsigned check_text_file_newline_termination(FILE...
1
by: Duncan Booth | last post by:
candide <candide@free.invalidwrote: General comments about the page: Section 2: Poor demonstration of 'global'. The declaration of 'a' as global is unnecessary and misleading. Section 4:...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.