Skip to main content

Getting Started

  • Chapter
  • First Online:
Introducing Vala Programming
  • 408 Accesses

Abstract

In the sense of the tradition founded by Kernighan and Ritchie, we start with the obligatory “Hello World” program—a minimal example that not only provides a first look at the syntax but also discusses the Vala way from the source code to the executable binary. We also take a glance behind the curtain to see how Vala operates in the background and translates your program into C.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Brian W. Kernighan, Dennis M. Ritchi: C Programming Language. Prentice Hall, 1978. ISBN 978-0131101630.

  2. 2.

    Vala does not come bundled with a dedicated integrated development environment; however it will work with a generic one, like Eclipse or Anjuta. In addition, there is a small choice of Vala-specific IDEs, like Valama.

  3. 3.

    I recommend to look into the generated C code from time to time. It can help not only for debugging some cases but also to enjoy seeing how many lines of codes you have saved by using Vala.

  4. 4.

    Similar to C++, Java, and Objective-C, the this parameter is supplied as an invisible parameter when calling an instance’s method. Some programming languages make this explicit in their method definition, i.e., Smalltalk’s and Python’s self parameter work this way.

  5. 5.

    Vala does not support operator overloading.

  6. 6.

    POSIX defines that the name of the executable is being passed as the first parameter.

  7. 7.

    Note that these properties are merely hints to the window manager on your chosen platform; hence they may or may not be respected.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Michael Lauer

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Lauer, M. (2019). Getting Started. In: Introducing Vala Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5380-9_2

Download citation

Publish with us

Policies and ethics