Genie Discord forum

Author Avatariamcomcy
2/2/2023, 11:47:50 PM

Newbie to Julia with a little background in database programming. I am trying to build a survey app that would allow building a collection of survey questions with standard replies, like, (yes/no) (multiple choice (1)), (agree/neutral/disagree 1:5) but also allow survey taker input to a list of text answers provided, so a tuple of text? Answers might look like this: ("I", "don't", "know", ...) add "foo", add "bar"

using SearchLight

function up() create_table(:questions) do pk() column(:question, ) column(:answers, : #no idea what to put here - fails, fails etc.

Author AvatarPere
2/5/2023, 10:03:19 PM

I don't know about storing the answers as tuple objects, but you could store them as a single string with a specific delimiter. For instance answers = "answer1 | answer2 | answer3". Then you could recover each individual answer with answer_array = split(answers, "|")

Author Avatarabhimanyuaryan
2/6/2023, 5:31:44 AM

this is an example survey app build with genie. Not sure if it contains the question your asked. @tecosaur would know

https://github.com/tecosaur/emacs-survey

Author Avatartecosaur
2/7/2023, 6:26:42 AM

Yea, I'm mostly happy with what I ended up with there

Author Avatartecosaur
2/7/2023, 6:27:01 AM

the framework is generic, but the particular config file that exists is for the Emacs survey