Lucas Soares
2 min readAug 19, 2021

--

Hi Eric, first of all thanks for reading the article and taking the time to provide useful input, let's see:

1. With respect to being a javascript imitation library...well this is Python I don't see why it's a problem to have a library that tries to mimic a good library from a different language, good stuff better be reproduced right?

2. The point of the omit function:

Let's use your example, if I use omit I don't delete directly from the dictionary that was created which can be useful:

In [12]: dictionary_input = {'name': 'moe', 'age': 40}

In [13]: dictionary_input

Out[13]: {'name': 'moe', 'age': 40}

In [14]: pydash.omit(dictionary_input, 'age')

Out[14]: {'name': 'moe'}

In [15]: dictionary_input

Out[15]: {'name': 'moe', 'age': 40}

In [16]: del dictionary_input["age"]

In [17]: dictionary_input

Out[17]: {'name': 'moe'}

3. With regards to it being far more explicit, ok don't know how to argue against that, sure it might be if you actually want to get rid of the key and not just omit it.

4. Finally with respect to "correctly learning the language" I mean...c'mmon men...why so condescending? You obviously know a lot about Python and I really appreciate the input, but learning a language is a constant process of learning about features and built in methods that facilitate your workflow, a process that involves for example having this chat with you to pay more attention to Python built in methods, I think that taking the route of speaking from this "grandiose" position of the knowledgeable Python coder won't help your goal which apparently seems to be really positive.

Regardless, I appreciate you taking the time to write a comment, cheers! :)

--

--

Lucas Soares
Lucas Soares

Written by Lucas Soares

AI Engineer. I write about AI | Tools| Data Science | Productivity. Subscribe to my Youtube channel: https://www.youtube.com/@automatalearninglab/videos

Responses (1)