Find

Article
· 21 hr ago 2m read

From "Oops" to "Aha!" - Avoiding Beginner Mistakes in ObjectScript

Starting out with ObjectScript, it is really exciting, but it can also feel a little unusual if you're used to other languages. Many beginners trip over the same hurdles, so here are a few "gotchas" you'll want to watch out for. (Also few friendly tips to avoid them)


NAMING THINGS RANDOMLY

We have all been guilty of naming something Test1 or MyClass just to move on quickly. But once your project grows, these names become a nightmare. 

➡ Pick clear, consistent names from the start. Think of it as leaving breadcrumbs for your future self and your teammates.


MIXING UP GLOBALS AND VARIABLES

Globals (^GlobalName) can be confusing at first. They're not just normal variables. They live in the database and stick around even after your code stops running.

➡ Use them only when you really need persistent data. For anything else, stick with local variable. (This also saves storage.)


FORGETTING TRANSACTIONS

Imagine updating a patient record, and your session crashes halfway. Without a transaction, you are left with half-baked data.

➡ Wrap up important updates in TSTART/TCOMMIT. It is like hitting "save" and "undo" at the same time.


BUILDING SQL IN STRINGS

It is tempting to just throw SQL into strings and execute it. But that quickly gets messy and hard to debug.

➡ Use embedded SQL. It's cleaner, safer and easier to maintain.

EXAMPLE:

❌ Building SQL in Strings

Set id=123
Set sql="SELECT Name, Age FROM Patient WHERE ID="_id
Set rs=##class(%SQL.Statement).%ExecDirect(,sql)

✅ Using Embedded SQL

&SQL(SELECT Name, Age INTO :name, :age FROM Patient WHERE ID=:id)
Write name_" "_age,!

SKIPPING ERROR HANDLING

Nobody likes seeing their app crash with a cryptic message. That usually happens when error handling is ignored.

➡Wrap risky operations in TRY/CATCH and give yourself meaningful error messages.


IGNORING BETTER TOOLS

Yes, the terminal works. But if you only code there, you are missing out.

➡ Use VS Code with the ObjectScript extension. Debugging, autocomplete, and syntax highlighting make life so much easier.


REINVENTING THE WHEEL

New developers often try writing their own logging or JSON handling utilities, not realizing ObjectScript already has built-in solutions.

➡ Explore%Library and dynamic objects before rolling your own.


WRITING "MYSTERY CODE"

We have all thought "I'll remember this later."

⚠️SPOILERYOU WON'T! 

➡ Add short, clear comments. Even a single line explaining why you did something goes a loooong way.


 

FINAL THOUGHTS : )

Learning Objectscript is like learning any other new language. It takes a little patience, and you will make mistakes along the way. The key is to recognize these common traps early and build good habits from the start. That way, instead of fighting the language, you will actually enjoy what it can do. :)

4 new Comments
Discussion (4)1
Log in or sign up to continue
Question
· 21 hr ago

ExportUDL adds extra line at the end of class

Hi,

so we introduced GIT in our workflow and we exported all files with $SYSTEM.OBJ.ExportUDL

Everything fine so far. But for some reason the export adds an extra line for classes (Routines are OK as far as I can see):

On Serverside it isn't there

 

The Problem is now that when we checkout a branch and a class changed we automatically compile it from the repository to a namespace that is made for the developer. E.g. DEV_001, DEV_002 and so on. 

Now when the class get's compiled the objectscript plugin replaces the local version with the version that the server compiled, so the last line get's removed. And now GIT says there is a change in the file:

Discarding the change in GIT  results in a new change in the file wich is detected by the plugin and starts a new compile. Again, the compile removes the last line. So we are in a loop. 

What are we doing wrong here? Can't be working as intended. 

 

Objectscript-Plugin Version 3.0.6

 

BR

Jochen

2 new Comments
Discussion (2)2
Log in or sign up to continue
Digest
· 21 hr ago

InterSystems Developers Publications, Week September 08 - 14, 2025, Digest

Articles
Announcements
Questions
Discussions
#Other
Introduction to New Memebers
By Rajesh Shirsagar
September 08 - 14, 2025Week at a GlanceInterSystems Developer Community
Digest
· 23 hr ago
Article
· 23 hr ago 6m read

Abu Dhabi City Tour Journeys Through History and Modern Life

Abu Dhabi, the capital of the United Arab Emirates, offers travelers an exceptional blend of heritage, modern architecture, and cultural richness. A well-planned Abu Dhabi City Tour takes you on a journey that captures the spirit of this dynamic destination while revealing hidden gems that showcase its elegance and diversity. Every step through the city unveils traditions preserved in harmony with innovative development.

Sheikh Zayed Grand Mosque: A Spiritual Masterpiece

One of the most iconic stops on any Abu Dhabi City Tour is the Sheikh Zayed Grand Mosque, a landmark of Islamic architecture and spirituality. With its gleaming white marble, intricate floral designs, and expansive courtyards, the mosque captures the essence of timeless artistry. Travelers feel inspired by the breathtaking domes, reflective pools, and elegant chandeliers. The mosque represents more than a place of worship—it embodies the cultural identity of the nation, offering visitors peace and a profound connection to Emirati heritage.

Corniche Waterfront: A Stroll by the Sea

Your Abu Dhabi City Tour would be incomplete without a leisurely walk along the Corniche waterfront. This sweeping promenade stretches across the coastline, offering pristine beaches, cycling paths, and shaded areas perfect for relaxation. Families, couples, and solo travelers alike enjoy the calm of the turquoise waters while taking in panoramic views of the modern skyline. The Corniche reflects how Abu Dhabi balances urban sophistication with natural beauty, creating a haven where leisure and lifestyle intertwine.

Heritage Village: A Step Back in Time

During an Abu Dhabi City Tour, exploring the Heritage Village transports visitors to the city’s past. This reconstructed traditional village recreates the charm of desert life before the oil era transformed the region. From mud-brick houses and weaving workshops to spice markets and fishing tools, every detail echoes the resilience of Emirati ancestors. Visitors gain firsthand knowledge about the skills, crafts, and traditions that shaped the nation. This site strengthens cultural appreciation and deepens one’s understanding of Abu Dhabi’s transformation.

Louvre Abu Dhabi: Where Art Meets Innovation

For those passionate about art and culture, the Louvre Abu Dhabi remains a must-see destination on an Abu Dhabi City Tour. Designed by Jean Nouvel, its iconic dome filters sunlight to create a “rain of light” effect, adding magic to the galleries. Inside, masterpieces from different civilizations connect humanity across time and geography. The museum’s exhibits blend Eastern and Western influences, creating dialogues between cultures. It stands as a global cultural beacon, reminding visitors that Abu Dhabi is not only modern but also a guardian of universal heritage.

Yas Island: A Hub of Adventure and Entertainment

A highlight for thrill-seekers on an Abu Dhabi City Tour is Yas Island, home to world-class entertainment. Ferrari World attracts car enthusiasts with adrenaline-pumping rides, including the fastest roller coaster in the world. Yas Waterworld offers family-friendly fun with innovative slides and water activities. Meanwhile, Yas Marina Circuit hosts Formula 1 events that showcase the city’s global appeal. With its resorts, shopping centers, and attractions, Yas Island reflects Abu Dhabi’s vision of blending leisure with international luxury standards.

Qasr Al Watan: The Palace of Knowledge

A remarkable addition to an Abu Dhabi City Tour is Qasr Al Watan, the presidential palace that welcomes visitors to experience the grandeur of Emirati leadership. The palace features intricate Arabian architecture, dazzling chandeliers, and ornate halls that reveal the nation’s dedication to art and governance. Beyond its aesthetic appeal, Qasr Al Watan educates visitors about UAE’s history, constitution, and vision for the future. Touring the palace instills respect for the nation’s leadership and admiration for its cultural depth.

Saadiyat Island: A Blend of Nature and Culture

When you embark on an Abu Dhabi City Tour, Saadiyat Island offers a tranquil escape that harmonizes nature with culture. Known for its pristine beaches and protected wildlife, the island also hosts cultural institutions like the upcoming Guggenheim Abu Dhabi and Zayed National Museum. Saadiyat’s blend of sustainability and modernity creates an environment where relaxation and intellectual discovery coexist. The island embodies Abu Dhabi’s ambition to become a cultural capital while preserving its natural treasures.

Local Markets: A Taste of Authenticity

No Abu Dhabi City Tour feels complete without exploring the local souks that buzz with life and color. From traditional carpets and perfumes to gold jewelry and spices, these markets bring travelers closer to authentic Emirati culture. The Al Mina Fish Market offers a vibrant glimpse into daily life as locals bargain for fresh catches of the day. These traditional marketplaces provide not just souvenirs but also memories that last far beyond the journey. They remind visitors of the timeless spirit of community that defines Abu Dhabi.

Modern Skylines and Architectural Wonders

A fascinating aspect of an Abu Dhabi City Tour lies in admiring the skyline punctuated by futuristic towers. Structures like Etihad Towers and Capital Gate push architectural boundaries while symbolizing the emirate’s forward-looking vision. These landmarks stand as symbols of innovation and progress, blending technology with artistry. Travelers marvel at the contrast between soaring skyscrapers and historical sites, appreciating Abu Dhabi as a city that respects its past while embracing tomorrow.

Cultural Festivals and Local Traditions

Experiencing festivals during an Abu Dhabi City Tour offers deep insight into the city’s traditions. Events like the Abu Dhabi Film Festival, Al Dhafra Camel Festival, and various cultural celebrations showcase the vibrancy of Emirati identity. Music, art, and heritage blend seamlessly, offering visitors opportunities to engage directly with local culture. These festivals not only highlight creativity but also encourage cross-cultural understanding, making the tour an enriching experience that transcends sightseeing.

Culinary Delights: Flavors of Abu Dhabi

Food plays an important role in any Abu Dhabi City Tour, inviting travelers to savor local and international cuisines. From aromatic shawarmas and traditional Emirati dishes like harees to luxurious dining experiences offered by Michelin-starred restaurants, Abu Dhabi satisfies every palate. Culinary experiences reflect the city’s multicultural identity, where flavors from around the world merge into a diverse food culture. Dining in Abu Dhabi becomes a journey of its own, blending tradition with innovation on every plate.

The Future of Abu Dhabi Tourism

Looking ahead, an Abu Dhabi City Tour promises even greater experiences as the city continues to expand its offerings. Upcoming projects focus on sustainability, smart city technology, and world-class cultural institutions. Travelers can expect eco-friendly resorts, innovative entertainment hubs, and enhanced transport facilities that make exploration seamless. Abu Dhabi’s dedication to growth while respecting tradition ensures that every future tour will be even more rewarding.

Conclusion: A Journey of Discovery

An Abu Dhabi City Tour represents more than just a sightseeing experience—it is a journey through culture, history, and innovation. Each stop unveils a different layer of the emirate, from the architectural majesty of Sheikh Zayed Mosque to the thrilling adventures of Yas Island. Visitors walk away with not only photographs but also lasting memories of heritage, modernity, and Emirati hospitality. Whether you are a first-time traveler or a returning guest, Abu Dhabi promises timeless wonders that make every tour unforgettable.

Discussion (0)1
Log in or sign up to continue