CODE Magazine / Articles

Python

Articles filed under Python

Articles

Showing 1–22 of 22

  1. CODE Magazine: 2025 - November/December cover

    Threat Detection Using Anomaly Detection

    Sahil Malik demonstrates how developers can use local, unsupervised machine learning—specifically Isolation Forest—to detect anomalous system behavior as a practical security measure in an AI-driven development world; he provides step-by-step code to generate synthetic logs, train and run the model, visualize results, and suggests real-world enhancements for monitoring, tuning, and alerting.

  2. CODE Magazine: 2025 - July/August cover

    Identifying and Reducing Test Case Combinatorial Explosions with Python’s Abstract Syntax Tree (AST) and Pytest Framework

    Arun addresses the challenge of test matrix explosions in software testing, particularly in machine learning environments. His article introduces a hybrid approach using Python's AST for static code analysis and Pytest's parameterized testing to identify and reduce redundant test cases. By analyzing test files and mapping parameterizations, Arun demonstrates significant improvements in test efficiency, reducing redundancies and execution times in CI/CD pipelines by strategically trimming the test matrix without compromising coverage.

  3. CODE Magazine: 2023 - May/Jun cover

    Using DuckDB for Data Analytics

    In this article by Wei-Meng Lee, the author introduces DuckDB, a Relational Database Management System (RDBMS) that supports Structured Query Language (SQL) and is designed for data analytics. Unlike traditional database systems, DuckDB does not require installation and can run queries directly on Pandas data. The article provides examples and demonstrations of how to use DuckDB for data analytics tasks, including loading datasets, querying data using SQL, and performing analytics on the data. The author also discusses the recently added support for JSON ingestion in DuckDB. Overall, the article highlights the convenience and efficiency of using DuckDB for data analytics tasks.

  4. CODE Magazine: 2021 - November/December cover

    Building Dashboards Using Bokeh

    Wei-Meng shows you how to use charts and graphs to both display data and to let users interact with data. It’s all done with a Python library called Bokeh.

  5. CODE Magazine: 2021 - July/August cover

    Building Command Line Utilities in C# and Python

    Rod whips up a quick app to help a friend and ends up discovering some pretty cool multi-platform features that are part of command line utilities.

  6. CODE Focus Magazine: 2020 - Vol. 17 - Issue 1 - .NET 5.0 cover

    Big Data and Machine Learning in .NET 5

    Learn about .NET for Spark and ML.NET to help .NET 5 applications better use big data and machine learning (ML). This article includes a code walkthrough.

  7. CODE Magazine: 2020 - March/April cover

    Introduction to Deep Learning

    Learn about deep learning, and a bit about the math involved, in this overview of a very complex topic, including activation functions, backpropagation, TensorFlow and Keras, how to train a neural network and more.

  8. CODE Magazine: 2019 - September/October cover

    Code Smells Are Universal

    Rod sniffs out some questionable code.

  9. CODE Magazine: 2019 - May/June cover

    AI for Absolute Beginners

    If you’ve been thinking that Artificial Intelligence and Machine Learning are a bit out of your league, think again. Sahil shows that you’re already using and benefiting from it, and you can create it too.

  10. CODE Magazine: 2018 - September/October cover

    Natural Language Understanding with LUIS

    Sahil Malik’s article explains how Natural Language Understanding with Microsoft LUIS lets developers convert free-form user input into actionable intents and entities, using domain-focused models that can be trained, tested, and refined through iterative utterances and patterns. He illustrates both browser-based and programmatic workflows—creating, training, and publishing LUIS apps via REST APIs, integrating with applications, and securing calls. Through step-by-step examples (creating apps, adding intents/entities, supplying utterances, and consuming results), Malik demonstrates how to automate and scale natural-language capabilities in software, highlighting cognitive services’ power and practical integration considerations.

  11. CODE Magazine: 2018 - July/August cover

    Learn Python with Visual Studio

    Python has long been the favorite language of open-source developers. Nicola shows Windows and iOS developers how to take advantage of Python’s many qualities using Visual Studio.

  12. CODE Magazine: 2018 - May/June cover

    Understanding Blockchain: A Beginners Guide to Ethereum Smart Contract Programming

    If you need your data secure, there’s probably no better way to ensure it than a Blockchain. Wei-Meng explains how it all works and then helps you build your own.

  13. CODE Magazine: 2018 - March/April cover

    Introduction to the R Programming Language

    Learning R sets you up for creating machine learning projects. Wei-Meng takes a close look at the language, which can implement a wide variety of statistical techniques, tests, analysis, classification, clustering, and can help you produce publication-quality graphs.

  14. CODE Magazine: 2017 - November/December cover

    Implementing Machine Learning Using Python and Scikit-learn

    Instead of implementing machine learning algorithms manually, Wei-Meng found that someone else had already done the hard part. Come along as he explores a Python tool, called Scikit-learn, and builds a couple of models.

  15. CODE Magazine: 2017 - September/October cover

    Improving Code Quality with Unit Tests

    Insufficient testing can lead to devastating results. Find out what you can do to minimize outages as Keith explores unit testing using a Python tool called Coverage.py.

  16. CODE Magazine: 2017 - May/June cover

    Python 3000 Just Turned 3000 Days Old

    It’s not a new product, but Michael shows you some tips and tricks that you might not know and that will make coding in Python a joy

  17. CODE Magazine: 2017 - January/February cover

    Improve Code Quality Using Test Coverage

    Every system needs to be tested before being set loose on an unsuspecting public. Keith uses Coverage.py to figure out how much information about code is enough, and what kinds of statistics and measurements can make you confident that your work will endure whatever a user throws at it.

  18. CODE Magazine: 2016 - November/December cover

    Introduction to Data Science using Python

    If you’re curious about Data Science or Python—and if you’re interested in the Internet of Things, you should be—you’ll find this introduction both important and exciting. Wei-Meng makes it all clear for us by explaining the basics.

  19. CODE Magazine: 2014 - July/August cover

    Python for C# Developers

    Michael compares Python to .NET and C#, and shows us why you’d want which one and when.

  20. CODE Magazine: 2008 - September/October cover

    Introducing IronPython

    IronPython is easy to learn yet surprisingly powerful language for .NET development. In this article, I’ll introduce you to IronPython and demonstrate it differs from C# and Visual Basic while still allowing you to leverage your existing .NET knowledge.

  21. 2 - Making Software a Service

    “This excerpt is from the book, ‘Building Applications in the Cloud: Concepts, Patterns, and Projects’ by Christopher Moyer. (Pearson/Addison-Wesley Professional, April 2011, ISBN 0321720202, Copyright 2011 Pearson Education, Inc. For more information, please visit the publisher site: www.informit.com/title/0321720202)

  22. Hit the Ground Running with MongoDB and Python

    Stephen B. Morris describes how to get started with MongoDB and Python. As usual with Python, you can get productive quickly, without worrying about complex IDEs. MongoDB has a simple data model and easy-to-understand semantics, giving you a handy on-ramp to this interesting technology.