2020 in review: Our top 10 blog posts!
It’s that time of the year where we take a look back at ten of our most-read posts. Without further ado, let’s take a look at the topics that grabbed your attention in 2020:
Latest news about 4D on Silicon
Since Apple’s first announcement about Silicon, we’ve been keeping you informed through a series of blog posts and this post is no different!
So what’s going on? Well, the first Silicon Macs equipped with the brand new M1 chip are now available on the market. Here are two important pieces of information we need to share with you:
Sharing leads to performance
Following this blog post about the new concept of shareable entity selections and the subsequent discussions on the forum, we’ll now take the time to explain how ORDA fits into the future.
6 practical examples on how to use macros
4D 18 R5 introduced form macros. They can be incredibly useful, for example, by providing an ideal way to save time on repetitive tasks. In this blog post, we’ll show you some basic examples to learn more about how macros work and the possibilities they offer. All of the following examples are available on GitHub.
Automate repetitive tasks and more with form macros!
If you’re a fan of macros in the code editor, then 4D v18 R5 has some good news for you … because now macros are also available in the form editor!
Let me start by telling you how useful macros can be for you. Have you ever needed to use formatting or naming rules in your application, then apply them to each new form? Or maybe you’ve had to work on existing forms created by someone else, and always need to do the exact same checks and analyses before getting started. If you’ve ever encountered one of these scenarios, then 4D v18 R5 is for you because it gives you the ability to create macros and save time on predictable, repetitive tasks.
Coder-friendly syntax for class functions and methods
Using $1, $2, and $n variables in your code not only makes the code less readable, it can also increase confusion since the human brain can find it difficult to remember what these variables correspond to. The solution is to create a variable with an understandable name and assign it the value of $1, $2, or $n.
4D v18 R5 has good news, you can now name your parameters when declaring:
- a project method,
- a trigger
- a database method
- a form method
- a constructor of a class
- a function of a class.
Let’s see how!
ORDA – Improve your API with function scope
4D v18 R4 and ORDA made it possible for you to create high-level class functions above the data model. This allows you to write business-oriented code to hide complexity, reduce errors, and speed up the development process.
With 4D v18 R5, we’re bringing even more features to help you optimize and organize your code. For example, you might need to run a function locally on the client to improve performance when working in client/server mode. It’s now possible! Or if you expose your database as a REST server, you might want some functions to be available on the server-side but hidden for your REST clients. This is also possible!
4D v18 R4 is Here
I’m very happy to announce that 4D v18 R4 is now available!
4D v18 R4 is one of the best feature releases ever delivered, with 20+ new features added to 4D’s ever-growing list.
From the 4D language that keeps getting better, to new capabilities 4D for iOS offers for building enriched apps, to the implementation of 4D Write Pro features you’ve requested. PLUS a whole new set of 4D View Pro commands to give you further control over your documents.
Without further ado, here’s a sneak peek of what’s in store for you:
How to create a simple “TimeStamp” class in 4D
by guest author Tiran Behrouz, 4D developer (Vancouver, Canada)
The introduction of ORDA in 4D v17 was a game-changer. Now with the introduction of classes in 4D v18 R3, we will witness a paradigm shift in 4D programming. We can now take advantage of object-oriented programming concepts such as polymorphism, composition, and inheritance to write our own class libraries. In this video, I demonstrate how to code a simple TimeStamp class using 4D and ORDA.
Tips: ORDA Data Model Classes
By now you’re aware of the availability of ORDA classes. In this blog post, you’ll learn a few handy tips to get the most out of them!
Contact us
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!
* Your privacy is very important to us. Please click here to view our Policy