根据社区的吐槽情况,我还有一个重复主题的想法:谜题和挑战。这些是我们与社区分享的挑战,然后稍后发布我们的答案。我们还可以查看一些社区成员的解决方案(如果我们懒的话,甚至可以尝试使用 AI 创建“摘要”……)。
我已经创建了不少这样的内容,因为我是在芬兰村田举办的 JSL 培训课程上创建的,下面是一些示例
/*""" Padding numbers exercise
Author: jthi
Creation Date: 2023-12-11
Creation JMP Version: JMP Pro 17.2
Description: Figure out how to add padding to numbers using character presentation
in such a way that the numbers are always three characters long. Test with values between
0-999.
Note: Purpose is not to create a function to perform this task. You of course can create
a function or use expressions but we haven't yet covered them in this course.
Examples:
Input Output
1 "001"
10 "010"
100 "100"
Bonus 1:
If the value is less than 0 or over 999 set the value as empty string
Bonus 2:
Figure at least one additional method to perform this same task
Extra:
Perform similar calculation on a data table and create new column
"""*/
Names Default To Here(1);
input_list = {1, 10, 100}; // you can create your own examples
/*
// Extra, create a formula to perform similar action
dt_input = New Table("Untitled 44",
Add Rows(1000),
Compress File When Saved(1),
New Column("Input", Numeric, "Continuous", Set Values(0::999))
);
// dt_input << New Column/("Output", )
*/
/*""" Extract first occurrence from a string
Author: jthi
Creation Date: 2023-12-11
Creation JMP Version: JMP Pro 17.2
Description: You have a string which might contain multiple sub-strings starting with specific symbol. If such symbol
is found, extract the first occurrence. You can either include the symbol or exclude it
Example (symbol is #):
Input Output
"#pnc1 #pnc2 #other" "pnc1" or "#pnc1"
"mystring nothing #finally" "finally"
"my might string" ""
"mytest #test \!"a\!"" "test"
Bonus: Instead of a symbol you have a combination of symbols. You can leave the combination of symbols in place
Example (combination of symbols is ^#$):
Input: Output:
"^#$found but #not $found" "found" or "^#$found"
"^first #second ^#$match $no" "match"
"#could #^$we ^#have a match" ""
"something ^#$^#$weird has happened" "^#$weird" or "^#$^#$weird"
"feels ^#$like^#$ some ^#$typo" "like^#$"
"copy paste error ^#$like^#$" "like^#$"
Extra: Figure out multiple ways to extract these values
"""*/
Names Default To Here(1);
// Exercise
input_list = {"#pnc1 #pnc2 #other", "mystring nothing #finally", "my might string", "mytest #test \!"a\!""};
// Bonus
input_list2 = {"^#$found but #not $found", "^first #second ^#$match $no", "#could #^$we ^#have a match",
"something ^#$^#$weird has happened", "feels ^#$like^#$ some ^#$typo", "copy paste error ^#$like^#$"};
我喜欢这个(和一般的谜题),问题是观众是否想在 ScriptersClub 的那个小时内消费一些东西并在以后使用,或者他们是否也想提前准备并在以后工作。我不知道。也许 JMP 可以编写一个包含几个问题的小型调查:我们在下次会议期间调查哪些主题、工作方式等?
我个人认为这些不适合“期间”。它们应该在课程之外完成并讨论(由社区进行),然后我们可以总结/回顾一些答案/发布我们的解决方案及其背后的原因。这可能比“来自社区”更有效,因为我对“来自社区”的最初想法是回顾一些已发布到社区的问题。我编写的大多数练习/挑战都是我在社区或工作中解决的问题的修改版本。