Fork me on GitHub
#beginners
<
2023-08-17
>
stopa15:08:02

### Handling uuids / coercsions in general Context: Throughout my system I try to make it so all uuids are java.util.UUIDs. At the boundaries though I receive a bunch of nested json. I can't do a simple "convert these keys to UUIDs", as some structures come in as arrays. How do you handle this kind of coercion? I could just postwalk and parse-uuid if I can, but I wonder if there's something better. What do you do to coerce data at the boundaries?

Bob B16:08:27

This might not be directly applicable because the boundaries might be outside the sphere of influence, so take as little or as much from this as works for you but the nature of the context statement sounds very much like some of the rationale behind edn, e.g. "I have these UUIDs, but they're transmitted as strings because there's no way to indicate it's a UUID to a parser".

❤️ 2
Ben Sless20:08:00

Malli ❤️

❤️ 2
sheetz19:08:05

How do I combine window buffers in EMACS (with Cider) so I have 2 vertically split screens ? I only know how to switch between them individually, but I don't know how to put 2 window buffers side by side. I'm trying to have a text buffer on the left side and the CIDER REPL on the right side.

hiredman19:08:54

Do you mean emacs windows (where emacs itself is split to display multiple buffers) or windows in your gui (what emacs calls frames)

hiredman19:08:13

C-x 3 will split emacs into two vertical windows (emacs windows, not gui windows)

❤️ 2
sheetz19:08:06

worked ! thanks you !! =D !!

hiredman19:08:19

I think C-x o will cycle between them (I do it by muscle memory, and not at my keyboard to check)

❤️ 2
hiredman19:08:46

There is an #C099W16KZ too

emacs-spin 6
❤️ 2
sheetz20:08:29

ty for letting me know about the Emacs channel !! im super new to programming in General and that Emacs channel is def. gonna come in handy !!! i appreciate it !!! =D