HNHacker News
TopNewBestAskShowJobs

hagy

389 karma · joined December 6, 2008

matthagy.com
submissionscomments
hagy··on Facebook announces policy changes ahead of 2020 elections
I don't believe the dominance of a small number of social media empires is due to anti-trust violations, specifically anit-competitive behavior. Instead, I believe these industries have incredibly strong network effects with the value of the platform growing faster than linear with the number of members.

If there were thousands of social media networks, each of roughly the same size, then content would be highly fragmented. If say your closest ten friends and family members in aggregate use seven different networks, then you'd have to belong to all seven and regularly interact with all seven to stay up to date with your community. A similar situation exists for following famous and influential people.

Further, as any single social network grows, it naturally acquires a moat in that with more members there is a larger reason for new members to join that network since there is a higher percentage of people of interest already on the social network in question. Over time we've seen this lead to dominant social networks over several generations of social media. E.g., Friendster -> MySpace -> Facebook.

hagy··on Facebook announces policy changes ahead of 2020 elections
The type of gullible person that accepts these false beliefs about issues such as climate change and immigration isn't going to change their mind simply because Facebook starts censoring such content. Many people held such views before the rise of Facebook and other social media empires. Such views have been transmitted over old school media such as conservative talk radio shows for decades before the popularization of the internet.

All that is happening is a change in medium used to propagate such views. These people in question are only engaging with such social media channels because they find views that support their beliefs. Should such views be censored, they'll simply seek out other mediums.

I think the core problem is that many of these issues have been too highly politicized and now people can only engage with such issues on an emotional level. They only ask whether a view supports "their side" on the issue and care little for the actual facts.

Note, I don't even believe this behavior is limited to any side of the political arena. I've seen friends ostracized for simply considering positions such as the leftist argument for strict immigration standards to ensure a country has ample resources to care for their existing citizens and only takes additional members that will be a net positive contribution to societies available resources.

All in all, I think it is beyond the ability of social media empires to help gullible people become less gullible. All they can do is decide what content for gullible audiences they will allow on their platform. The more they restrict content, the more their user base will shrink as people seek out alternative mediums to find the content that supports their existing beliefs.

hagy··on Ask HN: What did you make during lockdown?
Learned a bit about how database are implemented and shared the learnings in a series of projects, https://dbfromzero.com/
hagy··on Colleges face student lawsuits seeking refunds after coronavirus closures
To a large extent, anyone can already get access to the top university lectures in the world for a range of subjects already. Since top universities, chiefly MIT, have been recording and publicly sharing full-course classroom lectures for years. I think this shows that students care about more than just the lectures.
hagy··on Colleges face student lawsuits seeking refunds after coronavirus closures
Regular market forces don't hold for college tuition for a number of reasons. Chief among these being that many students are paying with loans. Secondly, some students and their families view education as a veblen good, whereby higher price implies even higher value.
hagy··on Colleges face student lawsuits seeking refunds after coronavirus closures
Exactly. University presidents easily pay for their salary many times over just through their fundraising activities. Presidents aren't chosen for their administrative prowess, but instead for their professional network and informal connections. Further, most people that could serve as president could easily draw a much larger salary in the private sector and many were formally C-level executives at larger companies where were paid such a salary. For them, becoming a university president is more about prestigious and service to an institute they value than it is about maximizing compensation.

I think the problem to focus on is the large and ever growing number of administrators and staffers throughout universities. One stat that always makes my eyes bulge is that while student enrollment and professors have both grown by about 50% between 1970 and 2010, yet the number of administrators have grown by 85% and administrative staffers grew by 240%! [0] If anything, administrators and staff should've decreased due to productivity improvements from technology.

There is so much fat to be cut from administrative ranks.

[0] https://washingtonmonthly.com/magazine/septoct-2011/administ...

hagy··on Colleges face student lawsuits seeking refunds after coronavirus closures
I agree, but quantifying value add is very hard. If we were just comparing small companies against each other then it would be straightforward to just look at each companies profit. But when you look at a team within a company, how can we say what that teams value add is?

Say we considered a simplified case and focused on a single engineering team that is solely responsible for a single product. Just looking at the revenue generated by that product is insufficient since it excludes the contributions of sales, marketing, business development, etc. in driving that revenue. And practice most engineering teams are dependent on other engineering teams for providing shared services and infrastructure.

Its also insufficient to just consider current revenue of a product. We also need to consider the potential future gains from a product, which is unknown.

And quantifying value add gets even harder when we start looking at individual people. Considering individual contributor engineers, there are numerous ways that one can contribute, ranging from developing new features, diagnosing and fixing bugs, writing and updating documentation, mentoring, interviewing candidates, etc.

hagy··on Hypermodern Python
I assume the cloned git repo includes arbitrary code that will be executed with the same security profile as a downloaded shell script.
hagy··on How to fight back against Google AMP
That is my understanding as well and I checked mozilla documentation to confirm. [0] That link also covers loading="lazy" attribute for <img> tags, which I've commonly used to defer loading.

[0] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/im...

hagy··on Tell HN: Triplebyte reverses, emails apology
In your hypothetical narrative I would say that Triplebyte's investors would be the Machiavellian operators setting up a situation where they stand to gain from the company's risk and be shielded should it go badly. After all, investors in high growth companies are looking for one or two massive wins out of a portfolio of numerous companies and can justify such risks. The founder and CEO of such a company doesn't have the same risk profile since all of their eggs are in one basket.

To be clear, I don't have any reason to believe that this is what happened and I think such narratives are more appropriate for works of fiction. Reality is far messier.

hagy··on Tell HN: Triplebyte reverses, emails apology
Agreed. I could imagine how many of the most active users of their platform would be excited for any feature that improved their prospect of landing a job. Combined with the team's excitement for taking on LinkedIn and expanding their company, I could see how they'd fall into this tunnel vision.

Initially I was quite unhappy with how their CEO blindly defended the decision on the earlier HN thread, but I gotta give him credit for changing his mind and drafting this earnest apology. Everyone is human and its easy to get caught up in your own bubble, especially when you've been excitedly executing on a vision with a team that also lives in that bubble.

Still don't think I'll ever use their platform as either a member of a hiring team or as a job seeker. But at least this followup lessens my negative connotation for Triplebyte that developed over the previous few days.

hagy··on A major reason for departures at Slack was “remote work request rejected”
I think the asynchronous nature of email makes it a superior communication medium. With slack and other messaging apps, we all end up writing short bursts of whatever is on the top of our head, without much thought or organization of the ideas. In contrast, with email, you can take some time to create a concise and well-organized message. I find email threads to generally be shorter than the comparable slack threads with each email adding more useful information.
hagy··on Blogging Is Not Dead
Like your idea! Posted my blog and looking forward to discovering new blogs.

I too miss the days of curated links on personal sites. Occasionally, I'll find a gem consisting of a simple, yet captivating personal sites with links to additional interesting information. The sites almost always appear to have been up for a decade or two, showing they came from those golden days.

If your new subreddit takes off, which I hope it does, it would be cool to start building an organized and curated list of blogs and individual posts on the wiki.

hagy··on Tiny websites are great
Even for small personal projects, analytics can give you a lot of insights into what your viewers like. Things like session duration and bounce rate, broken down by page, can tell what content people enjoy and what contents needs some work. Also useful to know what fraction of your users are recurring versus new users to tell whether people actually return to your site or if they just check it out once. Lastly, the refer stats can help you figure out what other sites and communities are interested in your project so that you can further engage with them.
hagy··on Tiny websites are great
I agree that S3, Route 53, Certificate Manager, CloudFront are great for serving small static websites, but as others have mentioned there are plenty of free alternatives. Nonetheless less, I think this approach is the right solution if you're already in the AWS ecosystem since it integrates well with other serveries. E.g, adding LambdaEdge if you need some dynamic components in the future.
hagy··on Tiny websites are great
I think there are several sites that offer such functionality. Squarespace and Wix immediately come to mind due to all of their advertising. There was some other company I used a while back for a small website for an engineering team, but the name escapes me. These sites are perfect for small business and organizations that just need some web presence without having to think through any of the technical side.
hagy··on If I could bring one thing back to the internet it would be blogs
I never realized how bad Google spam could be for technical content until I had to start searching for solution to some Windows issues. Almost without fail, the first page would be littered would spam sites posing as informative answers. Many of them were just duplicating content from official Windows documentation with minor modification. The more sophisticated ones would provide enough real content to entice you into thinking the page had the solution only to reveal you had to sign up to access the full content of the page.

I've never encountered this before when searching for linux or programming topics. In those cases, Google results always include relevant stack overflow postings and links to the appropriate section of documentation.

I'm surprised Google hasn't penalized these spam pages, but I'd imagine there are some perverse incentives to keep them around. Wouldn't surprise me if many of these sites show adds through a Google-owned affiliate program or are in another way tied into Google's ad tech empire.

hagy··on If I could bring one thing back to the internet it would be blogs
I agree and have personally found it quite easy to setup small websites hosted on AWS using Route53, Certificate Manager, S3, and CloudFront. They cost nearly nothing at low scale and are quite cost efficient until you hit serious scale, which few personal website ever achieve.

Yet, I don't think most people are going to want to go this route and it would take a fair amount of tooling to automate everything. It's not sufficient to just abstract away the cloud provider, people also need tools for creating and managing content. In theory you could run such tools locally, but I think most people would expect a web interface similar to that provided by Wordpress and medium.

Further, there's a big difference between free and essentially zero cost. How many people are going to be motivated to pull out their credit card to create blog when free alternatives already exist? Not only are existing blogging sites free, but they also promise the opportunity to actually make money through their affiliate program if the site becomes popular.

hagy··on Pretending OOP Never Happened
100% agree that shared mutable state should be minimized regardless of the paradigm used and further agree that it's generally not possible to totally eliminate it. I believe programming in a functional style helps on to adopt a mindset towards minimizing shared mutable state.

Also believe functional programming gets one to think in terms of function composition. Even in an OOP-heavy language like Java, one can find themselves developing complex operations as a composition of simpler, reusable operations. While Java may not have proper 1st class function nor solid syntax for working with functional interface, one can still think in terms of composable operations.

hagy··on Pretending OOP Never Happened
I agree with a lot of this, although I wouldn't conflate DI references with global variables. They certainly allow for shared state between different components, but the great thing about DI is that you can always create new contexts with a separate set of shared state references.

I also agree that is kinda of funny to constantly so the Verber classes everywhere in Java, but it has at least improved over the last several years with the standardization around Function<T,R>, Supplier<T>, Consumer<T>, etc. Lambda syntax and method references also help. I'd admit the syntax for using a functional style in Java is still a little jenky, but its quite an improvement from where things were back in the day.

hagy··on Ask HN: What's your quarantine side project?
I've been learning how various database components work (e.g., log-structured merge trees) by implementing them from scratch and benchmarking their performance with different workloads and configurations. Sharing the results at https://dbfromzero.com
hagy··on How to Serve over 100K Web Pages a Day on a Slower Home Internet Connection
Exactly. For an entirely static website, I can't see any reason not to host content in cloud storage and serve through a CDN (e.g., CloudFront or Cloudflare). You get the advantage of low cost when running at low volume and the ability to scale up as needed.

Further, your users will get lower latency and faster downloads when accessing one of the globally-distributed edge caches. And lastly, you don't have to expose your own IP address, which puts at risk of DDoS.

Does anyone have a good argument for self-hosting an entirely static website?

hagy··on Show HN: Python lib for rich text, markdown, tables, etc. in the terminal
This is great! Will certainly be using it in all my command line tools and scripts. Particularly the log handler. Also, like how it has special support for Jupyter notebooks.

Thanks for developing this.

hagy··on DBFromZero: Develop increasingly sophisticated databases from scratch
Fixed to use a lighter color background for the code syntax highlighting theme. Thanks again for feedback!
hagy··on DBFromZero: Develop increasingly sophisticated databases from scratch
Thanks for letting me know. I'll look into a better code highlighting theme.
hagy··on DBFromZero: Develop increasingly sophisticated databases from scratch
Author here. This is an educational project exploring database development and benchmarking from scratch. Had some free time with the quarantine and using this time to learn more about databases and share what I've learned. Work in progress and would appreciate feedback. Also let me know if there are particular topics that you'd like to explore in future projects.
hagy··on Ask HN: What is your blog and why should I read it?
https://medium.com/@matthagy

Assorted blog posts on software engineering, data science, and introductory computational chemical physics

A curation of the best posts can be found at https://matthagy.com

hagy··on Cell and Molecular Biology Animated Textbooks
For those curious, here are some animations by Drew Berry, https://www.wehi.edu.au/wehi-tv. They're visually stunning, accurate, and highly informative.
hagy··on How to do a code review
What about the importance of handling high-level architecture and design before writing code? This can be done in design docs, discussion on tickets, slack discussions or in person with a whiteboard. I think it's more productive to handle these discussions and reviews before writing any code.

What do other people think?

hagy··on Maker Faire halts operations and lays off all staff
Why don't you use stuff more powerful than can be owned by individuals? I.e., stuff that's regulated. Then they'd have to come by your place.
← PreviousPage 3 of 4Next →