Category: Software Development

How I patched Python to include this great Ruby feature
Post

How I patched Python to include this great Ruby feature

Originally posted on opensource. What I learned from adding “else-less” functionality to Python, as inspired by Ruby. Ruby, unlike Python, makes lots of things implicit, and there’s a special kind of if expression that demonstrates this well. It’s often referred to as an “inline-if” or “conditional modifier”, and this special syntax is able to return one value when...

Programming language popularity: JavaScript leads – 5 million new developers since 2017
Post

Programming language popularity: JavaScript leads – 5 million new developers since 2017

Originally posted on zdnet. But Python has also gained 2.2 million developers over the past year while Java adds 1.7 million since 2017. avaScript remains by far the most popular programming language with developers, followed by Python and then Java, according to analyst firm SlashData’s latest survey of developers.  The company’s State of the Developer Nation...

Angular vs React vs Vue: Stats about the battle of Javascript technologies
Post

Angular vs React vs Vue: Stats about the battle of Javascript technologies

For several years, software engineers have been debating between Angular and React. Lately, this never ending battle has changed a bit with the release of Vue. Vue has surely increasing developers’ choice of application frameworks by one but also reignited the discussion on which one is more appropriate to use. You probably already know that...

Reading and Writing Files in Python (Guide)
Post

Reading and Writing Files in Python (Guide)

Table of Contents What Is a File? File Paths Line Endings Character Encodings Opening and Closing a File in Python Text File Types Buffered Binary File Types Raw File Types Reading and Writing Opened Files Iterating Over Each Line in the File Working With Bytes A Full Example: dos2unix.py Tips and Tricks __file__ Appending to...