HNHacker News
TopNewBestAskShowJobs

mastro35

66 karma · joined December 24, 2016

submissionscomments
mastro35··on 6am News
Hi everyone, I wanted to share a small personal project that might be of interest to all of you.

I’ve created a simple clojure program that, every day at 6 a.m., generates a summary of the day’s top news stories for me, complete with links to various #news outlets that covered the story for anyone who wants to read more.

This daily briefing is then published for free on https://6am-news.com (for the U.S. audience; Italians can find a specific edition on the .it domain).

The site has no ads, no cookies, and does not track visitors in any way. You can support the project with a donation, but it’s free and entirely up to you.

In short, it’s a website just as it should be in a better web. If you like it, share it with your friends and let it grow an audience, thanks!

mastro35··on A New Theme for Emacs
Just a theme I created, if you want, give it a try.
mastro35··on Python Hash Tables: understanding dictionaries
Yes, maybe I haven't been clear, I tried just to explain what an hash is before introducing hash tables, if someone understood that cryptographic hash functions have to be used for hash table it's probably because my explanation wasn't clear enough... :(

Consider that I'm not a native speaker, so sometimes it's hard for me to send the exact message I would like to send... I will try to explain it better as soon as I will get anywhere I can use a computer :)

Thanks!

mastro35··on Python Hash Tables: understanding dictionaries
Some are trivial, some a little less... I'm trying to find the best format for the site
mastro35··on Python Hash Tables: understanding dictionaries
I tried to fix it, let me know if it’s broken again... It’s not super easy to check by myself because I'm not at home and I'm working with my phone... :D
mastro35··on Python Hash Tables: understanding dictionaries
Yes, Raymond Hettinger’s talk is really great! I've specified at the end of the article that a great part of it is taken from him.
mastro35··on Python Hash Tables: understanding dictionaries
I'm really sorry for the ads guys, but this is a small site that lives thanks to them... I wish I could avoid them and live just with donations but it isn't possible yet.

Moreover, I don't know anything about SEO or stuff like that so the ads are configured automatically (I went to the AdSense dashboard and clicked on the ”do whatever you want” button!!! :D )

However, I will try to limit the ads in the next few days understanding with the AdSense reports which one are not bringing earnings and can be removed.

Thanks for the feedbacks!

mastro35··on Lambdas and Functions in Python
For the BaseException you’re right.

About the mispelled word I didn’t notice it... that’s weird, it IS a copy and paste, probably when I pasted it I lost that line and I rewrote it?

Can’t remember, I posted the original article on Medium on December 2017. However I will surely modify the article next week to address that typo, thanks!

mastro35··on Lambdas and Functions in Python
Yep! Good call! ;)
mastro35··on Lambdas and Functions in Python
Hi guitarbill, the article is intended to point out how to review the original code. I figured out a bad code written by anyone else and I tried to make it better.

About the lambdas you are right, they’re good just if you have trivial functions, like in other languages. If you need more “power” just use normal functions.

PS: if I mispelled “inspect” or anything else... sorry, I’m not a native speaker, I wish I could speak and write better but the truth is that my English sucks... :(

mastro35··on Lambdas and Functions in Python
Well, actually I find the last code far better and easier than the original one. As I wrote in the article, if you want to add a factorial method you just need to change the catalog of the function provided by adding this line

“!”: lambda x: math.factorial(x),

However, it’s probably a matter of taste... but I do like the last code more. :)