Issue #564 - 2022-05-16 - Issues with OOP?

latest | archive | edited by Mohammad Sajid Anwar
This edition was made possible by the supporters of our cause.
Don't miss the next issue!

Hi there,

I am a big fan OOP and can't wait to see Modern Object in Perl, Corinna, to be part of core Perl. Last update I had was in early January by Curtis. You can checkout the details here.

If you are new to Corinna then I would recommend you checkout this post by Curtis. Those who don't know, Curtis is leading the team working on Corinna.

Talking about OOP, I came across another post by none other than Curtis himself sharing the common issues with OO code. This should be taught to anyone starting OO in any language and not just Perl, in my humble opinion. Having read it few times already from start to end in one go, I keep going back to it to keep myself reminded about it all the time. You would definitely want to bookmark it for future reference.

Few weeks ago, I shared post Why is Object-Oriented Programming Bad? by Curtis. My favourite line in the post, "I think there’s a good case to be made that OOP is not nearly as useful as it’s claimed.". Mind you, this is coming from Curtis.

Enough of OO, lets talk about Exceptions in Perl, I would like to share the blog post by Curtis (once again), where he points out the common issue in Perl. It reminded me about my recent post sharing the new try/catch block in Perl v5.34.

Last but not the least, please find this gem by Curtis talking about testing database operations with a fresh instance of SQLite everytime. I wonder, if this can be shared as CPAN module. Just thinking out loud, I know.

Enjoy the rest of the newsletter.

Mohammad Sajid Anwar


Articles

My Favorite Modules: Errno

by Tom Wyant (WYANT)

Nice introduction to Errno with apt example to get the point across.

Towards Perl 5.36 - try/catch/finally

by Renee Baecker (RENEEB)

I always wish for finally block and it seems we are getting it soon. Thank you for sharing the good news.


Discussion

Common Problems in Object-Oriented Code

by Curtis 'Ovid' Poe (OVID)

Although it is generic discussion not just about Perl. Highly recommended.


CPAN

Getopt::Long long options can be case-sensitive

by Flavio Poletti (POLETTIX)

It is something that I didn't know before. How can I miss it? Thank you for keeping the daily blog alive.


The Weekly Challenge

The Weekly Challenge by Mohammad Anwar will help you step out of your comfort-zone. You can even win prize money of $50 Amazon voucher by participating in the weekly challenge. We pick one winner at the end of the month from among all of the contributors during the month. The monthly prize is kindly sponsored by Peter Sergeant of PerlCareers.

The Weekly Challenge - 165

by Mohammad Sajid Anwar (MANWAR)

Welcome to a new week with a couple of fun tasks: "Scalable Vector Graphics (SVG)" and "Line of Best Fit". If you are new to the weekly challenge, why not join us and have fun every week? For more information, please read the FAQ.

RECAP - The Weekly Challenge - 164

by Mohammad Sajid Anwar (MANWAR)

Enjoy a quick recap of last week's contributions by Team PWC dealing with the "Prime Palindrome" and "Happy Numbers" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.

Meet The Champion - Alexander Pankoff

by Mohammad Sajid Anwar (MANWAR)

Please checkout the interview with the latest champion of the month April 2022.

Primarily Happy

by Arne Sommer

Finding the number of steps to get to the Happy Numbers is nice hack. Thanks for your contributions as always.

Happy Happy Joy Joy

by Colin Crain

Background of the task Happy Numbers is really cool, something I wish I knew before. I can't thank you enough for your contributions.

Shiny Happy Numbers

by Dave Jacoby (JACOBY)

Nice attempt to get one-liner in Perl. Very impressive, keep it up great work.

PWC164 - Prime Palindrome

by Flavio Poletti (POLETTIX)

Cool one-liner in Perl using home grown subroutines makes it attractive. Well done. Thanks for sharing.

PWC164 - Happy Numbers

by Flavio Poletti (POLETTIX)

Flavio showing off Raku power using Unicode operator. Keep it up great work.

Perl Weekly Challenge: Week 164

by Jaldhar H. Vyas

Cool one-liner in Raku for Palindrome Prime is great example showing the power of Raku. Keep it up great work.

The Weekly Challenge 164

by James Smith

James golf solution is worth checking out. The bonus optimized and cache solutions not to missed. Thanks for sharing.

Perl Weekly Challenge 164: Prime Palindromes and Happy Numbers

by Laurent Rosenfeld

Raku at its best but Perl is also not far behind. Thanks for your contributions.

Perl Weekly Challenge 164: quick and easy

by Luca Ferrari

Luca came up with yet another Raku magical solutions. Like always we got bonus with PostgreSQL solution too. Thank you for everything.

Perl Weekly Challenge 164

by W Luis Mochan

Luis consistent one-liner in Perl is the highlight every week. Thank you for sharing the knowledge.

Palindromic primes and moody numbers

by Peter Campbell Smith

Breaking task into simple and easy steps makes it lots of fun. Amazing quality to have, thanks for sharing your knowledge.

Happy Palindromes

by Roger Bell West (FIREDRAKE)

Rust is pick of the language for blog this week. I must admit, it is very impressive. Thanks for your contributions as always.

PWC 164 › Palindromic Primes

by Ryan Thompson

Cool observation about Palindrone Primes. So organised blog, not to be missed. Keep it up great work.

PWC 164 › Happy Numbers

by Ryan Thompson

Ryan shared the secret $_ * $_ is better than $_ ** 2, something I never looked at closely. Keep it up great work.


Rakudo

2022.19 DocuBlast

by Elizabeth Mattijsen (ELIZABETH)


Weekly collections

The corner of Gabor

A couple of entries sneaked in by Gabor.


Events

Charlotte PM Richard Hipp Talks About All Things SQLite

Wednesday, May 25, 2022; 06:00 PM Eastern Time (US and Canada)


Perl Jobs by Perl Careers

Good (Perl) Humans Wanted. Remote Perl role in USA

Working with first responders, educators, manufacturers, and engineers, our client is the leading provider of award-winning intelligent SaaS solutions. They’re looking for a Perl developer with Catalyst and DBIx::Class. Open to candidates within similar US time zones.

Music-loving DevOps (with Perl), get in here! London based role

We’ve got an intriguing role for a Lead DevOps Engineer who cares about great music. Our client knows all about how you listen to music: as an independent global music business, they work with artists, labels, and distributors to release and sell music on their digital platform. Perl experience would be helpful, and knowledge of Linux, configuration management tooling like Ansible or Puppet, and e

Is your Python as good as your Perl? Perl/Python role in London

Our client is at the pinnacle of the premium native advertising game for corporate, tech, financial services, and lifestyle technology. This role is for a Senior Developer who is equally comfortable with Perl AND Python.

Thought-Leader Wanted. Chief Software Architect role in Malaysia

As Chief Software Architect for an international company providing online trading services, you’ll work closely with the Chief Technology Officer. With a strong understanding of the full stack of software development and cloud technologies, you’ll mentor engineering teams and provide guidance in solving technical issues.

NLP is all right by me! Perl, Python, NLP role in Amsterdam

A global leader in machine intelligence matching job seekers with their perfect career: our client’s goal is human level parsing. They’re on the hunt for an NLP Engineer whose passion for NLP is matched only by their interest in Machine Intelligence and their ability to drive quality improvements, measurement standards, and error analysis processes for the NLP framework.



You know, you could get the Perl Weekly right in your mailbox. Every Week.
Free of charge!

Just ONE e-mail each Monday. Easy to unsubscribe. No spam. Your e-mail address is safe.
Perl Weekly on Twitter RSS Feed of the Perl Weekly. Updated once a week