DelphiTube
DelphiTube
  • 30
  • 3 448
Calculator 09 - Refactoring
**Clean Up Your Code & Make it Shine!**
In this video, we take a step back and focus on code cleaning. We'll revisit sections of code from a previous video and see how we can improve readability and efficiency.
By removing unnecessary comments, consolidating logic, and implementing procedures, we can transform our code from functional to fantastic!
We'll also explore renaming variables for better clarity and discuss potential error handling for future improvements.
**Join us as we learn the power of code cleaning and see how it can make your code easier to understand and maintain.**
**Want to see more?**
* Like this video and subscribe for more coding content!
* Share this video with your programmer friends who might find it helpful.
* Leave a comment below and let us know what you think!
**Thanks for watching!**
Переглядів: 11

Відео

Calculator 05 - Handle DOT
Переглядів 9День тому
Mastering the Decimal Point in Your Calculator Program! In this video, we tackle implementing the decimal point (dot) in our calculator program. We want to ensure only one dot is allowed for calculations while still enabling users to enter a value like "78.". Here's what we cover: Understanding Current Behavior: We explore how the code currently handles multiple dots. Logic for Dot Handling: We...
Calculator 08 - Handle Enter Key
Переглядів 11День тому
Mastering Your First Calculator App! In this video, we tackle the final step in building a simple calculator in Delphi: handling the Enter key! We'll learn how to: Capture the Enter key press. Save the second number entered. Perform calculations based on the chosen operation ( , -, *, /). Display the calculated answer on the screen. Clear unnecessary elements after each calculation. We'll also ...
Calculator 07 - Handle Math Symbols
Переглядів 21День тому
Building a No-Code Calculator - Step-by-Step! This video takes you through the process of implementing basic functionality in a no-code calculator built with Delphi. We'll explore how to handle user input for math operations. When a user presses a symbol like plus, minus, multiply, or divide, the displayed number is stored and the screen is cleared for entering the second number. We'll also see...
Calculator 06 - Handle Digits
Переглядів 14День тому
Building a Simple Calculator - Handling User Input In this video, we tackle user interaction in our calculator code! We'll write code to handle digit and dot inputs from the user. We'll use an if statement to check if the screen is empty. If it is, the pressed key replaces the default "0". Otherwise, the key is appended to the existing screen text. We'll also learn the importance of discarding ...
Calculator 04 - Handle Backspace
Переглядів 21День тому
Unleash your inner mathematician with this powerful Delphi calculator app! Featuring intuitive backspace functionality, you can easily correct mistakes on the fly. Simply hit backspace to erase the last digit entered, ensuring your calculations are always accurate. This user-friendly app streamlines your number crunching, perfect for students, professionals, or anyone who needs a reliable on-th...
Calculator 02 - Project Overview
Переглядів 21День тому
Level Up Your No-Code Delphi Calculator! Handling Keystrokes and Logic Welcome back to Delphi Tube! In our previous video, we created a basic no-code calculator GUI. But a calculator without calculations isn't very useful, is it? This video tackles implementing keystrokes and logic in your Delphi calculator application. You'll learn: * How to filter out unwanted keystrokes to prevent crashes. *...
Calculator 03 - Project Analysis & Setup
Переглядів 21День тому
Master Clean Coding in Delphi! Filtering Keystrokes in a Calculator Want to write clean and readable Delphi code? Look no further! In this video, we tackle filtering keystrokes in a calculator application. We'll ensure only valid characters like numbers, operations, and essential keys are accepted. Here's what you'll learn: How to handle key press events on edit controls. Defining constants and...
Calculator 01 - No-Code Calculator GUI in Delphi
Переглядів 365Місяць тому
Title: Unleash Your Inner Developer: Build a Calculator GUI in Delphi (No Coding Required!) Description: Ever dreamt of building an app but coding seemed like a hurdle? Well, dream no more! This video unlocks the power of Delphi's visual development tools, where you can create a fully functional CALCULATOR GUI - WITHOUT WRITING A SINGLE LINE OF CODE! Perfect for Beginners and Visual Thinkers: W...
Delphi Multi-Paste Feature
Переглядів 142Місяць тому
Master Delphi's Multi-Paste! Effortlessly add text before/after lines & escape quotes. Great for SQL & HTML! #Delphi #Coding Welcome to DelphiTube with Qasim Shahzad! Today, let's explore Delphi's multi-paste feature. In the Edit menu, you'll find Multi-Paste. While the name might not be perfect, its functionality is impressive. Let's dive in! Imagine you have a chunk of text to add before and ...
04 - How To Move Multiple Buttons at Runtime in Delphi /FMX
Переглядів 1052 місяці тому
This video builds upon the previous one, demonstrating how to move multiple buttons at runtime in Delphi FMX. Refactoring is emphasized, with renaming variables (FMoving to FMovable) and event handlers (enable/disable moving, move button) for clarity. Generalization is key. Code is modified to work with any button, not just a specific one (removing "BTNMovable"). A TButton variable is introduce...
03 - How To Move A Button At Runtime In Delphi & FireMonkey (FMX)
Переглядів 193 місяці тому
This video demonstrates refactoring code in a Delphi FMX application to improve readability and reusability. The code is formatted using MMX commands for better organization in version control systems (Git). Line width is increased to better suit modern wide monitors. Unnecessary lines are deleted, and variables are declared as private (prefixed with 'F') for better encapsulation. A Point data ...
02 - How To Move Components at Runtime in Delphi & FireMonkey (FMX)
Переглядів 473 місяці тому
This video shows how to move components in a Delphi FMX application at runtime using mouse events. We create a button and write code to respond to mouse down, up, and move events. A Boolean variable tracks the moving state. On mouse down, the moving state is set to true and the starting position is recorded. While moving the mouse, the button's position is updated based on the current position ...
01 - How To Move Components at Runtime in Delphi & FireMonkey (FMX)
Переглядів 1173 місяці тому
This DelphiTube video introduces moving components at runtime in Delphi for user customization. Benefits include: * User-preferred layouts for better satisfaction and enjoyment. * Improved accessibility for users with disabilities. * Adaptability to different workflows (e.g., placing frequently used tools in design apps). * Efficient use of screen space, especially on smaller devices. The serie...
Delphi UI/UX Improvement Suggestion
Переглядів 2124 місяці тому
Delphi UI Improvement: Standardize Terminology (#Delphi #UIUX) Tired of confusing Delphi terminology? This video suggests a simple UI/UX improvement: replace "desktops," "layouts," and variations with a single, clear term - workspace . Standardizing terminology improves user experience by making Delphi's documentation and interface cleaner and easier to navigate. Learn more and share your thoug...
10 - How To Expand An App To Many Useful Products
Переглядів 10111 місяців тому
10 - How To Expand An App To Many Useful Products
08 - How To Run Delphi App On Android Devices?
Переглядів 14311 місяців тому
08 - How To Run Delphi App On Android Devices?
07 - How To Apply 3D Textures?
Переглядів 6411 місяців тому
07 - How To Apply 3D Textures?
06 - How To Find Free 3D Textures?
Переглядів 4611 місяців тому
06 - How To Find Free 3D Textures?
05 - How To Arrange 3D Planets?
Переглядів 5311 місяців тому
05 - How To Arrange 3D Planets?
04 - Why Naming is Important?
Переглядів 5211 місяців тому
04 - Why Naming is Important?
03 - How To Animate Spheres?
Переглядів 10511 місяців тому
03 - How To Animate Spheres?
02 - How To Create A 3D App In Delphi FireMonkey?
Переглядів 41511 місяців тому
02 - How To Create A 3D App In Delphi FireMonkey?
How Do I Increase Font Size In Delphi IDE?
Переглядів 34011 місяців тому
How Do I Increase Font Size In Delphi IDE?
Change Delphi Code Editor Font RAD Studio
Переглядів 23711 місяців тому
Change Delphi Code Editor Font RAD Studio
The Smallest Pascal Program
Переглядів 47311 місяців тому
The Smallest Pascal Program
Delphi Console Hello World Application
Переглядів 88Рік тому
Delphi Console Hello World Application
Your First Delphi VCL Application
Переглядів 53Рік тому
Your First Delphi VCL Application
Windows Process Explorer Developed In Delphi
Переглядів 44Рік тому
Windows Process Explorer Developed In Delphi
Why Should Functions Be Small
Переглядів 108Рік тому
Why Should Functions Be Small

КОМЕНТАРІ

  • @DA1-or2il
    @DA1-or2il 4 дні тому

    Well explained.

  • @DA1-or2il
    @DA1-or2il 4 дні тому

    Should we not extract each step in to its own procedure?

  • @DA1-or2il
    @DA1-or2il 4 дні тому

    Simple and useful. Thanks

  • @DA1-or2il
    @DA1-or2il 4 дні тому

    Audio can be improved. Thanks anyway.

  • @DA1-or2il
    @DA1-or2il 4 дні тому

    Good

  • @DA1-or2il
    @DA1-or2il 4 дні тому

    Refactoring makes sense. Great

  • @DA2-jd9wr
    @DA2-jd9wr Місяць тому

    Very nice and easy tutorial. Thanx

  • @Esico6
    @Esico6 Місяць тому

    Thanks!

    • @DelphiTube
      @DelphiTube Місяць тому

      Welcome. Stay Blessed

  • @gvtech1115
    @gvtech1115 2 місяці тому

    Does the Delphi developer have a feature market?

  • @LifeOfShankar
    @LifeOfShankar 2 місяці тому

    Do you have any idea that how to resize it on runtime

    • @DelphiTube
      @DelphiTube 2 місяці тому

      Well, the actual act of resizing is simple. We just change the (Sender as TButton).Width & (Sender as TButton).Height. The tricky part is how to start this and how to provide visual feedback. The simpler solution can be to use two TTrackbar components for sizing and show them when a resize button is clicked. The elaborated solution should involve drawing a rubber band rectangle with the mouse in real time and Resize on MouseUP.

  • @pmcgee003
    @pmcgee003 3 місяці тому

    Remove the top line ... remove the readln .. compile and run from the console.

  • @marlowbosville4454
    @marlowbosville4454 3 місяці тому

    "promo sm" 😅

  • @borhanmenaceur4176
    @borhanmenaceur4176 7 місяців тому

    I want to build a commercial app for android in Delphi I need some advices how can I contact you?

    • @DelphiTube
      @DelphiTube 7 місяців тому

      Yes please. You can contact me at TheQasimShahzad@Gmail.com or you can join en.delphipraxis.net/ to contact with the Delphi experts

  • @borhanmenaceur4176
    @borhanmenaceur4176 7 місяців тому

    Good tuto ❤

  • @dsfsdfsddf
    @dsfsdfsddf Рік тому

    If you were to write the same program in Delph 1 16bit it would be even smaller.

    • @DelphiTube
      @DelphiTube Рік тому

      Wonderful. Exactly. It will be very small. We had many software in the range of Kilobytes in those days. Today even Gigabyte is acceptable.😄

    • @pawoon
      @pawoon 10 місяців тому

      or Turbo Pascal

    • @DelphiTube
      @DelphiTube 10 місяців тому

      @@pawoon Yes. That's it.

  • @fireninja8250
    @fireninja8250 Рік тому

    Finally, something straight to the point

    • @DelphiTube
      @DelphiTube Рік тому

      Thank you for your appreciation. Stay Blessed

  • @adriaan867
    @adriaan867 Рік тому

    what do i have to do if it doesnt give option of windows vcl application

    • @DelphiTube
      @DelphiTube Рік тому

      Kindly guide which Delphi version do you have? and Have you changed any default settings?

    • @adriaan867
      @adriaan867 Рік тому

      11.2

    • @DelphiTube
      @DelphiTube Рік тому

      @@adriaan867 It's strange. I checked in 11.2, and this option is available. I think either your installation is faulty or incomplete. You may try reinstalling or downloading it from the official website for a complete package.