hao123－－我的上网主页 SWIG on Windows - Getting Started This chapter describes SWIG usage on Microsoft Windows. Installing SWIG and running the examples is covered as well as building the SWIG executable. Usage within the Unix like environments MinGW and Cygwin is also detailed. 3.1 Installation on Windows SWIG does not come with the usual Windows type installation program, however it is quite easy to get started. Download the swigwin zip package from the SWIG website and unzip into a directory. 3.1.1 Windows Executable The swigwin distribution contains the SWIG Windows executable, swig.exe, which will run on 32 bit versions of Windows, ie Windows 95/98/ME/NT/2000/XP. 3.2 SWIG Windows Examples Using Microsoft Visual C++ is the most common approach to compiling and linking SWIG's output. More information on each of the examples is available with the examples distributed with SWIG (Examples/index.html). 3.2.1 Instructions for using the Examples with Visual Studio 22.214.171.124 Java 126.96.36.199 Perl Example using nsPerl 5.004_04: 188.8.131.52 Python 184.108.40.206 Ruby
Coding Horror Balaio Tecnológico Getting Started with Rails 1 Guide Assumptions This guide is designed for beginners who want to get started with a Rails application from scratch. It does not assume that you have any prior experience with Rails. Rails is a web application framework running on the Ruby programming language. If you have no prior experience with Ruby, you will find a very steep learning curve diving straight into Rails. Be aware that some resources, while still excellent, cover versions of Ruby as old as 1.6, and commonly 1.8, and will not include some syntax that you will see in day-to-day development with Rails. 2 What is Rails? Rails is a web application development framework written in the Ruby programming language. Rails is opinionated software. The Rails philosophy includes two major guiding principles: Don't Repeat Yourself: DRY is a principle of software development which states that "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." 3 Creating a New Rails Project 9 Security
Amazon.co.uk: Low Prices in Electronics, Books, Sports Equipment & more Framework for evolutionary design Google C++ Style Guide Definition: Streams are a replacement for printf() and scanf(). Pros: With streams, you do not need to know the type of the object you are printing. You do not have problems with format strings not matching the argument list. (Though with gcc, you do not have that problem with printf either.) Streams have automatic constructors and destructors that open and close the relevant files. Cons: Streams make it difficult to do functionality like pread(). Decision: Do not use streams, except where required by a logging interface. There are various pros and cons to using streams, but in this case, as in many other cases, consistency trumps the debate. Extended Discussion There has been debate on this issue, so this explains the reasoning in greater depth. Proponents of streams have argued that streams are the obvious choice of the two, but the issue is not actually so clear. cout << this; // Prints the address cout << *this; // Prints the contents
Ruby on Rails Quick Reference Guide What is Ruby? Before we ride on Rails, let us recapitulate a few points of Ruby, which is the base of Rails. Ruby is the successful combination of − Smalltalk's conceptual elegance,Python's ease of use and learning, andPerl's pragmatism. Ruby is − A high-level programming language.Interpreted like Perl, Python, Tcl/TK.Object-oriented like Smalltalk, Eiffel, Ada, Java. Why Ruby? Ruby originated in Japan and now it is gaining popularity in US and Europe as well. Easy to learnOpen source (very liberal license)Rich librariesVery easy to extendTruly object-orientedLess coding with fewer bugsHelpful community Although we have many reasons to use Ruby, there are a few drawbacks as well that you may have to consider before implementing Ruby − Performance Issues − Although it rivals Perl and Python, it is still an interpreted language and we cannot compare it with high-level programming languages like C or C++.Threading model − Ruby does not use native threads. Sample Ruby Code Hello Ruby! Embedded Ruby <!
SPIEGEL ONLINE - Nachrichten Slashdot Stories (10)