根據社群的烘焙程度,我還有一個重複主題的想法:謎題和挑戰。這些將是我們與社群分享的挑戰,然後發布我們的答案。我們也可以參考一些社群成員的解決方案(如果我們懶的話,甚至可以嘗試用人工智慧來創建「摘要」…)。
我已經創建了不少這樣的內容,因為我是在芬蘭村田製作所舉辦的 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 可以編寫一個包含幾個問題的小型調查:我們在下次會議期間調查哪些主題、以何種方式運作等?
我個人認為這些對於「期間」來說並不好。它們應該在會議之外完成和討論(由社區),然後我們可以總結/審查一些答案/發布我們的解決方案及其背後的原因。這可能比「來自社群」更有效,因為我對「來自社群」的最初想法是審查一些已發佈到社群的問題。我寫的大多數練習/挑戰都是我在社群或工作中解決的問題的修改版本。