- Video Q&A with Effective Python Author Brett Slatkin
- Aug 12, 2015
- Brett Slatkin, author of the video "Effective Python Live Lessons," talks about what makes Python a good introductory language, what's appealing about Python, and the most common pitfalls for new Python users.
|
- Video: Docker Containers: Removing Containers and Images
- Jul 30, 2015
- In this excerpt from Docker Containers LiveLessons, Chris Negus discusses several ways to go about clearing out unneeded containers and images.
|
- Writing Simple JavaScript Programs for Your Web Page
- Jul 13, 2015
- In this chapter from JavaScript in 24 Hours, Sams Teach Yourself, 6th Edition, learn how JavaScript can be added to your web page, and then about some of the fundamental syntax of your JavaScript programs such as statements, variables, operators, and comments. You’ll also get your hands dirty with more code examples.
|
- Video: Docker Containers: Create Private Docker Registries
- Jul 9, 2015
- Setting up a private Docker registry allows you to share your images with people working on your project without exposing your project to the outside world. In this excerpt from Docker Containers LiveLessons, Christopher Negus shows you how to install and set up docker-registry in Fedora.
|
- Video: Learn More Python the Hard Way: Refining
- Jun 24, 2015
- Zed A. Shaw, author of Learn More Python the Hard Way LiveLessons (Workshop), discusses refining your Find Project.
|
- Effective Python Items 15 & 23: How and Why to Use Closures
- Jun 22, 2015
- Python has first-class functions, meaning you can assign them to variables, pass them as arguments to other functions, compare them in expressions, etc. Python also supports closures: functions that refer to variables from the scope in which they were defined. Put together, first-class functions and closures give you a powerful tool for implementing simple interfaces while maintaining state. In these excerpted items from Effective Python: 59 Specific Ways to Write Better Python, Brett Slatkin shows you how and why to use first-class functions and closures in your Python programs.
|
- Video: Learn More Python the Hard Way: Refactoring
- Jun 17, 2015
- In this excerpt from Learn More Python the Hard Way LiveLessons (Workshop), Zed A. Shaw discusses refactoring in Python.
|
- Defining Functions in Python
- Jun 16, 2015
- This chapter from Introduction to Programming in Python: An Interdisciplinary Approach covers functions in Python, including using and defining functions, implementing mathematical functions, using functions to organize code, and passing arguments and returning values.
|
- Ruby on Rails Tutorial: A Toy App
- Jun 8, 2015
- In this chapter from Ruby on Rails Tutorial: Learn Web Development with Rails, 3rd Edition, Michael Hartl develops a toy demo application to show off some of the power of Rails. The purpose is to get a high-level overview of Ruby on Rails programming (and web development in general) by rapidly generating an application using scaffold generators, which create a large amount of functionality automatically.
|
- Why Not Learn Python?
- Jun 8, 2015
- Bob Sedgewick was dragged kicking and screaming into Python programming, but found himself using it much more often than he ever thought he would. In this article, Bob explains why he and his co-authors wrote Introduction to Programming in Python, and why you might want to learn Python, too.
|
- Translating Effective Python into Go: Know When to Use Channels for Generator-Like Functions
- Jun 2, 2015
- Used together, channels and goroutines in the Go programming language provide very similar behavior to Python’s generator functions. Brett Slatkin, author of Effective Python: 59 Specific Ways to Write Better Python, shows how to translate his advice for Python generators into best practices for Go functions.
|
- Video: Learn More Python the Hard Way: Second Test Implementation
- May 21, 2015
- In this excerpt from Learn More Python the Hard Way LiveLessons (Workshop), Zed A. Shaw presents Lesson 3.3: Second Test Implementation.
|
- Effective Python: 4 Best Practices for Function Arguments
- May 20, 2015
- Functions in Python have a variety of extra features that make the programmer’s life easier. Some are similar to capabilities in other programming languages, but many are unique to Python. These extras can make a function’s purpose more obvious. They can eliminate noise and clarify the intention of callers. They can significantly reduce subtle bugs that are difficult to find. In this excerpt from Effective Python: 59 Specific Ways to Write Better Python, Brett Slatkin shows you 4 best practices for function arguments in Python.
|
- Ruby: The Last Eight Years
- Apr 29, 2015
- Hal Fulton, author of The Ruby Way, points out some of the extensive changes Ruby has experienced in less than a decade. By paying attention to why and how programming languages evolve, we can learn from experience and past mistakes, deliberately changing the language (and especially our usage of it) for a better future.
|
- Effective Python Item 40: Consider Coroutines to Run Many Functions Concurrently
- Mar 18, 2015
- There are numerous problems with threads in Python, but Python can work around almost all of these issues with coroutines, which let you have many seemingly simultaneous functions in your Python programs. Brett Slatkin discusses coroutines in this excerpt from Effective Python: 59 Specific Ways to Write Better Python.
|
- Working with Strings in Ruby
- Mar 16, 2015
- A string is simply a sequence of characters. Like most entities in Ruby, strings are first-class objects. In everyday programming, we need to manipulate strings in many ways. We want to concatenate strings, tokenize them, analyze them, perform searches and substitutions, and more. In this chapter from The Ruby Way: Solutions and Techniques in Ruby Programming, 3rd Edition, Hal Fulton and André Arko show you how Ruby makes most of these tasks easy.
|
- Packet-Filtering Concepts in Linux Firewalls
- Feb 3, 2015
- This chapter from Linux Firewalls: Enhancing Security with nftables and Beyond, 4th Edition explains how to implement firewall rules.
|
- A Practical Guide to Ubuntu Linux: The Shell
- Jan 22, 2015
- This chapter from A Practical Guide to Ubuntu Linux, 4th Edition takes a close look at the shell and explains how to use some of its features. It discusses command-line syntax and describes how the shell processes a command line and initiates execution of a program. This chapter also explains how to redirect input to and output from a command, construct pipelines and filters on the command line, and run a command in the background. The final section covers filename expansion and explains how you can use this feature in your everyday work.
|
- Learn Ruby the Hard Way: A Good First Program
- Dec 23, 2014
- In this excerpt from Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World Of Computational Thinking with Code, 3rd Edition, Zed Shaw walks you through writing your first Ruby program, and gives you some study drills to help you practice your skills.
|
- Learn Ruby the Hard Way: Comments and Pound Characters
- Dec 23, 2014
- Comments are very important in your programs. They are used to tell you what something does in English, and they are used to disable parts of your program if you need to remove them temporarily. Zed Shaw shows you how you use comments in Ruby, in this chapter from Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World Of Computational Thinking with Code, 3rd Edition.
|