PinnedSachin PalUnderstanding *args & **kwargs in PythonWhen we see the documentation of any function that contains *args and **kwargs, have you ever wondered — What are these strange parameters…Jul 25, 20221Jul 25, 20221
Sachin PalAdvanced Logging for Better TroubleshootingLogging debug or error messages is crucial for any application as it helps developers supervise and troubleshoot the application…Jun 15Jun 15
Sachin PalHere’s How You Can Create Custom Decorators In PythonYou might have encountered functions or classes decorated with functions prefixed with "@", for example, @random. These are known as…May 19May 19
Sachin PalinLevel Up CodingBest Practices for Positional and Keyword ArgumentsA function or a method can accept both positional and keyword arguments and that’s you who decide whether a function/method will accept…Apr 24Apr 24
Sachin Palfor loop❌ map()✔️: Applying a function to each item in an iterableWhat would you do if you wanted to apply a function to each item in an iterable? Your first step would be to use that function by iterating…Feb 27Feb 27
Sachin PalPython’s pickle Module: Serialize & De-serialize Python ObjectsSometimes you need to send complex data over the network, save the state of the data into a file to keep in the local disk or database, or…Feb 4Feb 4
Sachin PalMySQL Database Creation and Integration with Flask AppMySQL is a widely used open-source relational database known for its performance, reliability, and scalability. It is suitable for various…Jan 1Jan 1
Sachin PalTest Your Code Efficiently Using PytestYou may have done unit testing or heard the term unit test, which involves breaking down your code into smaller units and testing them to…Dec 10, 2023Dec 10, 2023
Sachin PalWhy if __name__ == “__main__” is Used in Python ProgramsYou may have seen the if __name__ == '__main__': along with some code written inside this block in Python script. Have you ever wondered…Nov 27, 20231Nov 27, 20231
Sachin PalEasy Password Hashing Using bcrypt in PythonWeb-based services and websites store hashed versions of your passwords, which means your actual password isn’t visible or stored in their…Nov 13, 20231Nov 13, 20231