Language Selection

English French German Italian Portuguese Spanish

Programming: Kotlin, Python and More

Filed under
Development
  • Android’s commitment to Kotlin

    When we announced Kotlin as a supported language for Android, there was a tremendous amount of excitement among developers. Since then, there has been a steady increase in the number of developers using Kotlin. Today, we’re proud to say nearly 60% of the top 1,000 Android apps contain Kotlin code, with more and more Android developers introducing safer and more concise code using Kotlin.

    During this year’s I/O, we announced that Android development will be Kotlin-first, and we’ve stood by that commitment. This is one of the reasons why Android is the gold partner for this year’s KotlinConf.

  • Google Reaffirms Commitment To Kotlin Programming Language For Android

    Google is continuing to embrace Kotlin programming for Android, making more Android APIs accessible by Kotlin, Jetpack Compose as a UI toolkit catered to Kotlin, and Kotlin extensions for more Google libraries. Google is also working to offer more Kotlin + Android learning material, working with JetBrains on improving the Kotlin code compiler, speeding up the build time of Kotlin code, and other improvements.

  • Comparing equivalent Python statements

    While teaching one of my Python classes yesterday I noticed a conditional expression which can be written in several ways. All of these are equivalent in their behavior...

  • Serving Files with Python's SimpleHTTPServer Module

    Servers are computer software or hardware that processes requests and deliver data to a client over a network. Various types of servers exist, with the most common ones being web servers, database servers, application servers, and transaction servers.

    Widely used web servers such as Apache, Monkey, and Jigsaw are quite time-consuming to set up when testing out simple projects and a developer's focus is shifted from producing application logic to setting up a server.

    Python's SimpleHTTPServer module is a useful and straightforward tool that developers can use for a number of use-cases, with the main one being that it is a quick way to serve files from a directory.

    It eliminates the laborious process associated with installing and implementing the available cross-platform web servers.

    Note: While SimpleHTTPServer is a great way to easily serve files from a directory, it shouldn't be used in a production environment. According to the official Python docs, it "only implements basic security checks."

More in Tux Machines

Getting Started with Raspberry Pi Pico using MicroPython and C

Raspberry Pi Pico board was just launched last Thursday, but thanks to Cytron I received a sample a few hours after the announcement, and I’ve now had time to play with the board using MicroPython and C programming language. I went to the official documentation to get started, but I had to look around to achieve what I wanted to do, namely blinking some LEDs, so I’ll document my experience with my own getting started guide for Raspberry Pi Pico using a computer running Ubuntu 20.04 operating system. The instructions will be similar for Windows and Mac OS. Read more

Tiny Core Linux Installation and Review

The OS architectures supported by Tiny Core Linux are x86. X86_64, and ARM processors. It may not be a complete package for a functional Linux distro or flavor, but the freedom and flexibility it offers is out of the box. Under Tiny Core Linux, you get to push your OS around rather than your OS pushing you around like in other platforms. The speed and simplicity under this Linux distro cannot be substituted. Moreover, the absence of a Desktop environment distractions under its user experience is another plus. It gifts you the perfect tinkering experience due to its lightweight nature. Read more

PinePhone news roundup (1-24-2021)

It’s been a busy week for PinePhone hardware and software developers. If you’ve been following LinuxSmartphone on Twitter you may have noticed that developers have made progress in making several different Linux distributions more usable, while other developers have been working to bring open source firmware to the PinePhone’s modem. The PinePhone KDE Community Edition has also begun shipping recently, the Mobian Community Edition model is up for pre-order. And the official keyboard add-on is coming along nicely, as is the semi-official fingerprint reader accessory. Read more

Xfce’s Thunar File Manager Gets Split View, File Creation Times, and More

Thunar 4.17 is here as the first milestone towards the next major release that will be part of the upcoming Xfce 4.18 desktop environment, which is now in early development. I know many of you love and use Thunar, so here’s a look at the major new features coming to your Xfce desktop environment. The big news is that Thunar now finally features a split view, allowing you to use the file manager as a dual-pane file explorer/commander. I bet many of you were hoping for this feature, so here it is and you’ll be able to use soon on your Xfce desktop, hopefully later this year. Read more