Take the 2-minute tour ×
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It's 100% free, no registration required.

At the heart of the book is the Deitel signature “live-code approach.” Concepts are presented in the context of complete working programs, rather than in code snippets

What's the meaning of "live-code approach" in the context?

share|improve this question
3  
I think this is probably too localized of a question but FYI I'll answer it anyway: Programming books are known for showing only a tiny bit of example code (a "code snippet"), often created artificially for the sake of illustrating the example. The "live-code" approach is the name that Paul Deitel coined (or at least took over) for his way of showing more complete "real life" examples that use snippets from more realistic working programs. –  Lynn Dec 10 '11 at 2:27
add comment

3 Answers

up vote 6 down vote accepted

The answer is already in your question.

Concepts are presented in the context of complete working programs, rather than in code snippets.

It says that the examples presented in the book are complete working programs = live programs, compared to code snippets, which are just chunks of code which doesn't work by itself and therefore is dead.

Live-code approach: complete working program, whole code. Be aware that this is neither a coined phrase, nor a specific coding term. That's why the author had to explain themselves in the second sentence.

share|improve this answer
add comment

From this Deitel page:

Small Java How to Program, 6/e, is loaded with Live-Code examples—each new concept is presented in the context of a complete, working Java application that is immediately followed by one or more sample executions showing the program’s inputs and outputs.... The book contains 72 complete Live-Code examples consisting of 4917 lines of code

I have not read either the Java or the C++ texts, which seem to be aimed toward Computer Science 101 classes. I am inferring that Live-Code gives complete programs that provide more context and utility to the learner.

The opposite of their coined term, live-code, would be a code snippet. Since the snippet lacks context, it may be more difficult to know how to apply the concept being presented.

share|improve this answer
    
It's not clear to me whether the opposite of "live code" here would be "pseudocode" or "code snippets." Probably both. –  Peter Shor Dec 10 '11 at 16:26
add comment

Live here is used to mean:

2e. being in operation (a live microphone) [M-W]

So the sense of the quoted phrase "live-code approach" is exactly as described by the second sentence in the passage. This is not, to my knowledge, a standard phrase, and the quote marks indicate that the phrase has been invented for this specific purpose.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.