---
title: "Paddy McCarthy (@Paddy3118) | Hashnode"
description: "A Python programmer and Rosetta Code contributor. Read the latest articles by Paddy McCarthy on Hashnode."
url: "https://hashnode.com/@Paddy3118"
---

@Paddy3118

# Paddy McCarthy

@Paddy3118 · Ankh · Joined April 2018

A Python programmer and Rosetta Code contributor

## Comments

[As the chart shows, Which chart?](https://hashnode.com/posts/why-is-typescript-surpassing-python-1--deleted/5fcb65af7865da78339e5f6e/comment/5fcddd2cf4006d0b1bee042e)

Comment · Article · Dec 7, 2020 · [Why is TypeScript surpassing Python](https://hashnode.com/posts/why-is-typescript-surpassing-python-1--deleted/5fcb65af7865da78339e5f6e)

[It seems you have an Abstract. Maybe that should be point zero; inserted before your current first point? Maxi Contieri](https://hashnode.com/posts/10-invaluable-tips-for-successful-tech-articles/5fb33d429f9a5659bcfe3299/comment/5fb7d428ba1e08716c77f61f#reply-5fb7e3c10ae19203f6d91c90)

Reply · Article · Nov 20, 2020 · [10 Invaluable Tips for Successful Tech Articles](https://hashnode.com/posts/10-invaluable-tips-for-successful-tech-articles/5fb33d429f9a5659bcfe3299)

[Abstract? It's nice to first read about what the guts of the article is about.](https://hashnode.com/posts/10-invaluable-tips-for-successful-tech-articles/5fb33d429f9a5659bcfe3299/comment/5fb7d428ba1e08716c77f61f)

Comment · Article · Nov 20, 2020 · [10 Invaluable Tips for Successful Tech Articles](https://hashnode.com/posts/10-invaluable-tips-for-successful-tech-articles/5fb33d429f9a5659bcfe3299)

[You stated: To add a hash method, you need to make them immutable by setting unsafe\_hash to True The logic doesn't seem to fit the naming, and from how I interpret the docs you might do it this way but it is frowned on: Although not recommended, you can force dataclass() to create a hash() method with unsafe\_hash=True. This might be the case if your class is logically immutable but can nonetheless be mutated. This is a specialized use case and should be considered carefully. It might be better to look at the settings of the eq and frozen parameters when unsafe\_hash=False, (the default): Setting eq=True, frozen=True would then get a hash method generated. Gosh, it takes my concentration to work this out :-)](https://hashnode.com/posts/everything-you-need-to-know-about-pythons-namedtuples/5f6e3f4fade1fb598d439946/comment/5f82da7d5841661b519d0f8c)

Comment · Article · Oct 11, 2020 · [Everything You Need to Know About Python's Namedtuples](https://hashnode.com/posts/everything-you-need-to-know-about-pythons-namedtuples/5f6e3f4fade1fb598d439946)

[The use of the ellipses as a function body placeholder was new to me and seems very readable. Thanks for that. One slight niggle was in your use of 'l' as a name; You might try avoiding the use of 'l', el and 'o' oh in names as certain fonts make them hard to distinguish from one and zero. A useful post, thanks :-)](https://hashnode.com/posts/5-hidden-python-features-you-probably-never-heard-of/5f818a2a7762251b305d8fd4/comment/5f82c49a7762251b305d98fc)

Comment · Article · Oct 11, 2020 · [5 Hidden Python Features You Probably Never Heard Of](https://hashnode.com/posts/5-hidden-python-features-you-probably-never-heard-of/5f818a2a7762251b305d8fd4)

[Docopt is so good for me, I like to tell others about it. I hope it works for you too. 👍](https://hashnode.com/posts/python-command-line-arguments-part-4/5ee0dd28304fa1181a7d5a90/comment/5ef5f4daedbffd78e8d17d7f)

Comment · Article · Jun 26, 2020 · [Python Command-line arguments: Part 4](https://hashnode.com/posts/python-command-line-arguments-part-4/5ee0dd28304fa1181a7d5a90)

[Graph it. Both the data and the fitted line.](https://hashnode.com/forums/thread/how-to-check-the-assumption-of-linearity/comment/5e9848e73b68e66b1acbe712)

Comment · Thread · Apr 16, 2020 · [How to check the assumption of linearity?](https://hashnode.com/forums/thread/how-to-check-the-assumption-of-linearity)

[6} Choose correct Data Types If you restrict something then check that the value is within the assumed range. Many exploits might take advantage of giving values outside what was once thought a reasonable range. As an aside, arbitrary string length in dynamic languages such as Perl can often help.](https://hashnode.com/posts/how-to-write-good-code/5e060705010cc49d3c1e81b8/comment/5e19ca4e32d5fad159b6854f)

Comment · Article · Jan 11, 2020 · [How to write good code?](https://hashnode.com/posts/how-to-write-good-code/5e060705010cc49d3c1e81b8)

[For example, canScrollHorizontally is so much better and meaningful than ScrollableX. Context is everything. If the variable is defined in a scollability method or class, then a better name might be 'allowHorizontal' or allowHoriz or even allowH. You have to balance identifier length, and a good way of accomplishing that is to make use of context.](https://hashnode.com/posts/how-to-write-good-code/5e060705010cc49d3c1e81b8/comment/5e19c79e32d5fad159b684fa)

Comment · Article · Jan 11, 2020 · [How to write good code?](https://hashnode.com/posts/how-to-write-good-code/5e060705010cc49d3c1e81b8)

[A long running project wanted a little flexibility in their compile script so added conditionals; then variables, statements,... No documentation except the awful sources. No tests except "it used to work". If tempted to write your own language, then fine - just don't let it escape into the real world without the docs, tests, support,...](https://hashnode.com/forums/thread/what-is-the-most-horrible-programming-language-or-technology-you-have-worked-with/comment/5dbd62e720c89dc564f90d47)

Comment · Thread · Nov 2, 2019 · [What is the most horrible programming language or technology you have worked with?](https://hashnode.com/forums/thread/what-is-the-most-horrible-programming-language-or-technology-you-have-worked-with)
