Article Danny Wijnschenk · Jul 19, 2022 4m read Caution with Mixing OO and SQL Mixing Object syntax with SQL is one of the nice features in Object Script. But in one case, it gave strange results, so I decided to isolate the case and describe it here. Let's say you need to write a classmethod that updates a single property on disk. Usually, i would write that using SQL like this : #Coding Guidelines #ObjectScript #Caché 2 5 0 309
Article Danny Wijnschenk · Nov 25, 2017 4m read Final Advent of Code 2016 Day25: Clock Signal This is (the end) of a series of programming challenges for beginners and experienced Caché programmers.For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta...This is the 25th and last challenge of the 2016 series of Advent of Code. #Caché #Code Snippet #Contest #ObjectScript 2 1 0 471
Article Danny Wijnschenk · Nov 24, 2017 11m read Advent of Code 2016 Day24: Air Duct Spelunking This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... #Caché #Code Snippet #Contest #ObjectScript 0 0 0 263
Article Danny Wijnschenk · Nov 23, 2017 4m read Advent of Code 2016 Day23: Safe Cracking This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... Remember the assembunny language we had to code on day 12 (https://community.intersystems.com/post/advent-code-2016-day12-leonardos...)? #Caché #Code Snippet #Contest #ObjectScript 0 0 0 321
Article Danny Wijnschenk · Nov 22, 2017 5m read Advent of Code 2016 Day22: Grid Computing This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... #Caché #Code Snippet #Contest #ObjectScript 1 0 0 585
Article Danny Wijnschenk · Nov 21, 2017 5m read Advent of Code 2016 Day21: Scrambled Letters and Hash This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... The challenge of day 21 is about scrambling passwords. There are a few functions you need to implement that will do operations on a string : #Caché #Code Snippet #Contest #ObjectScript 2 0 0 375
Article Danny Wijnschenk · Nov 20, 2017 3m read Advent of Code 2016 Day 20: Firewall Rules This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... We are almost there : after this challenge, only 5 days left till the end of this advent of code (I cannot wait to get my life back !) . #Caché #Code Snippet #Contest #ObjectScript 1 0 0 341
Article Danny Wijnschenk · Nov 19, 2017 3m read Advent of Code 2016 Day19: An Elephant Named Joseph This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... Today's challenge is a variation on the White Elephant gift exchange (https://en.wikipedia.org/wiki/White_elephant_gift_exchange), in this case, by a bunch of Elves where only one can have all gifts. #Caché #Code Snippet #Contest #ObjectScript 2 0 0 392
Article Danny Wijnschenk · Nov 18, 2017 4m read Advent of Code 2016 Day18: Like a Rogue This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... You walk into a room, step on a tile and hear a loud click... Traps ! The challenge is about avoiding traps. You can recognise if a tile is a trap by following scheme : #Caché #Code Snippet #Contest #ObjectScript 1 0 0 225
Article Danny Wijnschenk · Nov 17, 2017 4m read Advent of Code 2016 Day17: Two Steps Forward ##########S| | | ##-#-#-#-## | | | ##-#-#-#-## | | | ##-#-#-#-## | | | ####### V <!--break--> This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... #Caché #Code Snippet #Contest #ObjectScript 1 0 0 367
Article Danny Wijnschenk · Nov 16, 2017 6m read Advent of Code 2016 Day16: Dragon Checksum This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... The challenge of day 16 is about generating random data using a modified version of a dragon curve (you can find more info on fractal curves like Dragon here : https://en.wikipedia.org/wiki/Dragon_curve). #Caché #Code Snippet #Contest #ObjectScript 0 0 0 328
Article Danny Wijnschenk · Nov 15, 2017 3m read Advent of Code 2016 Day15: Timing is Everything This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction and an index of all articles: go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... #Caché #Code Snippet #Contest #ObjectScript 0 0 0 293
Article Danny Wijnschenk · Nov 14, 2017 5m read Advent of Code 2016 Day14: One-Time Pad This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... The challenge today is about some basic cryptography : you will have to generate data for a one-time pad (OTP) (see https://en.wikipedia.org/wiki/One-time_pad for more info). #Caché #Code Snippet #Contest #ObjectScript 0 0 0 394
Article Danny Wijnschenk · Nov 13, 2017 5m read Advent of Code 2016 Day13: A Maze of Twisty Little Cubicles This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... Today, you have to find a path through a maze. To know if a coordinate is a wall or an open space, you will have to do a calculation like this : #Caché #Code Snippet #Contest #ObjectScript 0 0 0 314
Article Danny Wijnschenk · Nov 12, 2017 3m read Advent of Code 2016 Day12: Leonardo's Monorail This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... Today, you need to make a compiler for the language assembunny.Luckily, this language has only 4 instructions : #Caché #Code Snippet #Contest #ObjectScript 1 1 0 381
Article Danny Wijnschenk · Nov 11, 2017 9m read Advent of Code 2016 Day11: Radioisotope Thermoelectric Generators This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... #Caché #Code Snippet #Contest #ObjectScript 1 0 0 593
Article Danny Wijnschenk · Nov 10, 2017 4m read Advent of Code 2016 Day10: Balance Bots This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... In today's challenge, you have to execute instructions that control how bots are handling microchips. The input contain instructions that can be something like this : #Caché #Code Snippet #Contest #ObjectScript 2 1 0 363
Article Danny Wijnschenk · Nov 9, 2017 4m read Advent of Code 2016 Day9: Explosives in Cyberspace This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... Today's challenge is about decompressing input that is compressed in an experimental format.In the format, markers indicate how much time a number of characters need to be repeated. For example : #Caché #Code Snippet #Contest #ObjectScript 2 3 0 581
Article Danny Wijnschenk · Nov 8, 2017 3m read Advent of Code 2016 Day8: Two-Factor Authentication This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... The challenge of today has nothing to do with real two-factor authentication ! (sorry if you came to this article by searching the real thing) #Caché #Code Snippet #Contest #ObjectScript 1 1 0 266
Article Danny Wijnschenk · Nov 7, 2017 5m read Advent of Code 2016 Day7: Internet Protocol Version 7 This is a series of programming challenges for beginners and experienced Caché programmers. For an introduction : goto to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-ta... #Caché #Code Snippet #Contest #ObjectScript 1 2 0 384