05-06-2012
Which C++ book do you recommend?
Hello,
May be my post may look naive to many...but it isn't if you were to believe me.After, trying to learn programming in C for at least 5 years , I concluded that K & R is the best book to learn C, alas I took a lot of time to realize this.
So, I'm going to start learning how to program in C++(I'm not good at C) so which book do you recommend me? The book should get me start programming in C as fast as possible plus shouldn't be bulky, and should be simple.I know books with such characteristics are rare but if you know any please name them.
Thank you.
10 More Discussions You Might Find Interesting
1. IP Networking
I have a SCO OpenServer 5 and I'll like to know about a Very good Book for Unix Networking that can help me with this server or any good book about Unix Networking.
Thanks! (2 Replies)
Discussion started by: SuPeRbYtE
2 Replies
2. Programming
Can anybody recommend a good (& maybe cheap :D ) book for c-prg in HP-UX. I a little rusty & most of expr is in PC world. (1 Reply)
Discussion started by: vslewis
1 Replies
3. Solaris
I remember in the past we had those nifty little nortel boxes for remote console terminal concentrators where you can telnet to them and select port and it will be as though you sitting infront of the server console. I can't seem to find any of those now. :confused:
I want something that when... (6 Replies)
Discussion started by: sparcguy
6 Replies
4. UNIX and Linux Applications
Thank you for choosing this thread to read.
I am about to develop a heavy set financial system. My client wants to build his own in-house. Due to my LAMP/BSD mind set, I know MySQL, but no other database (never got the chance to see others). I do not know if MySQL can handle 2000 to 5000 records... (3 Replies)
Discussion started by: sad_angle
3 Replies
5. Shell Programming and Scripting
Is there a book available that goes into the PERL WIN32 module in depth ?
I like the Unix in a nutshell or Perl Black Book by Holzner way of teaching. Teach by example.
Anyone ?
Thanks
Popeye, Olive and sweetpea :p (1 Reply)
Discussion started by: popeye
1 Replies
6. UNIX for Dummies Questions & Answers
hi guys,
currently i'm using putty and hyper terminal in my telnet session mostly on hp servers. problem is when im trying to use putty to connect with the mp console im unable to connect because im using a usb-to-serial cable & putty only configured to com1. reason for this is i want to save... (2 Replies)
Discussion started by: gob23g
2 Replies
7. Shell Programming and Scripting
Hi, i wish to learn unix commands and shell scripting.
platform is solaris. but i am focused more on handy unix commands than system administration.
which books do you recommend? (1 Reply)
Discussion started by: nurulamin862
1 Replies
8. UNIX for Dummies Questions & Answers
I looking to broaden my knowledge in Unix/Linux. I have taken some basic classes in the past and tinkered a little with operating system at home..
What i am looking for is if someone could suggest a good book or class or both to help out. Looking at getting a Unix or Linux Certification. I work... (7 Replies)
Discussion started by: harlemi
7 Replies
9. Shell Programming and Scripting
Now i'm reading <Advanced Bash scripting Guide> and that book lists too many examples and show little explanations.That makes me feel confused.Do any1 has some better book recommend to me about Bash? (4 Replies)
Discussion started by: homeboy
4 Replies
10. UNIX for Advanced & Expert Users
Hello all :)
since cups 2.2.7 on Ubuntu 18.04 some (not) nice things changed, i would prefer a book for CUPS. Can someone recommend me one? I searched for, but find only very very old books, over 10 years old.
If possible I am also satisfied with a good and understandable documentation... (2 Replies)
Discussion started by: darktux
2 Replies
LEARN ABOUT DEBIAN
html::formhandler::manual::testing
HTML::FormHandler::Manual::Testing(3pm) User Contributed Perl Documentation HTML::FormHandler::Manual::Testing(3pm)
NAME
HTML::FormHandler::Manual::Testing - testing forms
VERSION
version 0.40013
SYNOPSIS
Manual Index
One of the big advantages of FormHandler compared to many other form packages is that you can test the same form that you use in your
controller.
DESCRIPTION
It's difficult to test forms that are instantiated in controllers with 'add_element' calls and from YAML, and that have no form class. It's
one of the reasons that 'dynamic' forms generated with a field_list aren't a good idea for anything except the simplest forms. If you have
a form class that contains everything that is needed for processing the form, it's really really easy to create tests for forms. Look in
the FormHandler 't' directory. It's full of tests for forms.
You can test that the validations work, that the database is getting updated correctly, even that the HTML that's being rendered is
correct. If something isn't working correctly, it's ten times easier to debug in a test case than sitting in a controller somewhere. And
when you finally start up your application and use the form, there should be very few surprises.
FormHandler provides a simple function to test whether the HTML output is correct, 'is_html' in HTML::FormHandler::Test, which uses
HTML::TreeBuilder. If you need to build forms that use the rendering code to produce particular output, it can be helpful.
Example
Here's an example of a test, originally copied from one of the DBIC model tests. But you should download the tar.gz or checkout the
distribution from github and browse through the tests.
use Test::More;
use lib 't/lib';
use_ok( 'BookDB::Form::Book');
use_ok( 'BookDB::Schema::DB');
my $schema = BookDB::Schema::DB->connect('dbi:SQLite:t/db/book.db');
ok($schema, 'get db schema');
my $form = BookDB::Form::Book->new(schema => $schema);
# This is munging up the equivalent of param data from a form
my $good = {
'title' => 'How to Test Perl Form Processors',
'author' => 'I.M. Author',
'genres' => [2, 4],
'format' => 2,
'isbn' => '123-02345-0502-2' ,
'publisher' => 'EreWhon Publishing',
};
ok( $form->process( params => $good ), 'Good data' );
my $book = $form->item;
END { $book->delete };
ok ($book, 'get book object from form');
my $num_genres = $book->genres->count;
is( $num_genres, 2, 'multiple select list updated ok');
is( $form->field('format')->value, 2, 'get value for format' );
my $bad_1 = {
notitle => 'not req',
silly_field => 4,
};
ok( !$form->process( $bad_1 ), 'bad 1' );
my $bad_2 = {
'title' => "Another Silly Test Book",
'author' => "C. Foolish",
'year' => '1590',
'pages' => 'too few',
'format' => '22',
};
ok( !$form->process( $bad_2 ), 'bad 2');
ok( $form->field('year')->has_errors, 'year has error' );
ok( $form->field('pages')->has_errors, 'pages has error' );
ok( !$form->field('author')->has_errors, 'author has no error' );
ok( $form->field('format')->has_errors, 'format has error' );
my $good = {
title => "Another Silly Test Book",
author => "C. Foolish",
year => 1999,
pages => 101,
format => 2
};
ok( $form->process($good), 'now form validates' );
done_testing;
AUTHOR
FormHandler Contributors - see HTML::FormHandler
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-25 HTML::FormHandler::Manual::Testing(3pm)