The Weekly Challenge - 186

Monday, Oct 10, 2022| Tags: Perl, Raku

TABLE OF CONTENTS


01. HEADLINES

02. SPONSOR

03. RECAP

04. PERL REVIEW

05. RAKU REVIEW

06. CHART

07. NEW MEMBERS

08. GUESTS

09. TASK #1: Zip List

10. TASK #2: Unicode Makeover


HEADLINES


Welcome to the Week #186 of The Weekly Challenge.

Welcome back Andinus after the break. Thank you for contributions in Raku and blog post.

We are into the second week of Hacktoberfest 2022. I am not surprised the rise of popularity of The Weekly Challenge. Please find below the weekly contributions breakdown.

Week #1

Perl: 57 Raku: 31 Blog: 17

Week #2

Perl: 61 Raku: 35 Blog: 19

Last week, we had 40 regular contributors and 15 guest contributors. Thank you everyone for the support and encouragement.

Let us all welcome another guest contributor, Joao Felipe, an experienced APL hacker.

Last week we decided to give away the FREE book token to Kjetil Skotheim but unfortunately we didn’t have his contact details. I request Kjetil to share email address, so that the we can send the token.

Today, we are giving away Token #9 to Niels van Dijke for the book, Learning Perl Exercises by brian d foy. I will share the details with you in a separate email.


Past Winners

1) Cheok-Yin Fung
2) W. Luis Mochan
3) Robert DiCicco
4) Kueppo Wesley
5) Solathian
6) Dario Mazzeo
7) Peter Campbell Smith
8) Kjetil Skotheim

Last week we declared Kueppo Wesley as the latest champion of The Weekly Challenge. Please do checkout the interview with him.

Thank you, AhmetEmre, for yet another shot of bulk guest contributions in BQN.

I would like to thank, Tyler Wardhaugh, for the first contributions in Perl. He has mostly contributed in Clojure, Fennel, Lua and Python in the past.

My contributions to the Week 185 is in Perl only.


TOP 10 Guest Languages


The new entrant BQN jumped to rank #7, two positions higher up in just one week, thanks to the contributions mostly by AhmetEmre.

Do you see your favourite language in the Top 10? If not then why not contribute regularly and make it to the top.

 1. Python  (1115)
 2. Haskell (499)
 3. Ruby    (399)
 4. Lua     (389)
 5. C       (273)
 6. C++     (273)
 7. BQN     (261)
 8. Rust    (236)
 9. Go      (226)
10. Node.js (192)

Blogs with Creative Title


1. Mask the MAC by Arne Sommer.

2. Enter the Masked Ball by Colin Crain.

3. string substitutions by Luca Ferrari.

4. Manipulating characters by Peter Campbell Smith.

5. Big MAC and Mask by Roger Bell_West.


GitHub Repository Stats


1. Commits: 28,283 (+177)

2. Pull Requests: 6,868 (+45)

3. Contributors: 206 (+1)

4. Fork: 263 (+2)

5. Stars: 144 (+1)



Our solo sponsor Pete Sergeant has been a great support to keep us motivated. We are lucky that he agreed to continue the journey with us in the year 2022. I would like to personally thank Pete and his entire team for their generosity. It would be great if we could add few more to sponsor the prize money so that we could go back and declare weekly champions as we have done in the past. I hope and wish this will become possible in 2022. The amount doesn’t have to be huge. However, it would be nice to show off bunch of supporters. If an organisation comes forward and supports us then that would be the ultimate achievement.


RECAP


Quick recap of The Weekly Challenge - 185 by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of The Weekly Challenge - 179 by Colin Crain.

If you missed any past reviews then please check out the collection.


RAKU REVIEW


If you missed any past reviews then please check out the collection.


CHART


Please take a look at the charts showing interesting data.

I would like to THANK every member of the team for their valuable suggestions. Please do share your experience with us.


NEW MEMBERS


Joao Felipe, an experienced APL hacker joined the Team PWC.

Please find out How to contribute?, if you have any doubts.

Please try the excellent tool EZPWC created by respected member Saif Ahmed of Team PWC.


GUESTS


Please check out the guest contributions for the Week #185.

Please find past solutions by respected guests. Please share your creative solutions in other languages.


Task 1: Zip List

Submitted by: Mohammad S Anwar

You are given two list @a and @b of same size.

Create a subroutine sub zip(@a, @b) that merge the two list as shown in the example below.

Example

Input:  @a = qw/1 2 3/; @b = qw/a b c/;
Output: zip(@a, @b) should return qw/1 a 2 b 3 c/;
        zip(@b, @a) should return qw/a 1 b 2 c 3/;

Task 2: Unicode Makeover

Submitted by: Mohammad S Anwar

You are given a string with possible unicode characters.

Create a subroutine sub makeover($str) that replace the unicode characters with ascii equivalent. For this task, let us assume it only contains alphabets.

Example 1

Input: $str = 'ÃÊÍÒÙ';
Output: 'AEIOU'

Example 2

Input: $str = 'âÊíÒÙ';
Output: 'aEiOU'


Last date to submit the solution 23:59 (UK Time) Sunday 16th October 2022.


SO WHAT DO YOU THINK ?

If you have any suggestions or ideas then please do share with us.

Contact with me