Switching Themes Programmatically in Drupal 8

Sometimes we need to use different designs for separate pages or for separate menu items in a site. The most obvious way to perform this task is to set separate templates for each case in the current theme and customize CSS and JS for these pages. But there is another way, which is a less complex front-end solution. We can use a different theme. I used this solution for the first time in Drupal 5. My team worked on an informational resource about the state of Colorado, and each county had a different design. To resolve this discrepancy, we used the Taxonomy Theme module. Read more

Java’s Anonymous Inner Classes: Proceed With Caution

Java’s anonymous inner classes can be useful, but you must take care when using them. In particular: A memory leak will occur if an instance of an inner class survives longer than its containing outer class because the inner class maintains a reference to its outer class. This is not a merely academic concern, this comes up in Android development when we use inner classes to encapsulate and pass around some code, and instances of an outer class (Activities) can be constantly created and destroyed. Read more

Exploring South America

Speed and Function Works Hard, Plays Hard Recently we spent a month exploring South America. In that month, we visited Brazil (the north, the south, and the Amazon River), Peru (Lima and Cusco with Machu Picchu), Bolivia (La Paz, Santa Cruz, and Salar de Uyuni), and Paraguay (Asunción). We arrived in São Paulo, which is a municipality located in the Southeast Region of Brazil. Read more

Exploring the Balkans: Budva

I have always dreamed of a job that would allow me to travel. Many people around the world dream of the same thing, but most of them are swamped with work and the demands of everyday life. Eleven years ago, I was lucky to become a web technology specialist. Choosing this profession gave me hope, since many people in the industry are not bound to specific locations where they are expected to work. When I began working for Speed and Function, my dream finally came true. Last year, I stayed for a few months in Montenegro, a small country located in Southeastern Europe, in the western part of the Balkan Peninsula. Read more