![Supercharging Development Productivity Replay | Embarcadero RAD Studio Delphi C++Builder Blogs supercharging development productivity replay 2](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2022/01/ZmnFyFLuRbg-4400858.-7670640.jpg?resize=480%2C360&ssl=1)
When someone writes as much code as you do, it is important to make sure you are getting the most productivity for your time. This webinar focuses on tools, tips, and techniques to supercharge your effectiveness. Get your work done quicker. It is up to you what you will do with your free time after that.
Check back for the full replay
Table of Contents
Use Delphi
- Developer productivity – Really the main goal is getting things done quickly
- Maintainability – Code is easy to read and understand with good encapsulation
- Fast compiled native apps – Compiles fast, and native applications run fast
- Database access – Always includes a rich set of database access components
- Platform API access – You don’t need to call platform APIs, but can if you want
- Property-Method-Event – General model for working with components
- Visual designers – WYSIWYG with drag and drop interface
- Reliable applications – Exception handling and component owner model
- Backwards compatibility – Even with all the updates most code is compatible
- Rich component ecosystem – There is usually a component for everything
Delphi Books
GDK Software Tips
- Delphi plugins
- Delphi IDE Shortcuts
- Live Templates (or Code templates)
- Various useful links
- https://gdksoftware.com/knowledgebase/delphi-tips-and-tricks
MMX, ModelMaker Code Explorer
- More structured way of programming; code searching; improved refactoring
- Check out out Uwe Raabe CodeRage 2018 demo here
CodeRage Deutschland 2018 – Session 07 – Effizient arbeiten mit MMX Code Explorer – YouTube - Details about productivity tool or tip
Read the Book
- “Code Faster in Delphi”, from Alister Christie
- lots of useful tips for improving development productivity
- Details about productivity tool or tip: IDE shortcuts; blind typing training
- Link to more information:
- learndelphi.tv/codefaster
- DelphiCon 2021 session (Maximize Your Delphi Productivity)
Use Components
- Learn some general and specialized component libraries
- Why use it? because it’s far more productive to not reinvent the wheel; because it’s far more safe to use a thoroughly tested library than using its own code.
- Details about productivity tool or tip: learn, learn, learn; play with them in building little sample projects.
More on Spring4D
YouTube
- Introduction to Spring4D Taking Delphi Development to the Next Level with Stefan Glenke
- Dependency Injection with Spring4D by Nick Hodges
Download
Book
PyScripter
The lightweight, full-featured, open-source Python IDE for Windows.
- Syntax Highlighting Editor
- Integrated Python Interpreter
- Full Python debugging with support for remote debugging
- Integrated Unit testing
- Integration with Python tools like PyLint, TabNanny, Profile etc.
- embarcadero.com/free-tools/pyscripter/free-download
Environment Consistency
When setting up new development machine:
- Use Delphi IDE Theme Editor
- Associate a theme with each version of Delphi
- Use the same root path for projects
- Create VHD or use SUBST
- Sync your Code Templates
- e.g. OneDrive or DropBox
- Sync your web browser’s bookmarks
https://corneliusconcepts.tech/delphi-productivity-tips-environment-consistency or just CorneliusConcepts.tech – this new blog is the top entry
Automate your builds
Using MSBuild, a build script can be as simple as a short batch file.
This gives a consistent, reproducible build every time without the IDE.
It’s a trivial example, but as you add projects, unit tests and other tasks and dependencies to your build, it saves more time and avoids repetitive tasks.
You can even automate builds that use multiple versions of Delphi.
Don’t use “WITH”!
‘Nuff said…
David I.’s Top 10 Tips
1) write less code – use components, existing code (open source?), or previously created projects as a start to get work done faster.
2) write/find programs that generate/automat the code for you – wizards, project/code templates, IDE add-ins, refactoring tools, etc.
3) watch Alister Christie’s videos about being a more productive Delphi developer, use IDE short-cuts
4) think before you start writing code – make sure tasks are clear in your designs, documents, thoughts and lists
5) write unit tests to find problems early in your development
6) take breaks away from the keyboard to rest, reflect, think, give your eyes a break, …
7) avoid distractions, block out time away from mobile phones, TV, etc and ensure that your work space is set up for you to get more done.
8) Make sure you get a good night’s sleep. I’ve often solved/found bugs or cemented thoughts while I was sleeping.
9) Run ideas by fellow developers and/or team members before you launch into development – they might give you suggestions, tips, techniques and links.
10) Use modern development tools – IDEs with great programmable editors, GitHub, Team/Channel systems, background compiles/builds/tests/docgen, bug tracking, etc.
David I’s Resource Links
- https://www.developerdrive.com/productivity-tips-for-developers-and-programmers/
- https://livecodestream.dev/post/6-productivity-tips-every-developer-should-know/
- https://gitential.com/our-top-10-productivity-tips-for-software-developers/
- https://www.geeksforgeeks.org/8-effective-tips-to-increase-productivity-as-a-developer/
- https://www.codespot.org/productivity-tips-for-developers-and-programmers/
- https://levelup.gitconnected.com/productivity-tips-for-programmers-6519939914ca
- https://www.infoworld.com/article/3118043/the-top-11-productivity-tips-for-coding-engineers.html
- https://ourcodeworld.com/articles/read/1289/7-productivity-tips-for-developers
- https://www.tiny.cloud/blog/developer-productivity/
- https://itenterprise.co.uk/productivity-tips/
- https://www.i-programmer.info/news/99-professional/14365-five-ways-to-improve-your-personal-productivity-as-a-developer.html
- https://cloudemployee.co.uk/blog/productivity/10-productivity-tips-straight-from-our-software-developers
- https://www.cosmicdevelopment.com/blog/productivity-tips-for-developers-in-2022/
Know your keyboard shortcuts (Some of my favorites…)
- Ctrl+Shift+C: Class Completion
- Ctrl+Shift+Down Arrow: Jump between interface and implementation of a method
- Ctrl+Shift+J: Sync Edit
- Ctrl+Shift+R: Start keyboard macro recording
- Ctrl+Shift+P: Playback recording
- Use GExperts to manage multiple recordings and save them across Delphi sessions
- Or use a keyboard with programmable keys for your favorite macros (also works outside of Delphi!)
- Ctrl+O,C: turn on column select mode
- Ctrl+O,K: turn off column select mode
- Bonus Blog post on Column Select Mode from Ray Konopka delphibydesign.com/column-selection-trick/
Related Grijjy Blog Articles
- Decrease Your Build Time by pre-compiling common libraries to DCUs:
blog.grijjy.com/2021/04/05/build-speed/ - Use inline variables and type inference to reduce the amount of code you write:
blog.grijjy.com/2018/11/02/inline-variables-can-increase-performance/ - Improve mobile compilation speeds by adjusting project options:
blog.grijjy.com/2017/02/01/improve-android-and-ios-debug-compilation-speed
DelphiCon 2021 – Catch the replays
- https://delphicon.embarcadero.com/replays/
- https://www.youtube.com/playlist?list=PLwUPJvR9mZHjrhMcg1PEbkIl2BUfDbJBM
UltraEdit
![UEv24111281 | Embarcadero RAD Studio Delphi C++Builder Blogs uev2 4111281](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2022/01/UEv2-4111281-8706297.jpg?w=750&ssl=1)
Router4D
- Framework for creating routes between screens in Delphi VCL and FMX inspired by React.JS Router
- https://github.com/academiadocodigo/Router4Delphi
Safety4D
- Framework for user access control based on the RBAC (role-based access control) concept, with it you create access rules based on JSON and perform validations in a simple way in the framework
- https://github.com/academiadocodigo/safety4d
LocalCache4D
- Mini DB with key value structure to perform local application data caching
- https://github.com/academiadocodigo/localcache4d
Bind4D
- Framework for performing Bind via Attributes notation in form components.
- Bind4D aims to facilitate the data transition between the view layer and the other layers of your system, automatically converting data from a form to JSON using notation, assigning styles to components, performing field validation, dataset display configuration in a DbGrid and much more.
- https://github.com/academiadocodigo/Bind4D
SimpleORM
- Simple ORM to perform CRUD on all Databases supported by Firedac, its goal is to perform only CRUD without needing much configuration.
- https://github.com/academiadocodigo/SimpleORM
Dalija’s Productivity Slide
- Reduce distractions
- Focus on work you know you can do at a given moment
- Take breaks
- Understand the problem well before coding the solution
- Don’t be afraid to discard code and start over
- Write unit tests
- Essential tools:
- rubber duck – helps to understand the problem
- paper and pencil – helps to sketch code flow
- Git – committing often helps to revert back to a good point
- dalijap.blogspot.com/2022/01/productivity-tips.html
IDE Visualizers
- What is it? A debug value visualizer
- Why use it? When a human readable form is hidden in the value.
- How use it? Create and install plugin – see sample and docwiki.
- Details about productivity tool or tip
- Link to more information: https://docwiki.embarcadero.com/RADStudio/en/Visualizers
Live Templates – add your own
- What is it? Code Templates
- Why use it? Minimize typing and add your own favorites snippets
- How use it? Invoked by Ctrl-J or Ctrl-space just like the others
- Link to more information: https://docwiki.embarcadero.com/RADStudio/en/Live_Templates
The Pomodoro technique
- Use it to focus your efforts in timed chunks of work
- Invented by Francesco Cirillo
- en.wikipedia.org/wiki/Pomodoro_Technique
- You can use a physical timer, an app or a web app
- I personally like tomato-timer.com which is free!
Tomato Timer – What is good about it?
- It’s a bit of a “brain hack” which helps encourage you to really zone in on a task
- Encourages you to take regular – but managed – breaks
- Can be used to ‘gamify’ your work rate by trying to get a high score of completed Pomodoros (work sessions)
- I use 40 minute work sessions, 5 minute breaks which means 2 work sessions with the breaks equals 90 minutes. I found this better for me as a developer than 20 minute sessions
Other tips that work for me
- Wherever possible, have a regular start time, lunch time, end time especially if you work from home
- Use a “to do” list app like Microsoft ToDo, Trello or AnyList so you off-load and declutter your short-term memory
- Ask people to communicate by email – so you can deal with it when it’s an appropriate moment
- NEVER have a TV, video, talk radio or audiobook playing while you work – music only
- Walk your dogs/kids/yourself, and you will automatically solve problems with your subconscious
Typora
- What is it? Full features Markdown editor
- Why use it? It is the only WYSIWYG editor. It supports mermaid diagrams (https://mermaid.live/). It is fantastic for explain a concept to a customer. Notes and diagram in the same place. Using markdown you can do all the fancy stuff you can do with Git because it’s just text. Exports in PDF, HTML and other formats. If you need, you can export in odt or docx too.
- How use it? To get notes, write documentation, write book… really anything. It’s fast, looks nice, themeable.
- Details about productivity tool or tip: It isn’t free but is cheap
- Link to more information: https://typora.io/
Multi Commander
- What is it? A dual-pane file manager like Total commander but it’s free.
- Why use it? Fast, maintained, full features, lots of plugin
- How use it? Just open it and navigate through you folders using the configurable shortcuts
- Details about productivity tool or tip: Supports “Explorer” like selection os[sic] other kind of selection/interaction.
- Link to more information: http://multicommander.com/
Everything – Search files by name
- What is it? A blazing fast engine to search over your drives
- Why use it? It is fast, supports regex, can be installed on a file server to provide a web UI to search files
- How use it? Just install it. It stays in the tray eating very low memory.
- Details about productivity tool or tip: You will be addicted to it, believe me.
- Link to more information: https://www.voidtools.com/
Agent Ransack – Search in files
AutoHotkey
- Let’s you bind complex macros to any keyboard shortcut
- Free, open-source scripting language for Windows that allows users to easily create small to complex scripts for all kinds of tasks such as: form fillers, auto-clicking, macros, etc.
- Super flexible and powerful
- www.autohotkey.com
Invoke
- What is it? a Pythonic task runner
- Why use it? Very fast to graps, easy to use. If you like Python you’ll love it.
- How use it? Just create a tasks.py file in your project root and start to define your “command” as Python function decorated with the @task attribute. I’m planning to write a Delphi task runner with the same approach.
- Details about productivity tool or tip: read the examples. DMVCFramework, LoggerPro and lot of other projects uses invoke to handle build, testing, release and other day-by-day task.
- Link to more information: https://www.pyinvoke.org/
HTTPie
- What is it? The curl of the 3rd millennium
- Why use it? Testing JSON API is easier and automatable
- How use it? Command line
- Link to more information: https://httpie.io/
THE DELPHI PARSER’S CODE MIGRATION & ANALYSIS TOOLS
- What is it?
- Automatic software utility robots specializing in code refactoring & static code analysis.
- Quickly modernize huge legacy Borland Delphi & C++ Builder software systems to latest RAD Studio 11
- Run a deep code dependencies analysis into huge legacy Delphi code
- Quickly migrate old BDE code (or alike) to work with newest FireDAC
- Migrate legacy clientserver architecture to cloud-based app with web-services
- Migrate obsolete VCL components to newest technology
- Convert Desktop Application using VCL to Web using UniGUI technology
- Why use it?
- Quickly scans, analyzes & rewrites millions of lines of code
- No man-made bugs!
- Reduce 90% of workload & development cost
- Speed up production & time to market
- Built to serve top industry enterprises, governments & defense forces
- Fully customizable wizard with a simple editable scripting tool
- An open framework with developer’s full Kit & wizard’s source code
- 100% pure Delphi
- Works like Magic!
- How use it?
- To watch the Delphi Parser tools in action on your own code download free evaluation tools at: www.DelphiParser.com
- More information
- YouTube: www.youtube.com/c/OrenAviram-delphiparser
- Facebook: facebook.com/delphiparser
- Twitter: twitter.com/DelphiParser
- LinkedIn: linkedin.com/in/orenaviram
- E-Mail: [email protected]
BeyondCompare
- Compare & Merge
- Files & Folders
- Syntax Aware
- Image Compare
- FTP Support
- Synchronize Folders
- scootersoftware.com
AI Code Completion
- VS Code CoPilot
- TMS WEB Core
- TabNine – Multi-IDE/Multi-Language
Next Steps
- Start a RAD Studio trial embarcadero.com/products/rad-studio/start-for-free
- Get Community Edition embarcadero.com/products/delphi/starter
- Upgrade Today! embarcadero.com/app-development-tools-store/rad-studio
- Read the whitepaper embarcadero.com/resources/white-papers
- See special offers embarcadero.com/radoffer
- Subscribe on YouTube youtube.com/c/EmbarcaderoTechnologies
- Follow us on Twitter twitter.com/embarcaderotech
- Like us on Facebook facebook.com/embarcaderotech
- Follow us on LinkedIn linkedin.com/company/embarcadero-technologies
- Read our blog blogs.embarcadero.com
Up next: whether you’re a beginner or a professional, this compiler explorer tutorial will help you remember the language features essential in C++ programming.
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition