Language Selection

English French German Italian Portuguese Spanish

Programming: Shell Scripting, Pair Programming, How Programmers Learn to Code, New RPMs of PHP

Filed under
Development
  • Shell Scripting: Dungeons, Dragons and Dice

    In my last article, I talked about a really simple shell script for a game called Bunco, which is a dice game played in rounds where you roll three dice and compare your values to the round number. Match all three and match the round number, and you just got a bunco for 25 points. Otherwise, any die that match the round are worth one point each. It's simple—a game designed for people who are getting tipsy at the local pub, and it also is easy to program.

  • Pair programming with git

    Git is great. It took the crown of version control systems in just a few years. Baked into the git model is that each commit has a committer and one author. Ofen this is the same person. What if there is more than one author for a commit? This is the case with pair programming or with mob programming or with any other way of collaboration where code is produced by more than one person. I talked about this at the git-merge conference last year. There are some workarounds but there is no native support in git yet.

    It seems that the predominant convention to express multi-authorship in git commits is to add a Co-authored-by entry in the commit message as a so-called trailer. This adds more flexibility than trying to tweak the author and committer fields and is quite widely accepted, especially by the git community.

  • How programmers learn to code

    In terms of how programmers learnt to code, self-teaching is the norm for developers of all ages, stated the report.

    “Even though 67% of developers have computer science degrees, roughly 74% said they were at least partially self-taught.”

    On average, developers know four languages, but they want to learn four more.

  • PHP version 7.1.14 and 7.2.2

    RPM of PHP version 7.2.2 are available in the remi-php72 repository for Fedora 25-27 and Enterprise Linux ≥ 6 (RHEL, CentOS) and as Software Collection in the remi-safe repository.

    RPM of PHP version 7.1.14 are available in remi repository for Fedora 26-27 and in remi-php71 repository for Fedora 24-25 and Enterprise Linux (RHEL, CentOS).

More in Tux Machines

Screenshots/Screencasts: Robolinux 10.4 LXDE, deepin 15.9, and Parrot OS 4.5 KDE

Livepatching With Linux 5.1 To Support Atomic Replace & Cumulative Patches

With the Linux 5.1 kernel cycle that should get underway in just over one month's time, there will now be the long in development work (it's been through 15+ rounds of public code review!) for supporting atomic replace and cumulative patches. Read more

GNOME/Xfce/GTK: Exo 0.12.4 and Libhandy 0.0.7 Released

  • Exo 0.12.4 Released
    Exo 0.12.4 is now available with an improved icon view, better icon rendering, and reduced disk usage.
  • My Name is Handy, Lib Handy
    Libhandy 0.0.7 just got released! [...] A common pattern in GNOME applications is lists, which are typically implemented via GtkListBox. More specific patterns arose, where rows have a title at the start, an optional subtitle below it, actions at the end and an icon or some other widget like a radio button as a prefix. These rows can also be expanded to reveal nested rows or anything else that fits the need. So far every application using these patterns implemented the rows by hand for each and every row. It made using these a bit cumbersome and it led to inconsistencies in sizing, even inside a single application. To make these patterns easier to use, we implemented HdyActionRow, HdyComboRow and HdyExpanderRow.

How did you get started with Linux?

The Linux mascot is a penguin named Tux, so we thought it appropriate to celebrate Penguin Awareness Day for the conservation of penguin habitats and talk a little bit (more) about Linux. A few fun penguin facts: These furry creatures are flightless yet part of the bird family. Some are large, like the Emperor penguin, and some are small, like those found in New Zealand. And, the Gentoo penguin is known to swim up to a speed of 21 miles per hour! Now, for the Linux bit. I asked our writer community to describe the moment they learned about Linux or the moment they got it up on running on their machine. Here's what they shared. Read more