Wikifunctions talk:Main Page/Archive/2024/04
Appearance
Latest comment: 8 months ago by Jdforrester (WMF) in topic Functions to try out, refresh
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Functions to try out, refresh
I suggest we switch up some of our "functions to try out", as they are a bit dated and not all the most interesting to try. If you have suggestions of functions that casual users would find interesting to try (including any currently listed), please add them to the list below. --99of9 (talk) 02:53, 30 April 2024 (UTC)
- is prime (Z12427): Checks if the provided natural number is prime or not.
- English cardinal (Z13587): expresses a natural number in English words
- n^n (Z13809): raises a natural number to the power of itself
- is pangram (Latin alphabet) (Z12626): checks whether a string of characters possesses every letter from the Latin alphabet at least once
- get day of week from date (Z13163): returns the day of week when given a date as year, month and day of the month
- Caesar cipher (Latin alphabet) (Z12812): rotates letters in the Latin alphabet forward by a defined number of places
- remove duplicates from untyped list (Z13078): remove second and subsequent duplicate items without changing the order of the list
99of9 (talk) 02:53, 30 April 2024 (UTC)
- These are good suggestions, I don't think they are too complex or confusing to newcomers and provide a good general idea of what the project is about. Philipnelson99 (talk) 04:10, 30 April 2024 (UTC)
- +1, these seem great. Maybe we should continue to limit it to five, though? Jdforrester (WMF) (talk) 08:41, 30 April 2024 (UTC)
- There are 10 at the moment. I'm ambivalent about how many there should be, as long as they're good options. --99of9 (talk) 10:15, 1 May 2024 (UTC)
- Good idea. We should probably have a page dedicated to function exploration and link to that instead of the catalogue.
- Functions that have links on the Main Page should have good performance characteristics. I’m not sure is prime (Z12427) and English cardinal (Z13587) are good candidates, because new users might be inclined to try a large number. Of those listed, I should think remove duplicates from untyped list (Z13078) would be okay (because setting up long lists would require significant effort from the user) and get day of week from date (Z13163) might be fine if we could limit the year entered and validate the month and day numbers.
- It would be good if the latest suitable function of the week could be included. GrounderUK (talk) 08:44, 30 April 2024 (UTC)
- Adding function of the week sounds good if we're ready to constantly update it. IMO the performance of all the ones you picked is reasonable, even for large numbers (indeed they are more interesting with large numbers). But I guess it depends how many visitors click the links. Personally I'd be happy to give someone 10 seconds of CPU if they wanted to give us a prime number challenge. The one that fails large numbers is n^n (Z13809) so maybe we shoulds replace that. --99of9 (talk) 10:15, 1 May 2024 (UTC)
- Hah, yes… I wasn’t worried about the CPU so much as visitor disappointment (because you only get one chance to make a first impression). If we go for Function of the week, I expect it would be transcluded (somehow @Sannita (WMF)) and link to the archive. The casual WikiWanderer might assume it’s our equivalent of Featured Article, however…🤔🤷♂️ GrounderUK (talk) 11:19, 1 May 2024 (UTC)
- @GrounderUK That's a good idea, but I think it'd be better if the community takes the lead on this. Function of the week is still not community-driven (but it will be in the future), so I think it'd be better if proposals for the main page come from the community. Sannita (WMF) (talk) 18:49, 1 May 2024 (UTC)
- Thanks, I think @99of9 counts as community… It would perhaps be better to delay including FOTW until the latest featured function is one proposed by the community, but I’m happy either way. GrounderUK (talk) 14:54, 2 May 2024 (UTC)
- As for refreshing Functions to try out, I'm all for replacing e.g. trim string (Z10079) and is empty string (Z10008) which, while incredibly useful, don't really tease your imagination. --Autom (talk) 11:22, 10 May 2024 (UTC)
- Thanks, I think @99of9 counts as community… It would perhaps be better to delay including FOTW until the latest featured function is one proposed by the community, but I’m happy either way. GrounderUK (talk) 14:54, 2 May 2024 (UTC)
- @GrounderUK That's a good idea, but I think it'd be better if the community takes the lead on this. Function of the week is still not community-driven (but it will be in the future), so I think it'd be better if proposals for the main page come from the community. Sannita (WMF) (talk) 18:49, 1 May 2024 (UTC)
- Hah, yes… I wasn’t worried about the CPU so much as visitor disappointment (because you only get one chance to make a first impression). If we go for Function of the week, I expect it would be transcluded (somehow @Sannita (WMF)) and link to the archive. The casual WikiWanderer might assume it’s our equivalent of Featured Article, however…🤔🤷♂️ GrounderUK (talk) 11:19, 1 May 2024 (UTC)
- Adding function of the week sounds good if we're ready to constantly update it. IMO the performance of all the ones you picked is reasonable, even for large numbers (indeed they are more interesting with large numbers). But I guess it depends how many visitors click the links. Personally I'd be happy to give someone 10 seconds of CPU if they wanted to give us a prime number challenge. The one that fails large numbers is n^n (Z13809) so maybe we shoulds replace that. --99of9 (talk) 10:15, 1 May 2024 (UTC)
Done I've swapped a few of these in and removed some less exciting ones. --99of9 (talk) 23:00, 23 May 2024 (UTC)
- I see you’ve updated the template, but I’m not getting the updates on the Main Page. It may be that the updated template needs to be marked for translation, but that’s just a guess. GrounderUK (talk) 08:24, 24 May 2024 (UTC)
Done @99of9, @GrounderUK: Yup, it needed a translation push; done! Jdforrester (WMF) (talk) 18:46, 24 May 2024 (UTC)
- I see you’ve updated the template, but I’m not getting the updates on the Main Page. It may be that the updated template needs to be marked for translation, but that’s just a guess. GrounderUK (talk) 08:24, 24 May 2024 (UTC)