From the blog

What Is Object-Oriented Programming In C++

C and C++ are one of the most powerful programming languages that run by Microsoft build tools for Windows and for other operating systems like iOS, Android, among others. The main difference between C and C++ is that C++ is enhanced with Object-Oriented Programming features like Classes, Objects, Methods etc. It supports advanced programming features like polymorphism, encapsulation, and inheritance. The C++ programming language is known as hybrid language because C++ supports both procedural and object-oriented programming paradigms together. In C++, properties (data) and methods (functions) are encapsulated together in the form of a Class or Object. In this post we will explain Object-Oriented Programming, Table of Contents What Is Object-Oriented Programming in C++? What are the benefits of Object-Oriented Programming? What are Classes and Objects in Object-Oriented Programming in C++? Understanding Importance of Object-Oriented Programming in C++ Is there an Object-Oriented Programming in C++ example? What Is Object-Oriented Programming in C++ – choosing an IDE and Compiler Download RAD Studio 11 Now See What’s New in RAD Studio 11 What Is Object-Oriented Programming in C++? Object-Oriented Programming is a way to integrate with objects which can contain data in the form of attributes or properties of objects, and code blocks in the form of methods and functions of objects. These attributes and methods belonging to the class are generally referred to as class members. Object-Oriented Programming (OOP) is a good way to work on data and work with functions in memory. Classes and Objects are the best way to work on properties and functions. Object-Oriented Programming has many advantages over procedural programming and it is the most characteristic feature of the C++ programming language. Before learning about Classes and Objects it is important to learn about Object-Oriented Programming. What are the benefits of Object-Oriented Programming? Faster and easier to execute. Provides a clear structure for the programs. Helps to keep the C++ code DRY “Don’t Repeat Yourself”, and makes the code easier to maintain, modify and debug. Makes it possible to create full reusable applications with less code and shorter development time. Can make it easier to map real-world items into an abstract digital form the computer can work with. Helps encapsulate (protect) behavior of sections of your code so that it helps reduce errors and make it clearer what a particular function does. Procedural programming is about functions (procedures, sub-functions, algorithms) that perform operations on variables (properties). While OOP is about objects with a defined class that contain both properties and functions. OOP is a modern way to use both variables and functions safely. What are Classes and Objects in Object-Oriented Programming in C++? Classes are defined in C++ using keyword class followed by the name of the class. Classes are the blueprint for the objects, and they are user-defined data types that we can use in our program, and they work as an object constructor.  Objects are an instantiation of a class. In C++ programming, most of the commands are associated with classes and objects, along with their attributes and methods. You can create different Objects from a single Class as shown below, For example; a Human can be a class that has human properties (age, weight, gender, salary, id number) and has human methods: reading(), writing(), working(), while group terms such engineers, workers, managers, athletes are objects that hold many names (members of the group) and other human properties and methods. […]

Read More

Successful Windows Development With This C++ Compiler Download

C++ is the most powerful programming language and as well as being one of the world’s most popular. It has many pre-defined variables, functions and libraries. Using a fast and reliable C++ IDE is very important for beginners and professionals since it helps C++ developers in remembering which language features exist, how to use them and even detect errors when we get it wrong. An IDE (Integrated Development Environment) is a software application that provides a complete set of features for application development. Code is generally written in text format, and you can easily edit or modify your code using text editors like Notepad, Word, Wordpad, and UltraEdit. For a developer, beginner or professional, however, a good C++ IDE is really important because of powerful tailored features like error highlighting, auto code completion and help system which help with the process of writing the code plus the opportunity to run, test, debug, deploy, merge or transform code to run on other platforms (multiplatform coding) are also important. All these capabilities require a powerful IDE which is really a specialized tool to help developers create and test their code. In my opinion, this the Free and Best C++ Compiler Download for a Successful Windows Development, C++ Builder 11 (RAD Studio 11) Community Edition / Professional / Architect / Enterprise C++ Builder is the easiest and fastest C and C++ IDE for building simple or professional applications on the Windows, MacOS, iOS & Android operating systems. It is also easy for beginners to learn with its wide range of samples, tutorials, help files and LSP support for code. C++ Builder comes with Rapid Application Development Studio, also known as RAD Studio, and C++ Builder is one of the most professional IDE’s that work under RAD Studio. It is the oldest IDE (it began as Borland TurboC in 1990 and was later renamed Borland C++ Builder). Under the Embarcadero brand it comes with new versions, features, updates and support. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs. There is a free C++ Builder Community Edition for students, beginners and startups. C++ Builder includes compilers for Win32, Win64, Android and iOS. C++Builder has both CLANG Enhanced C/C++ Compiler and a Borland C/C++ Compiler. It also features a modern, high-productivity RAD Studio IDE, debugger tools, and enterprise connectivity for to accelerate cross-platform UI development. You can develop GUI based applications easily, as it comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs. There is a free C++ Builder Community Edition that can be used by students, beginners and startups with limitations. You can download Free the C++ Builder Community Edition (CE) here: https://www.embarcadero.com/products/cbuilder/starter.Professional developers can use the Professional, Architect or Enterprise versions of C++ Builder. You can download and use the trial version for one month with the same capabilities as the full version. Please visit https://www.embarcadero.com/products/cbuilder. In 2021, Embarcadero announced the General Availability of RAD Studio 11. This release introduces several new features, enhancements, and quality updates in key areas including:    Provision apps for Windows 11 Compile for Android API 30 Compile for macOS M-series (Apple Silicon) processors Design on high-DPI 4k+ screens View VCL Styles in design time New & modernized VCL components   Use enhanced remote desktop […]

Read More

The Top 10 Most-Read Blog Posts of 2022

In 2022 the Embarcadero blog had just under two million pageviews. This reaffirms the connection between Embarcadero and the Delphi community, and the strong interest our product updates and explorations of Delphi’s capabilities generate among developers. So which of the blog posts of 2022 drew the most interest? To compile this list we chose to leave out posts related to product releases and updates, as they predictably well read, and highlight the non-news gems that delivered using GA data. The list below leaves out the most popular blog posts related to product releases and updates, like: Delphi WinUI 3 Demo, published by Marco Cantu on 15 February Announcing the Availability of RAD Studio 11.1 Alexandria, published by Marco Cantu on 15 March RAD Studio 11.1 Alexandria Patch 1 Available, published by Marco Cantu on 27 April Delphi iOS Simulator Support in RAD Studio 11.2, published by Marco Cantu on 11 August RAD Studio New Release: What’s Coming in 11.2, published by Hagop Panosian on 1 September These blog posts together garnered around 33k views together. And below, in reverse order, are the most-read blog posts of 2022. Table of Contents 10. Delphi 11.2 Supercharges Cross-Platform Development Read more 9. The Strange Case of the VCL Forms ClientWidth and the Windows Versions PE Flags Read more 8. Introduction to Python GUI Development with Delphi for Python (VCL & FMX) Read more 7. Supercharge Your User Interface with Skia4Delphi – Webinar Replay Read more 6. The Impact of Log4j on Software Development with Delphi and C++Builder Read more 5. FreeAndNil() – Delphi Developer Debate Read more 4. 5 More Easy Things To Learn About Strings In C++ Software Read more 3. Developing for Android 11 & 12 with Delphi 11 Alexandria Read more 2. Advanced Programming – A Complete Guide To Programming In C++ Read more 1. Enter the Skia4Delphi GUI Beauty Contest Read more 10. Delphi 11.2 Supercharges Cross-Platform Development By Eli M. (MVP),  September 22, 2022                 Delphi 11.2 is here, and it’s packed with features that will make cross-platform development faster and easier than ever. Whether you’re building mobile apps, desktop software, or anything in between, Delphi 11.2 has the tools you need to get the job done quickly and efficiently. In this article, we’ll take a look at some of the most impressive new features in Delphi 11.2 and see how they can help you streamline your workflow. So what are you waiting for? Get started using Delphi 11.2 today! 4.7k views Read more     9. The Strange Case of the VCL Forms ClientWidth and the Windows Versions PE Flags By Marco Cantu,  January 4, 2022                 A Windows application is stored in an EXE file in the PE format, which includes a number of PE flags that determine the application behavior in many areas. One of these flags is the Windows version. Over the last year, the Embarcadero R&D team has started to witness that some Windows APIs (particularly related to the windows non-client area, but also around High DPI) were not behaving correctly in the latest versions of the operating system. 4.9k views Read more     8. Introduction to Python GUI Development with Delphi for Python (VCL & FMX) By Jim McKeeth,  January 12, 2022               Learn […]

Read More

What Is The Best Tool To Use To Develop C++ On Windows?

The C++ Programming language is one of the most broadly used software programming languages. It can be downloaded from a wide range of locations with versions suitable for almost every possible operating system. This means users can easily develop applications for all sorts of different platforms. It’s very hard to specifically identify which C++ IDE is the best for you, as this is mostly about what you want to achieve with your code. If you want to implement small projects for analysis and calculations without GUIs and many other features, most small compilers might do just fine. Honestly though, trying to do everything with a simple text editor and a command line compiler really is “doing it the hard way“! However, if you want to migrate from building simple executable code to complex professional applications, we highly recommend starting with Community Editions which are often free to use so you can benefit from an advanced IDE right from the start and then progress to the full Pro or Enterprise editions when you’re ready to take things to the next level. If you are looking to best IDE for UI Design and if you want to migrate from building simple executable code to complex professional applications, we highly recommend using C++ Builder for professionals and C++ Builder Community Edition so you can benefit from an advanced IDE right from the start. In this post we will explain why C++ Builder Editions are the best C++ IDE for UI Design. Maybe I should say that, for me, the best of the best is the C++ Builder Enterprise edition which has all features in feature matrix. Table of Contents Embarcadero C++ Builder 11 is the Best C++ Tool and IDE that comes with the CLANG Compiler What is new in RAD Studio 11.1 IDE and editor? 1. General IDE Improvements 2. IDE High DPI quality 3. Welcome Page 4. ToolsAPI support! 5. GetIt Dialog Improvements 6. Both Delphi and C++ Compilers and Toolchains Improvements 7. LSP Improvements (Delphi and C++) 8. Libraries Improvements 9. Database Improvements 10. Other Internet Related Improvements Why use RAD Studio 11? Where To Download? See What’s New in RAD Studio 11 Download RAD Studio 11 Now Embarcadero C++ Builder 11 is the Best C++ Tool and IDE that comes with the CLANG Compiler This year, C++ Builder is celebrating its 25th anniversary. You can read more about the product history, on this great blog post by C++Builder PM David Millington on “Celebrating 25 Years of C++Builder” There is another very interesting blog post by David I on “The C++Builder 25th Anniversary: Visual Development, the Power of the C++ Language and 2.5 decades of Continuing Excellence“. C++ Builder is the easiest and fastest C and C++ IDE for building simple or professional applications on the Windows, iOS & Android operating systems. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. C++ Builder comes with Rapid Application Development Studio, also known as RAD Studio, and C++ Builder is one of the most professional IDEs that work under RAD Studio. It is the oldest IDE (it began as Borland TurboC in 1990 and was later renamed Borland C++ Builder). Under the Embarcadero brand, it comes with new versions, features, updates, and support. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native […]

Read More

What You Need To Know To Use A C++ IDE For Windows

An integrated development environment, or IDE, is a software application that provides a complete set of features for application development. Code is generally written in text format, and you can easily edit or modify your code using text editors like Notepad, Word, WordPad, UltraEdit or similar. For a developer, beginner or professional, however, a full C++ Compiler and IDE is really important because it has specialized features like syntax highlighting, auto code completion and help system, and the opportunity to run, test, debug, deploy, merge or transform code on other platforms (multiplatform coding) are also important. All these capabilities require a powerful IDE. Table of Contents 1. Start with downloading the Free C++ Builder Community Edition IDE 2. Learn the various parts and features of a good C+ IDE 3. How to create a new C++ Project with a GUI? 4. Design your form with UI elements 5. Add your C++ code 6. Compile your C++ project and run 1. Start with downloading the Free C++ Builder Community Edition IDE C++ is a powerful programming language and one of the world’s most with many ready-made variables, functions, methods, namespaces and libraries to enable you to write almost any app you could ever want. Using a fast and reliable IDE like RAD Studio is very important for beginners and professionals to develop C++ apps for Windows and other operating systems. When a user wants to develop modern C++ applications, they should learn to use a professional IDE. In this post we explain the basics of C++ Builder as a guide for beginners. If you are new to C++ and want to compile code for the first time, we recommend you try the free C++ Builder Community Edition for students, beginners, and startups. C++ Builder is the easiest and fastest C and C++ IDE for building simple or professional applications on the Windows, macOS, iOS & Android operating systems. It is also easy for beginners to learn with its wide range of samples, tutorials, help files, and LSP support for code. C++ Builder comes with Rapid Application Development Studio, also known as RAD Studio, and C++ Builder is one of the most professional IDE’s that work under RAD Studio. It is the oldest IDE (it began as Borland TurboC in 1990 and was later renamed Borland C++ Builder). Under the Embarcadero brand, it comes with new versions, features, updates, and support. RAD Studio’s C++ Builder version comes with the award-winning VCL framework for high-performance native Windows apps and the powerful FireMonkey (FMX) framework for cross-platform UIs. More details about C++ Builder & RAD Studio for the beginners can be found in Official Wiki of Rad Studio. Here are the features of the C++ Builder CE version; Build Windows and iOS C++ Applications 10x Faster with Less Code. C++Builder Community Edition provides you with an integrated toolchain and professional-level developer tools from Day 1 Featuring Clang-enhanced compiler, Dinkumware standard library, MSBuild/CMake/Ninja support, and popular libraries like Boost and Eigen. Develop Windows and iOS applications with a single codebase and responsive UI Enjoy the award winning Visual Designer using the C++Builder VCL and FireMonkey frameworks for maximum productivity Built-in Debugging Tools that allow you to debug on any device Build database apps with local/embedded capabilities Hundreds of included components to enhance your app and reduce development cycles Direct access to InterBase, […]

Read More

5 Simple Things To Start C and C++ Programming

Hello developers. If you want to learn C and C++ programming, then the LearnCPlusPlus website is the right place with very simple examples that can be compiled by any C++ Compiler. if you want to improve your C/C++ skills then perhaps 2023 is a good year to start reading new posts! Every week we have round posts, and the topics in this article are recent C++ and C topics from the LearnCPlusPlus.org website. In the next few weeks, we will plan to cover some more in-depth and advanced topics. We have some C-related posts too thanks to the shared history of C and C++. We try to answer all beginner-level questions you might have so please ask in the comments section below if you would like to see any specific topics covered. We want to post a mix of beginner-level posts for those just starting out on the path to becoming proficient in the C++ and C languages. Along with that we also want to create some articles for software developers who are more experienced, covering new techniques, features, and ideas to make LearnCPlusPlus.org a truly useful reference site for C and C++ programmers. Did you know where to start C and C++ programming ? In our round-up post today we have 5 more introduction-level posts on how to develop C/C++ programs. What C programming is used for and how we can write functions in C programming. In another post we explain how to build a C++ program and how we can run a C++ program in a terminal window. In the final post of this round-up, we explain how to terminate a C++ program. Here are the topics of this week, How To Write A Function In C Programming What C Programming Is Used For How To Build A C++ Program? How To Run C++ Program in Terminal How To Terminate A C++ Program Before all that, let’s brief you on what is new in C++. Learn what’s new in RAD Studio “Malawi” and 11.2 to start C and C++ programming! Embarcadero recently announced that there is a new RAD Studio “Malawi” Premium Beta which is expected to be version 11.3. As Marco Cantu mentioned there, to participate in the “Malawi” beta, a RAD Studio customer on Premium Update Subscription needed to provide their name and the email address associated with their product license, i.e., the EDN account used to register the product, using this form (by Wednesday, December 21st, 2022, so unfortunately the deadline has passed now). They previously announced the release of RAD Studio 11.2 with Delphi 11.2 and C++Builder 11.2. Some of the main new features and enhancements in RAD 11.2 has been listed in this post below: Announcing the Availability of RAD Studio 11.2 Alexandria Learn to start C and C++ programming in 2023 LearnCPlusPlus.org has been around for 2 years now and is packed full of educational posts about C and C++. Here’s a few recent, simple posts designed to teach you a single basic skill or feature of C or C++ in a nice bite-sized chunk of knowledge. How To Write A Function In C Programming What C Programming Is Used For How To Build A C++ Program? How To Run C++ Program in Terminal How To Terminate C++ Program You motivate us so much with your likes […]

Read More

Learn To Develop C and C++ Apps in 2023

Hello everyone. If you want to learn C++ programming or you want to improve your skills, then perhaps 2023 is a good year to start learning C++. Every week we have a round-up of recent interesting posts on C++ and C topics from the LearnCPlusPlus website including very simple examples that can be created in any C++ Code Editor and built with a C++ compiler. In the coming next weeks, we plan to focus on some more in-depth C++ and C programming topics accompanied by longer examples. We will still try to answer all beginner-level questions so please ask in the comments section below if you would like to see us cover any specific C++ subjects. We want to post a mix of beginner-level posts for those just starting out on the path to becoming proficient in the C++ and C languages. Along with that we also want to create some articles for software developers who are more experienced, covering new techniques, features, and ideas – either way, if you have a specific language feature or technique you’d like us to cover, why not get in touch in the comments below? Did you know where to learn to develop C and C++ apps? At LearnCPlusPlus.org, we have new introduction-level posts that may help and motivate you to start with developing small games, maybe your friends and family, or your students to develop amazing games on Windows, Linux, iOS, or on IoT systems in 2023. In our round-up post today we have 5 more introduction-level posts on how to develop C and C++ apps with a free or professional C++ IDE and Compiler. In another post, we teach how to use integer numbers in C and C++, along with information on their types and their ranges. In another post we discuss floating point numbers and how to use them. We also answer the question “what does C stand for in programming” because, weirdly, a lot of people seem to search for that phrase! Here are the topics of this week, How To Build A C++ Program What Is Int In C Programming? What Is A Float In C Programming? What Is Int In C++ Programming? What Does C Stand For In Programming? Before all that, let’s brief you on what is new in C++. Learn what’s new in RAD Studio “Malawi” and 11.2 to build C and C++ apps Embarcadero recently announced a new RAD Studio “Malawi” Premium Beta. As Marco Cantu mentioned there, to participate in the “Malawi” beta, a RAD Studio customer on Premium Update Subscription needed to provide their name and the email address associated with their product license, i.e., the EDN account used to register the product. Unfortunately, the deadline has passed now but I’m pleased to say we received a huge response. Embarcadero previously announced the release of RAD Studio 11.2 with Delphi 11.2 and C++Builder 11.2. Some of the main new features and enhancements in RAD 11.2 have been listed in this post below: Announcing the Availability of RAD Studio 11.2 Alexandria Learn to develop C and C++ apps in 2023 LearnCPlusPlus.org has been around for 2 years now and is packed full of educational posts about C and C++. We mainly focus on new developers. These posts are designed to inform you and to be easy […]

Read More

C++ Builder Is The Choice For The Award-Winning FileOptimizer

Today’s article is from C++ developer Javier Gutiérrez Chamorro. Javier is a very enthusiastic long-term C++ Builder developer who has won multiple awards for his FileOptimizer C++ app. Here he tells us why he continues to choose C++ Builder as his C++ IDE and the story behind his success. Table of Contents Who is Javier Gutiérrez Chamorro and what is FileOptimizer? What was the development process behind FileOptimizer? What operating system do you use? Have you always used C++ Builder, if so, why? Was C++ Builder a good choice? Why do you use C++ for FileOptimizer? What lessons have you learned from the success of FileOptimizer? Who is Javier Gutiérrez Chamorro and what is FileOptimizer? Javier Gutiérrez Chamorro here, the founder and main developer of the award-winning FileOptimizer tool. This is not something I say but supported by third party entities such as Sourceforge who awarded it for several times as project of the week and the month, and of course, Embarcadero, who recognized it in the “Building Good with C++ Builder Contest 2021”. In order to understand the context, first things first. I am a professionally involved in technology since almost 25 years ago, but not Delphi nor C++ Builder related for almost a decade. I am in the industry of Javascript, HTML, PHP, and the tons of libraries, frameworks and tool chains. As it happens usually, during my workdays I have a need, a program that allowed me to easily optimize the images that would be loaded in websites and iOS applications in order to reduce its size, and thus improve the loading and rendering speed. FileOptimizer is essentially a GUI (Graphics User Interface) frontend to powerful, but hard to use command line tools that perform the hard job, the lossless compression of files. No matter if you are referring to a PNG image, MP4 video, PDF leaflet or a Word document, FileOptimizer will recognize it and pass the action to the appropriate plugin in order to optimize it. What is the point? Well, you will get files that look exactly the same as the original, that use exactly the same format and can be opened by same original tools, but they will be smaller. What was the development process behind FileOptimizer? Small files were a key point back in the 1980s when memory and disk storage was scares. Nowadays with gigabytes of RAM and terabytes of disk it could sound as something of the past, but it is not. Lots of devices have limited hardware capabilities (smartphones, tablets, …) and you want to extract the most of them; and in other cases, bandwidth is a constraint. Bandwidth is expensive, and I am sure all of you will prefer to place a 100 K image on your website as opposite to the same image weighting 1000 K. I know you have modern formats reduce file size as we compare them to existing ones, just take a look at H265 for videos or WebP for images. Unfortunately those new formats require new tools too. New programs to edit or convert them, new apps to view them… So the need of reducing the size of a file, but keeping the original format is still there. What operating system do you use? I have been always based in Windows platform, well […]

Read More

Looking for a DevSecOps maturity model that works? Start with our 2021 Global Survey

Our 2022 Global DevSecOps Survey is out now! Learn the latest in DevOps insights from over 5,000 DevOps professionals. In our 2021 Survey, 4300 people told us about their successes and their challenges, but in some ways the biggest takeaway were the signs of a burgeoning DevSecOps maturity model. Somehow, when Covid and DevOps collided, big things started to happen particularly around DevSecOps. Yes, Virginia, there is a DevSecOps More teams are doing DevSecOps than ever before – and doing it well. Fully 72% of security professionals rated their organizations’ security efforts as “strong” or “good,” a significant increase from 59% the year before. This shows us that investments in security and the cultural shifts from DevOps to DevSecOps are paying off. That’s right, we’re shifting left Over 70% of security pros said their teams have shifted left and moved security earlier into the development lifecycle. So who’s in charge? That’s still an open question in this new DevSecOps maturity model. Almost 31% of security pros told us they were the ones in charge, but 28% said everyone that was responsible, almost identical to last year’s survey. And when it came to finding bugs, 77% of security pros admitted to being the exterminators in their org (not devs) after code is merged in a test environment. So how is it shifting left? While there are some conflicting responses (Devs! Security! Devs! Security!) – the truth is probably somewhere in the testing. The SAST and the furious In this new DevSecOps maturity model there is simply more testing (and that’s never a bad thing). Today, 53% of developers run SAST scans (a 13% increase from last year) and 44% run DAST scans (a 17% increase from last year). Better yet, over 50% of security pros report their devs scan containers, run dependency scans, and do license compliance checks. That’s all excellent news! So all testing issues are solved, right? Well, not exactly. Security testing remains a sticking point. While security pros agreed that their teams are shifting left, testing still happens too late in the process (over 42%), and it’s still was a struggle to fix vulnerabilities. While security is finding most of the bugs, almost 37% of them said it was tough to track the status of the bug fixes, and 33% said it was hard to prioritize the remediations. Finally, 32% said just finding someone to fix the problems was a headache too. In spite of everything thrown at them over the last year, DevOps teams are innovating and collaborating on problems like never before, and this year’s DevSecOps survey results are showing just how far we’ve come. Still, there are opportunities for growth and security challenges left to solve. Our 2022 GitLab DevSecOps Survey has the latest insights from over 5,000 DevOps professionals. Download the report and learn about the practices and processes that are shaping the way we deliver software. You can also compare it with previous year surveys Share on Facebook Share on Twitter Share on LinkedIn Share on Hacker News

Read More

Learn Python with Pj! Part 1 – Getting started

Hello World! My name is Pj Metz and I’m the education evangelist at GitLab. My day job involves working with universities across the globe to help faculty and students learn to use GitLab for educational or research purposes. Currently, my code experience is limited to C# and JavaScript, with some HTML and CSS in there for good measure. However, one of the most popular languages in the education community is Python, so I decided to jump in and teach myself Python to better connect with my community members. I’ll be learning on Codecademy, an online interactive learning platform that offers a variety of languages and career path curriculums, both free and paid. It’s where I started learning to code back in 2020 so I’m already comfortable with it’s format and curriculum style. Every few weeks you’ll see what I’ve learned and how I’ve applied that new knowledge. I’ll discuss the basics of writing in Python and show off some of what I’ve done. I’m still relatively new to writing code in general, so expect to see this through the eyes of a beginner — not just a Python beginner, but coding in general. I might even make a mistake in my descriptions/explanations. Let’s jump in! 🐍 First lessons The first few lessons involved writing a “hello world” and changing the value of a premade variable. I moved on to writing my own variables and experimenting with several different types, including ints, strings, and floats. I learned that you can change a variable after defining it, similar to many languages, and that you can even change the type; the most recently defined type will be the one used at run time. Concatenation works similarly to other languages: using a plus sign to combine variables. I did some reading ahead and learned about f-strings as an easy method of concatenating strings. I’m used to doing something similar in JavaScript for my Twitter bots, so this felt important to know. I also learned how to do some control flow through if, elif, and else. The logic remains the same, but conventions are a bit different. I’m used to writing an if statement like this in JavScript. if(partyRock === ‘in the house tonight’) { everybody = ‘have a good time’ console.log(`Party rock ${partyRock} everybody just ${everybody}`) } else { everybody = ‘sad party rock noises’ console.log(everybody) } In Python, there are no curly braces. Rather, a colon and indent takes care of that work. if partyRock == ‘in the house tonight’: everybody = ‘have a good time’ print(f”Party Rock is {partyRock} everybody just {everybody}”) else: everybody = ‘sad party rock noises’ print(everybody) Initial thoughts I like the readability of Python. It’s a little less cluttered, but I remember being very excited about curly braces when I first learned them. Using them for functions and methods and the like always made me feel like a “real programmer” when I was first starting. That being said, Python syntax is coming along naturally for me. Something that’s different for me is the way Python has you initialize variables. C# is a statically typed language, meaning that part of defining a variable is saying what type of variable it is (int, string, float, etc.). Python does not require you to define the type, it will simply know at […]

Read More