emacs-survey/config/survey.jl

373 lines
21 KiB
Julia
Raw Normal View History

2022-10-02 08:18:24 +00:00
# SPDX-License-Identifier: CC-BY-SA-4.0
2022-05-19 14:14:47 +00:00
Survey(
"Emacs User Survey — 2022",
2022-05-19 14:14:47 +00:00
"Help the community have a better understanding of itself and its
own diversity in Emacs usage. Discover and show how people are using
this versatile tool for everything, from software engineering to
academia and journalism.
<br/>
You can read about the 2020 survey and results <a href=\"https://emacs-survey.netlify.app/\">here</a>.
2022-05-19 14:14:47 +00:00
<br/><br/>
2022-10-17 17:11:18 +00:00
This takes most people 515 minutes to complete.",
2022-05-19 14:14:47 +00:00
SurveyPart("Emacs Usage",
MultiSelect(:emacs_tasks,
"Which of the following activities do you use Emacs for?",
["Work", "Hobby projects", :other]),
IntegerInput(:emacs_years,
2022-05-19 14:14:47 +00:00
"How many years have you been using Emacs for?",
validators = v -> if v < 0
"Seriously? Are we supposed to believe you're just planning ahead?"
elseif v > 45
"Oh really? 🤨"
end),
2022-10-16 15:00:33 +00:00
MultiSelect(:emacs_version,
"Which version(s) of Emacs do you use?",
["29 (master/HEAD)" => "29.0",
"28.2", "28.1", "27.2", "27.1", "26.3", :other],
validators = vs -> for v in vs
if isnothing(match(r"^\d+\.\d+$", v))
return "Please give the MAJOR.MINOR version number as your response, not $v"
elseif parse(VersionNumber, v) < v"18"
return "Ok, Emacs $v is pushing the bounds of believability a bit much..."
elseif parse(VersionNumber, v) > v"29.0"
return "You should have mentioned that you're a time traveller using Emacs $(v)!"
end end),
2022-05-20 16:26:08 +00:00
MultiSelect(:emacs_motivations_current,
"Which features keep you using Emacs?",
["Extensibility", "Package(s)", "Text editing features",
"Built-in features (dired, calc, etc.)" => "Built-in features",
2022-05-20 16:26:08 +00:00
"Community", "Part of the GNU project / FSF",
:other],
mandatory=false),
2022-05-19 14:14:47 +00:00
MultiSelect(:operating_system,
"Which operating system to you use Emacs on?",
2022-10-16 08:25:50 +00:00
["GNU/Linux",
"Linux via <abbr title=\"Windows Subsystem for Linux\">WSL</abbr>" => "WSL",
"Windows", "MacOS", "BSD", :other]),
2022-05-19 14:14:47 +00:00
MultiSelect(:emacs_mode,
"How do you run Emacs?",
["Graphical Application (GUI)" => "GUI",
"Terminal (TUI)" => "TUI",
"Daemon/Client" => "daemon"]),
2022-05-20 16:26:08 +00:00
RadioSelect(:emacs_performance,
"How well does Emacs perform in your experience?",
["Very well, it's snappy", "Good but not great",
2022-10-16 12:22:04 +00:00
"Alright", "Not well", "Poorly, it's sluggish"]),
2022-05-19 14:14:47 +00:00
RadioSelect(:keybindings,
"Which keybindings do you use?",
["Default (Emacs)" => "Emacs", "Vim", "CUA", :other]),
RadioSelect(:starter_kit,
"Do you use a starter kit/configuration framework?",
["No, I have lightly configured vanilla Emacs" => "minimal vanilla",
"No, I have an extensive, fully-custom configuration" => "maximal vanilla",
"Doom Emacs", "Spacemacs", "Prelude",
:other]),
RadioSelect(:elisp,
"What is your level of Elisp proficiency?",
2022-05-19 14:14:47 +00:00
["No knowledge" => "none",
"I can copy-paste and tweak some code" => "copy-paste",
"I can read and understand most Elisp programmes" => "read and understand",
2022-05-19 14:14:47 +00:00
"I can write simple functions" => "simple functions",
"Fairly proficient, I can/have written my own package" => "write package",
"I maintain multiple packages" => "many packages",
"I have a solid understanding of Emacs internals" => "understand internals"]),
2022-05-19 14:14:47 +00:00
MultiSelect(:languages,
"Which languages do you program (in Emacs) in?",
2022-10-24 16:20:29 +00:00
["Assembly", "C++", "C", "C#", "Clojure", "Common Lisp",
"Elisp", "Elixir", "Erlang", "Go", "HTML/CSS", "Haskell",
"Javascript", "Julia", "Java", "Python", "PHP", "Perl",
"R", "Rust", "Ruby", "Scheme", "Shell scripting" => "Shell",
2022-10-17 14:47:22 +00:00
"SQL", "Typescript", :other]),
RadioSelect(:prose,
"Do you use Emacs for writing prose?",
["Frequently", "Often", "Sometimes", "Rarely", "Never"])),
2022-05-19 14:14:47 +00:00
SurveyPart("First time questions",
2022-10-17 17:10:56 +00:00
"All of these questions are <em style=\"color: var(--primary)\">optional</em>, " *
"but please consider answering them if you are taking the survey for the first time",
2022-05-19 14:14:47 +00:00
RadioSelect(:prior_editor,
"Which editor did you use before you started using Emacs?",
["None", "Vim", "VS Code", "IntelliJ", "Atom",
2022-10-17 14:47:22 +00:00
"Sublime Text", "Eclipse", "Notepad++", :other],
2022-05-19 14:14:47 +00:00
mandatory=false),
TextArea(:emacs_strengths,
"What do you think are Emacs' greatest strengths?",
validators=[wordlimit(400), charlimit(6*400)],
mandatory=false),
2022-10-16 12:22:04 +00:00
TextArea(:emacs_difficulties,
2022-10-16 15:00:33 +00:00
"Can you recall any difficulties you faced when initially learning Emacs?" *
"<p style=\"font-size: 0.8em;\">Please be as specific and concrete as your memories permit.</p>",
2022-05-19 14:14:47 +00:00
validators=[wordlimit(400), charlimit(6*400)],
mandatory=false),
RadioSelect(:emacs_introduction,
"How were you introduced to Emacs?",
2022-10-16 12:22:04 +00:00
["Friend", "Recommended by a colleague" => "Colleague",
2022-05-20 16:26:08 +00:00
"University/College", "Some part of the internet" => "Internet", :other],
2022-05-19 14:14:47 +00:00
mandatory=false),
2022-05-20 16:26:08 +00:00
MultiSelect(:emacs_motivations_initial,
"Which features motivated you to initially try Emacs?",
["Extensibility", "Package(s)", "Text editing features",
"Community", "Part of the GNU project / FSF",
:other],
2022-05-19 14:14:47 +00:00
mandatory=false)),
SurveyPart("Packages",
MultiSelect(:package_manager,
"How do you manage third-party packages?",
["My framework/starter kit's default" => "framework default",
"package.el (built-in)" => "package.el",
"straight", "elpaca", "use-package",
2022-05-19 14:14:47 +00:00
"manual (git clone/download)" => "manual",
"not sure", :other]),
MultiSelect(:package_archives,
"Which package archives do you use?",
2022-05-19 14:14:47 +00:00
["My framework/starter kit's default" => "framework default",
2022-10-02 13:24:38 +00:00
"GNU ELPA", "GNU ELPA devel", "NonGNU ELPA", "MELPA", "MELPA Stable",
2022-05-19 14:14:47 +00:00
"Built from source (e.g. using straight)" => "Source",
"not sure", :other]),
MultiSelect(:package_discovery,
"How do you learn about new packages?",
["Reddit", "GitHub", "Mailing lists",
2022-10-16 15:00:33 +00:00
"IRC servers", "Matrix servers", "Discord", "Discourse", "Blogs",
"Web search engines", "GNU ELPA/MELPA online package lists",
"M-x list-packages", :other]),
MultiSelect(:package_research,
"When you discover a new package that looks interesting, what do you do next?",
["Install and try it immediately",
"Research alternatives", "Wait for it to mature" => "wait for maturity",
"Wait till I see other people in the community using it" => "wait for community"]),
2022-10-16 12:22:04 +00:00
TextArea(:favourite_packages,
"Could you list some of your favourite packages? (comma-separated)";
2022-05-20 16:26:08 +00:00
validators = [t -> if length(split(t, ',')) > 10
2022-05-19 14:14:47 +00:00
"That's a lot of packages. Surely you can cut that down to a top 10?"
2022-10-02 08:17:33 +00:00
end, wordlimit(30), charlimit(200)],
mandatory=false),
MultiSelect(:package_contact_method,
"If you wish to contact the package maintainer(s), how do you do so?",
["Mailing list", "Email", "GitHub", :other]),
MultiSelect(:package_help,
"Where do you ask for help using packages?",
["IRC", "Matrix", "Reddit", "Emacs StackExchange",
"My emacs framework's community" => "Framework",
2022-10-16 08:25:50 +00:00
"GitHub", "Mailing lists", "Email the maintainer(s)" => "Email",
"Discord", "Discourse", :other]),
2022-10-16 12:22:04 +00:00
MultiSelect(:package_contributions,
"What contributions do you make to packages you use?",
2022-10-16 12:22:04 +00:00
["Issues", "Code (features)", "Code (bug fixes)", "Documentation", "Advocacy"],
mandatory=false),
2022-10-16 12:22:04 +00:00
RadioSelect(:package_contribution_frequency,
"How often do you contribute to packages?",
["Frequently", "Often", "Sometimes", "Rarely", "Never"]),
MultiSelect(:package_contribution_barriers,
2022-10-16 12:22:04 +00:00
"If you rarely/never contribute to packages, what are the main barriers to doing so?",
["Not interested",
2022-10-17 17:10:56 +00:00
"Lack of time",
"Elisp proficiency",
"Not knowing how to modify a package",
"Not confident in my code quality" =>
"Lack confidence in code quality",
"Lack of familiarity with the contribution process" =>
"Unfamiliar with contribution process",
"Wariness of the review process",
"Bad prior experience",
"FSF paperwork (for GNU ELPA)" => "FSF paperwork",
2022-10-02 08:17:33 +00:00
:other],
mandatory=false),
2022-10-16 08:25:50 +00:00
RadioSelect(:fsf_paperwork_year,
"Have you signed (or attempted to sign) the FSF copyright papers?",
["No, never seriously considered" => "never considered",
"No, but I might in the future" => "might in future",
"Yes, within the last 2 years" => "0-2y",
"Yes, 2-5 years ago" => "2-5y",
"Yes, 5-10 years ago" => "5-10y",
2022-10-16 10:07:17 +00:00
"Yes, 10+ years ago" => "10+y"]),
TextArea(:package_submission,
2022-10-24 06:00:16 +00:00
"If you write packages, how do you decide which repositories to submit it to (if any)?" *
2022-10-17 17:10:56 +00:00
"<p style=\"font-size: 0.8em;\">GNU ELPA, NonGNU ELPA, MELPA, etc.</p>",
mandatory=false),
MultiSelect(:package_documentation_wish,
"What documentation do you wish package authors would more often provide?",
["Comparison with alternatives" => "Comparison", "Tutorials",
"Design rationale", "Info manual" => "Manual", "Screenshots",
2022-10-16 12:22:04 +00:00
"Clips/videos", "Introduction/overview" => "Overview",
:other]),
2022-05-19 14:14:47 +00:00
MultiSelect(:theme, # people can use a light and dark theme
"Which theme do you use?",
2022-05-20 16:26:08 +00:00
["The default <i>light</i> theme" => "default light",
"The default <i>dark</i> theme" => "default dark",
2022-05-19 14:14:47 +00:00
"my own custom theme",
"doom-one", "dracula", "gruvbox",
"modus-operandi", "modus-vivendi", "nord",
"solarized", "solarized-dark", "zenburn",
:other]),
MultiSelect(:org_usage,
"Which use cases of Org Mode apply to your usage (if any)?",
["Note taking", "General document writing",
"Task management", "Agenda", "Time tracking",
"Personal knowledge base (PKB)" => "PKB",
2022-10-17 14:47:22 +00:00
"Literate programming / notebooks (Babel)" => "Babel",
:other],
2022-05-19 14:14:47 +00:00
mandatory=false),
RadioSelect(:magit_usage,
"How often do you use Magit?",
2022-05-20 16:26:08 +00:00
["Frequently", "Often", "Sometimes", "Rarely", "Never"]),
2022-05-19 14:14:47 +00:00
RadioSelect(:tramp_usage,
2022-10-02 08:48:55 +00:00
"How often do you use Tramp?",
2022-05-20 16:26:08 +00:00
["Frequently", "Often", "Sometimes", "Rarely", "Never"]),
2022-05-19 14:14:47 +00:00
MultiSelect(:term_package,
"How do you interact with the shell in Emacs?",
["I don't" => "none", "shell-command", "shell",
"eshell", "term", "ansi-term", "vterm", :other]),
2022-05-19 14:14:47 +00:00
RadioSelect(:email_package,
"Do you use an Email client in Emacs?",
2022-10-16 08:25:50 +00:00
["No", "Gnus", "Mu4e", "notmuch", "Wanderlust", "Rmail", :other]),
2022-10-16 15:00:33 +00:00
MultiSelect(:spell_package,
2022-05-19 14:14:47 +00:00
"Do you use a spell checker in Emacs?",
["No", "My framework/starter kit's default" => "framework default",
2022-10-16 15:00:33 +00:00
"flyspell", "spell-fu", "ispell", "langtool", :other]),
2022-05-19 14:14:47 +00:00
RadioSelect(:undo_package,
"Do you use an undo package in Emacs?",
["No", "My framework/starter kit's default" => "framework default",
2022-05-20 16:26:08 +00:00
"undo-tree", "undo-fu", "vundo", :other]),
2022-05-19 14:14:47 +00:00
RadioSelect(:project_package,
2022-10-17 14:47:22 +00:00
"Do you use a project management package in Emacs?",
2022-05-19 14:14:47 +00:00
["No", "My framework/starter kit's default" => "framework default",
"project.el", "projectile", :other]),
MultiSelect(:selection_package,
"Do you use any selection packages?",
["No", "My framework/starter kit's default" => "framework default",
"Helm", "Ivy", "Ido", "Icomplete",
"Vertico", "Selectrum", "Marginalia", "Consult",
:other])),
SurveyPart("Contribution",
RadioSelect(:emacs_contribution,
2022-10-19 17:38:30 +00:00
"Do you contribute to Emacs or GNU ELPA packages?",
2022-05-20 16:26:08 +00:00
["Frequently", "Often", "Sometimes", "Rarely", "Never"]),
2022-05-19 14:14:47 +00:00
TextArea(:emacs_contribution_feedback,
2022-10-16 15:00:33 +00:00
"Have you got any feedback on the Emacs/GNU ELPA contribution process?" *
"<p style=\"font-size: 0.8em;\">This regards the overall process: obtaining FSF assignment, " *
"path submission and review by email, etc.</p>",
2022-05-19 14:14:47 +00:00
validators=[wordlimit(400), charlimit(6*400)],
mandatory=false),
2022-05-20 16:26:08 +00:00
RadioSelect(:package_contribution,
2022-10-19 17:38:30 +00:00
"Do you contribute to Emacs packages?",
2022-05-20 16:26:08 +00:00
["Frequently", "Often", "Sometimes", "Rarely", "Never"]),
2022-05-19 14:14:47 +00:00
RadioSelect(:isa_package_maintainer,
"Do you maintain any Emacs packages?",
["Yes", "No"]),
2022-10-16 15:00:33 +00:00
RadioSelect(:has_donated_fsf,
"Do you contribute financially to Emacs development (via the FSF)",
2022-10-16 15:03:57 +00:00
["No", "I have in the past", "Yes",
2022-05-19 14:14:47 +00:00
"I would if I could donate to Emacs directly" => "Would directly",
2022-10-16 15:00:33 +00:00
"I would like to, but cannot" => "Cannot", :other]),
RadioSelect(:has_donated_community,
"Do you contribute financially to members of the Emacs community?",
["No", "I have in the past", "Yes",
"I would like to, but cannot" => "Cannot",
:other])),
2022-10-17 17:10:56 +00:00
SurveyPart("Demographics",
"All of these questions are <em style=\"color: var(--primary)\">optional</em>, " *
"respond to whichever questions you feel like answering",
IntegerInput(:respondent_age,
2022-05-19 14:14:47 +00:00
"How old are you?",
2022-10-17 13:40:07 +00:00
validators = n -> if ismissing(n) # This is fine, the question is optional.
elseif n < 8
2022-10-16 12:22:04 +00:00
"My, you're advanced for you're age. <i>Suspiciously</i> advanced…"
2022-10-16 15:00:33 +00:00
elseif n > 99
2022-10-16 12:22:04 +00:00
"Congratulations on becoming a centenarian! How about you get one of your grandchildren to do this survey instead?"
2022-05-19 14:14:47 +00:00
end,
mandatory=false),
RadioSelect(:respondent_gender,
"What is your gender?",
2022-10-17 17:10:56 +00:00
["Male", "Female", :other],
2022-05-19 14:14:47 +00:00
mandatory=false),
2022-10-16 12:22:04 +00:00
RadioSelect(:respondent_education,
2022-05-19 14:14:47 +00:00
"What is the highest level of education you have completed?",
["High school" => "School",
2022-05-20 16:26:08 +00:00
"Associate's Degree" => "Associates",
2022-05-19 14:14:47 +00:00
"Bachelor's Degree" => "Bachelors",
"Master's Degree" => "Masters",
"PhD or equivalent" => "PhD"],
mandatory=false),
2022-10-16 12:22:04 +00:00
Dropdown(:respondent_nationality,
2022-05-19 14:14:47 +00:00
"What is your nationality?",
# taken from https://www.gov.uk/government/publications/nationalities/list-of-nationalities
["(other)", "Afghan", "Albanian", "Algerian", "American", "Andorran", "Angolan", "Anguillan", "Antigua and Barbuda",
2022-05-19 14:14:47 +00:00
"Argentine", "Armenian", "Australian", "Austrian", "Azerbaijani", "Bahamian", "Bahraini", "Bangladeshi",
"Barbadian", "Belarusian", "Belgian", "Belizean", "Beninese", "Bermudian", "Bhutanese", "Bolivian",
"Bosnia and Herzegovina", "Botswanan", "Brazilian", "British", "British Virgin Islander", "Bruneian",
"Bulgarian", "Burkinan", "Burmese", "Burundian", "Cambodian", "Cameroonian", "Canadian", "Cape", "Verdean",
"Cayman Islander", "Central", "African", "Chadian", "Chilean", "Chinese", "Colombian", "Comoran",
"Congolese (Congo)", "Congolese (DRC)", "Cook Islander", "Costa", "Rican", "Croatian", "Cuban", "Cymraes",
"Cymro", "Cypriot", "Czech", "Danish", "Djiboutian", "Dominican", "Dominican Republic citizen", "Dutch",
"East Timorese", "Ecuadorean", "Egyptian", "Emirati", "English", "Equatorial", "Guinean", "Eritrean", "Estonian",
"Ethiopian", "Faroese", "Fijian", "Filipino", "Finnish", "French", "Gabonese", "Gambian", "Georgian",
"German", "Ghanaian", "Gibraltarian", "Greek", "Greenlandic", "Grenadian", "Guamanian", "Guatemalan",
2022-10-24 06:00:16 +00:00
"Guinea-Bissau citizen", "Guinean", "Guyanese", "Haitian", "Honduran", "Hongkonger", "Hungarian", "Icelandic",
2022-05-19 14:14:47 +00:00
"Indian", "Indonesian", "Iranian", "Iraqi", "Irish", "Israeli", "Italian", "Ivorian", "Jamaican", "Japanese",
"Jordanian", "Kazakh", "Kenyan", "Kittitian", "Kiribati citizen", "Kosovan", "Kuwaiti", "Kyrgyz", "Lao",
"Latvian", "Lebanese", "Liberian", "Libyan", "Liechtenstein citizen", "Lithuanian", "Luxembourger",
"Macanese", "Macedonian", "Malagasy", "Malawian", "Malaysian", "Maldivian", "Malian", "Maltese",
"Marshallese", "Martiniquais", "Mauritanian", "Mauritian", "Mexican", "Micronesian", "Moldovan", "Monegasque",
"Mongolian", "Montenegrin", "Montserratian", "Moroccan", "Mosotho", "Mozambican", "Namibian", "Nauruan",
"Nepalese", "New Zealander", "Nicaraguan", "Nigerian", "Nigerien", "Niuean", "North Korean", "Northern Irish",
2022-10-24 16:20:29 +00:00
"Norwegian", "Omani", "Pakistani", "Palauan", "Palestinian", "Panamanian", "Papua New Guinean",
2022-05-19 14:14:47 +00:00
"Paraguayan", "Peruvian", "Pitcairn Islander", "Polish", "Portuguese", "Prydeinig", "Puerto", "Rican",
"Qatari", "Romanian", "Russian", "Rwandan", "Salvadorean", "Sammarinese", "Samoan", "Sao", "Tomean",
"Saudi Arabian", "Scottish", "Senegalese", "Serbian", "Seychelles citizen", "Sierra", "Leonean",
"Singaporean", "Slovak", "Slovenian", "Solomon Islander", "Somali", "South African", "South Korean",
2022-05-20 16:26:08 +00:00
"South Sudanese", "Spanish", "Sri Lankan", "St Helenian", "St Lucian", "Stateless", "Sudanese",
2022-05-19 14:14:47 +00:00
"Surinamese", "Swazi", "Swedish", "Swiss", "Syrian", "Taiwanese", "Tajik", "Tanzanian", "Thai", "Togolese",
"Tongan", "Trinidadian", "Tristanian", "Tunisian", "Turkish", "Turkmen", "Turks and Caicos Islander",
"Tuvaluan", "United States citizen" => "American",
2022-05-20 16:26:08 +00:00
"Ugandan", "Ukrainian", "Uruguayan", "Uzbek",
"Vatican citizen", "Vanuatu citizen", "Venezuelan", "Vietnamese", "Vincentian", "Wallisian", "Welsh",
"Yemeni", "Zambian", "Zimbabwean"],
2022-05-19 14:14:47 +00:00
mandatory=false),
2022-10-16 12:22:04 +00:00
RadioSelect(:respondent_occupation,
2022-05-19 14:14:47 +00:00
"Which industry do you work in?",
["Academia (Student)" => "Student",
"Academia/Research" => "Research",
2022-05-20 16:26:08 +00:00
"Creative/Writing",
2022-10-16 12:22:04 +00:00
"Education services", "Fin Tech",
2022-05-19 14:14:47 +00:00
"Healthcare", "Legal", "Manufacturing",
2022-05-20 16:26:08 +00:00
"Media/Publishing",
2022-05-19 14:14:47 +00:00
"Software Development", "Telecom",
:other],
mandatory=false)),
2022-10-16 08:25:50 +00:00
SurveyPart("Other software usage",
RadioSelect(:free_software_zeal,
"How strongly do the ideals of free/libre software affect your computer use?",
replace.(["%p %f and am %w *any* %l",
"%p %f and am %w a *significant* %l",
2022-10-17 17:10:56 +00:00
"%p %f and am %w a *moderate* %l",
"%p %f and am %w a *limited* %l",
"%p %f but am *not* %w a %l",
"I have no preference for %f"],
2022-10-19 17:38:30 +00:00
"%p" => "I have a clear preference for",
"%f" => "free/libre software",
"%w" => "willing to accept",
"%l" => "lack of features or UI polish",
r"\*(.*?)\*" => s"<em style=\"color: var(--primary-hover);\">\1</em>"
) .=> ["any comprimise",
"significant comprimise",
"moderate comprimise",
"limited comprimise",
"no comprimise",
"do not prefer"])),
2022-10-16 12:22:04 +00:00
SurveyPart("Survey bookkeeping",
2022-05-19 14:14:47 +00:00
RadioSelect(:survey_prior,
"Did you respond to the 2020 Emacs survey?",
2022-10-17 17:10:56 +00:00
["Yes", "No", "Not sure"]),
2022-05-19 14:14:47 +00:00
RadioSelect(:survey_referrer,
"How did you find out about this survey?",
2022-05-20 16:26:08 +00:00
["r/emacs", "Hacker News", "Direct message / friend" => "Friend",
2022-10-16 08:25:50 +00:00
"Discord", "Discourse", "Twitter", "Blog post", "Emacs mailing list",
2022-05-19 14:14:47 +00:00
"lobste.rs", "Telegram", "Emacs China", "IRC",
:other]),
RadioSelect(:survey_ux,
"How well do you think this survey platform works?",
["Great", "Ok", "Not great"]),
TextArea(:survey_feedback,
"Do you have any general feedback on the survey?",
validators=[wordlimit(200), charlimit(6*200)],
mandatory=false)))