Category: Tips

How to package your Python code
Post

How to package your Python code

Originally posted on opensource. Use setuptools to deliver Python code to users. You’ve spent weeks perfecting your code. You’ve tested it and sent it to some close developer friends for quality assurance. You’ve posted all the source code on your personal Git server, and you’ve received helpful bug reports from a few brave early adopters. And...

12 C++ String Methods You Should Master Today
Post

12 C++ String Methods You Should Master Today

Originally posted on makeuseof. Handle strings like a pro with these C++ methods. C++ is one of the most powerful programming languages with the help of its built-in methods to perform operations like sorting, searching, and reversing. These methods cover the ease-of-use drawbacks C++ has when compared to other high-level programming languages like Java and...

How to use Bootstrap with Flask
Post

How to use Bootstrap with Flask

Originally posted on dev. Hello Coders! This article explains How to use Bootstrap with Flask and code professional web apps with a responsive layout. For newcomers, Bootstrap is the most popular CSS framework with more than 150k Github stars and a huge ecosystem behind it. Flask is an open-source framework used to code from simple one-page projects to complex APIs, microservices,...

Getting Started With Python on Hardware
Post

Getting Started With Python on Hardware

Originally posted on makezine. Python is one of the fastest growing languages in the world. It’s accessible enough for schools to teach as a first programming language but powerful enough to handle the complexities of some of the most widely used web services, including Instagram, Spotify, and Netflix. And now Python’s star is rising in...

How to ensure the highest quality of Software code
Post

How to ensure the highest quality of Software code

Originally posted on dev. TL;DR: By following best industry practices like linting, unit testing, static code analysis and continuous monitoring of the software. Modern Software Development The software development process has changed a lot in last few years. Many of the modern tools & frameworks has built-in support to ensure that the code is clean, maintainable...

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...

20 Killer JavaScript One Liners
Post

20 Killer JavaScript One Liners

Originally posted on dev. Hello Folks 👋 This is Savio here. I’m young dev with an intention to enhance as a successful web developer. I love building web apps with React. I have proved my superiority in frontend technologies. Today, I’d like to share 20 Killer JavaScript one liners to make your life easier. Let’s...

8 Ways to Check if a File Exists Using Python
Post

8 Ways to Check if a File Exists Using Python

Originally posted on maekuseof. Here are multiple ways to check for a specific file or directory using Python. Python’s dependency on external files is a crucial aspect, it’s wise to pay heed to the base/source files before executing any code. Before running a particular program, you need to ensure your source files exist at the...

How Pros Automate Repetitive Code using VS Code
Post

How Pros Automate Repetitive Code using VS Code

Originally posted on dev. While Programming, you are bound to encounter Repetitive Code, writing which is a complete waste of time. I am not talking about Non-DRY Code, but Essentials Code that is necessary to be written. An example of this would be connecting State/Dispatch to Props using React-Redux. Anyone who has worked on a decent-sized React-Redux project knows how many times you have to write the same...

How to Build APIs in Python: 8 Popular Frameworks
Post

How to Build APIs in Python: 8 Popular Frameworks

Originally posted on makeuseof. So, you want to build an API, but where should you start? Try these frameworks on for size. Python is growing exponentially in popularity due to its simple learning curve and straightforward syntax. The coding language is used in web development, software development, mathematics, system scripting, and just about everything else...

9 Amazing Things To Do With Python
Post

9 Amazing Things To Do With Python

Originally posted on dev. Hello, buddies! We love python, right? So today we’re going to see some amazing things that can be done with python(you may not know them). Interesting? Let’s start! 1. Google Search with Python Sometimes we get so much into programming that we feel lazy enough to open the browser and search...

The (Most Comprehensive) JavaScript Design Principles Guide
Post

The (Most Comprehensive) JavaScript Design Principles Guide

Originally posted on dev. The (Most Comprehensive) JavaScript Design Principles Guide As JavaScript developers we strive towards clean, healthy, and maintainable code. We strive towards solving challenges eloquently. While these challenges may each, within themselves, be unique – we don’t necessarily require unique solutions for each individual one of these new challenges we face. If...

About async functions
Post

About async functions

Originally posted on dev. Async functions are great, especially if you have to call multiple functions in a row that return promises. With async / await, code becomes easier to reason about for humans, because the data flow mimics synchronous code, which is what we are used to reading. So what are async functions exactly? Syntactic...

Enter invisible passwords using this Python module
Post

Enter invisible passwords using this Python module

Originally posted on opensource. Give your password an extra layer of security with GPG and the Python getpass module. Passwords are particularly problematic for programmers. You’re not supposed to store them without encrypting them, and you’re not supposed to reveal what’s been typed when your user enters one. This became particularly important to me when...

How to root out software failures using end-to-end testing
Post

How to root out software failures using end-to-end testing

Originally posted on sdtimes. When software unexpectedly fails, the consequences for businesses are huge. For enterprises, the cost of downtime can run to thousands of dollars per minute, but the impact goes well beyond lost revenue. The knock-on effect of IT failures – tanking stock price, reputational damage and customer dissatisfaction – are well understood....

Master Binary in Five Minutes
Post

Master Binary in Five Minutes

Originally posted on dev. Binary is the very core of everything digital, not only in web development, but literally everything: from variables and file data to transport protocols and executables themselves. Binary means that there are only two values you can operate: yes and no. Or on and off, if you will. Or 0 and 1. If you have...