Jump to content
silvercoder79

Watch me coding in Delphi on YouTube

Recommended Posts

I guess there are people with differing levels of ability. And while I don't intend to post links to all videos, today's video is a real-world example of  adding code to a word search game and squashing those pesky bugs along the way!  Hopefully, it will inspire you to  tackle your own coding challenges and share your creations in the comments!


https://youtu.be/K1iJIYtBPaw

  • Like 4
  • Thanks 1

Share this post


Link to post

One day, I might invest in a proper mic, and until then... the headset will do,

 

(feels a bit like "ground control to major tom")

  • Haha 1

Share this post


Link to post

Not a real programmer... not wearing his delphi programming socks!

 

(It was a short from tscoding on YouTube.)

Share this post


Link to post
Posted (edited)

Yeah, it should look like this, originally.
But unfortunately the AI refuses to reproduce logos, socks, styles and so on, in the right way.
Nevertheless, I'm sure this is quite the right picture of a messy programmer, at least as I am :classic_biggrin:

image.thumb.png.39e808f4cc84b4c5b8c2940d18fd7000.png

 

If anybody will tell you that AI ist not ruling the word yet, this proofs him work.
AI already dictates how the the political correct content shall look like and refuses to produce anything else you ask for.

 

Edited by Rollo62
  • Like 1

Share this post


Link to post

The funny part is that I have different colored slippers. Blue for left foot and brown for right, and only because I cannot locate the other brown slipper. 

 

And next week, I will be back with some Delphi coding videos.  Been playing with Lazarus recently. But if that sort of things peaks your curiosity, you know where to find me? I hope.

 

https://www.youtube.com/@silvercoder70

Share this post


Link to post
On 7/9/2024 at 12:22 PM, Rollo62 said:

Yeah, it should look like this, originally.
But unfortunately the AI refuses to reproduce logos, socks, styles and so on, in the right way.
Nevertheless, I'm sure this is quite the right picture of a messy programmer, at least as I am :classic_biggrin:

image.thumb.png.39e808f4cc84b4c5b8c2940d18fd7000.png

 

If anybody will tell you that AI ist not ruling the word yet, this proofs him wrong.
AI already dictates how the the political correct content shall look like and refuses to produce anything else you ask for.

 

 

Share this post


Link to post
On 7/9/2024 at 12:22 PM, Rollo62 said:

AI already dictates how the the political correct content shall look like and refuses to produce anything else you ask for.

Break out the crayons and draw away. We don't need no stinkin' AI.

  • Like 1

Share this post


Link to post
13 minutes ago, dummzeuch said:

Break out the crayons and draw away. We don't need no stinkin' AI. 

No nooo, its just like in the Jurassic Park: The strange AI animals can be nice to watch and study, but be very sure to keep the cage door closed :classic_biggrin:

Share this post


Link to post

On AI...  I have seen some strange answers come out! And similar code then used in articles on the web and do read this literally...
 

if (condition) then
  do something
  do something else

rest of code here

Where is the begin/end pair?!?

Share this post


Link to post

New video from The Silver Code exploring the functionalities of  classes, sysutils, and dateutils units, providing a strong foundation for building robust Delphi applications. Over the coming weeks I'll look at these units in more details...

 

What units are most important for you? Would love to hear from you!

 

 

 

Share this post


Link to post

Safeguard Your Object Pascal Code: Initialization and Error Handling

 

Nobody likes dealing with bugs after their software is out in the wild. That's where defensive programming comes in. Starting with solid variable initialization is your first line of defense. Learn how to prevent those nasty surprises, handle those tricky constructor exceptions, and master the art of dealing with pesky nil pointers in Object Pascal.

 

References:
Initialised Variables - https://www.freepascal.org/docs-html/...
Declarations - https://www.freepascal.org/docs-html/...

 


 

Share this post


Link to post
Posted (edited)

Setting Up Delphi and RAD Studio for Android Development

Link: https://youtu.be/g7tvSlGoG0k

 

In this video, I walk you through the step-by-step process of configuring Delphi RAD Studio for Android development and using the SDK Manager to get the required packages. Along the way,  we learn how to overcome common challenges and get your development environment up and running.

 

Useful links:

https://en.delphipraxis.net/topic/10436-delphi-120-athens-is-not-correctly-installing-the-android-sdk/
http://delphi.org/2013/10/wireless-android-debugging-with-delphi-xe5/
https://stackoverflow.com/questions/31886049/list-installed-sdk-package-via-command-line

 

1520723435_BlackandPinkGradientModernTechnologiesYouTubeThumbnail.thumb.png.b2d947f6e75539cab9adb8e14d4c70df.png

Edited by silvercoder79
  • Thanks 2

Share this post


Link to post

#Delphi's Ternary Trick: IfThen vs. C's Conditional Operator

 

 

 

Ever wondered how to write concise conditional statements in Delphi? Discover the IfThen function, Delphi's equivalent to the C ternary operator. Learn how to use it effectively in your code for cleaner, more readable, and potentially more efficient solutions.

 

#Delphi #Programming #TernaryOperator #IfThen #CodingTips #Efficiency #Readability #ProgrammingLanguages

Share this post


Link to post
8 minutes ago, silvercoder79 said:

Discover the IfThen function

Next up: How to use "with" to make your code more readable.

  • Thanks 2
  • Haha 2

Share this post


Link to post
Posted (edited)
5 hours ago, silvercoder79 said:

the IfThen function, Delphi's equivalent to the C ternary operator.

omg, no!

 

5 hours ago, Anders Melander said:

Next up: How to use "with" to make your code more readable.

Followed by "How do I fix these random Access Violations that appear in my code"

Edited by Stefan Glienke
  • Haha 2

Share this post


Link to post
On 8/21/2024 at 10:32 AM, silvercoder79 said:

Discover the IfThen function, Delphi's equivalent to the C ternary operator

It may LOOK like a ternary, but looks deceive. It does NOT behave like a ternary op.
Both expressions will be evaluated/executed - and not one or the other.

The only place I use it, is when I want to emit const values, dependant on an expression.

  • Like 1
  • Thanks 1

Share this post


Link to post
On 8/21/2024 at 9:27 AM, Stefan Glienke said:

omg, no!

 

Followed by "How do I fix these random Access Violations that appear in my code"

And how to confuse the heck out of the debugger's evaluator.

Share this post


Link to post
On 8/21/2024 at 6:47 PM, Anders Melander said:

Next up: How to use "with" to make your code more readable.

in some universe it might work like that :)

 

there was a point in time when it made sense.

Share this post


Link to post

There is more to programming than just writing code! In this video, I explore the code formatter in Delphi... starts with a brief history of code formatting and its importance in software development. I also discuss a free book on code formatting principles before diving into a practical demonstration of how to effectively format your Delphi code. Join me as I share why code formatting matters and how you can do it in Delphi!

 

 

 

Links

 

Embarcadero Style Guide - https://docwiki.embarcadero.com/RADStudio/Athens/en/Delphi’s_Object_Pascal_Style_Guide
Object Pascal Guide by Bent Olsen - https://sourceforge.net/projects/object-pascal-style-guide/

 

Other References

 

https://ia600807.us.archive.org/6/items/ObjectPascalStyleGuide_201708/SoftwareEngineering/Object Pascal Style Guide.pdf
http://www.sourceformat.com/coding-standard-delphi.htm
https://wiki.overbyte.be/arch/IcsMidwareCodingStyle.pdf
https://www.win.tue.nl/~wstomv/edu/delphi/DelphiLanguageGuide.pdf

#Delphi #CodeFormatting #SoftwareDevelopment #ProgrammingTips #DelphiCode #Pascal #CleanCode #CodeQuality #CodingStandards #DeveloperTips

Share this post


Link to post

GExperts did not have a Code Formatter in the 90ies. There was only DelForEx by Egbert van Nees (and later a code formatter as part of project JEDI which today is part of the Lazarus IDE).

He donated that code to GExperts in the mid 2000ties and I integrated it into GExperts and over the years improved it (performance on large files more than doubled) and extended it to cover new language constructs that were added.

Edited by dummzeuch
  • Like 1
  • Thanks 1

Share this post


Link to post

i really do no understand why you publish this on youtube, why not a normal website where people can read this stuff ?

Stuff like this is much better taken into the brain while reading instead of watching a video.

 

Is it because you want to generate income from YT with it ?

Share this post


Link to post
15 minutes ago, mvanrijnen said:

Stuff like this is much better taken into the brain while reading instead of watching a video.

That depends on the brain; Some people prefer to read and some prefer to watch a video.

 

I also think it depends on the subject. Highly technical topics, reference material, and so on, are better in writing because we need them to be precise and unambiguous. But video is fine for entry level stuff and conceptual material.

I know that very few of our end-users ever read the documentation (they never notice when it falls behind) but the how-to videos get quite a lot of views and feedback.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×