Better HN
topnewbestaskshowjobs
Log inSign up

ajsharp

1,915 karma · joined Apr 30, 2010 (16y ago) · 347 submissions

building adfactor.ai

I write here sometimes https://ajsharp.com.

Submissions

comment 4y ago · link · parent

The visualization of the co2 extraction process is incredible. Kudos to whoever built this. Incredible.

comment 4y ago · link · parent

This is a smart solution to the problem, if you must use OFFSET. That said, if you can avoid OFFSET, do, as it's typically considerably slower than a simple indexed range query.

If you're OFFSET-ing, say, 1000 records, I believe the database needs to load those 1000 records in some way, to exclude them from the result set (it's possible mysql does this differently than postgres). With a ranged query and a cursor (e.g. select * from tweets where created_at > CURSOR LIMIT 20) is, generally, more efficient. But cursored range queries don't make sense in a lot of cases and often come with some additional complexity in the code.

comment 4y ago · link · parent

Thanks, this is incredibly useful! Really appreciate it!

comment 4y ago · link · parent

Very much appreciate sharing your experience here. This is fantastic!

35.

Ask HN: A React-like framework for building pannable/zoomable canvas apps?

7 points · by ajsharp · 4y ago · 9 comments

comment 4y ago · link · parent

Second all of this. 3% is nothing for an exec if they're invaluable to the business. If this person leaves, how would feel? Glad you still have that 3%, or panicked because you can't run the company without them?

comment 4y ago · link · parent

> Organizing your local software systems using separate processes, microservices that are combined using a REST architectural style, does help enforce module boundaries via the operating system but at significant costs. It is a very heavy-handed approach for achieving modularity.

One of the most effective and succinct criticisms I've seen of microservices: an architecture hack for modularity.

The irony is, it's rarely an effective hack. If you don't get your service boundaries right, modularity goes out the window, and you're stuck with a bunch of network calls that should be function calls.

comment 4y ago · link · parent

too risky. any named companies' share price would plummet immediately.

comment 4y ago · link · parent

These details are wild, scary, and fascinating. Fascinating from the perspective of how easy it is for foreign governments on the other side of the world to try to scare the shit out of US citizens by hiring some scumbag PI for probably as little as $5k.

> Beginning in September 2021, Lin hired a private investigator (the PI) in New York to disrupt the campaign of a Brooklyn resident currently running for U.S. Congress (the Victim), including by physically attacking the Victim. The Victim was a student leader of the pro-democracy demonstrations in Tiananmen Square in 1989, who later escaped to the United States, served in the U.S. military, and became a naturalized U.S. citizen. In September 2021, the Victim (then living in Long Island) announced his intention to run for a U.S. congressional seat on Long Island in the November 2022 general election.

> In hiring the PI, Lin explained that if the Victim was selected during the June 2022 primary election, then he might be “elected to be a legislator. Right now we don’t want him to be elected.” Lin emphasized that, “Whatever price is fine. As long as you can do it.” He also promised that “we will have a lot more-more of this [work] in the future…Including right now [a] New York State legislator.” Lin explained to the PI that Lin was working with other unidentified individuals in the PRC to stop the Victim from being elected to U.S. Congress.

comment 4y ago · link · parent

Can people still not play this game??

comment 4y ago · link · parent

I feel for this person, but there's a line in here I found revealing:

> Unfortunately, Dgraph was always undervalued by investors.

This feels a bit like blaming the investors for why the company failed. To put it bluntly, there's a point at which you raise capital and build on vision. Your early investors and users are taking a giant leap that a. you can execute on the vision and b. customers will one day want to pay you for that vision.

Then there's point at which the rubber hits the road, and either customers pay you money for the thing you built or they don't. If they don't, you need a really convincing story to convince your investors they shouldn't cut their losses. It's a shame the company failed, it seems like they were working on some cool technology. But based on this post it sounds like no one wanted to pay for whatever it was they built.

comment 5y ago · link · parent

you win HN today, jazzy

comment 5y ago · link · parent

I'd argue they're popular because no better alternative has been created (yet).

My point with the software is that most software people use to create software/apps is increasingly created with web technologies / electron apps, so the native app ecosystem on a desktop machine is increasingly weakening as a moat.

comment 5y ago · link · parent

Lol. Ok. You're right. Congratulations! How's it feel?

comment 5y ago · link · parent

Had not seen this. Thanks for sharing.

comment 5y ago · link · parent

What about the barrier to entry is insurpassable? Apple hardware in about a decade went from being something every developer I know raved about and loved to being something everyone complains about and is generally unhappy about. Apple went from being a computer company to a consumer electronics company. The more they expand into other consumer verticals (tablets, headphones, CARS), the more the computer products suffer.

comment 5y ago · link · parent

100%. That's what Apple got right then and one of the reasons why Linux has never been able to really penetrate the desktop or professional desktop market. Otherwise you're constantly debugging things that should Just Work like external displays, random device drivers, etc.

comment 5y ago · link · parent

Software developers are a large and massively growing market segment. That's not niche.

comment 5y ago · link · parent

Agree to disagree. Java is inherently cross platform. Jetbrains stuff runs on any linux platform, as does vscode and any of the modern development workflow stuff. The development stack is steadily moving away from native apps. Vscode is essentially a webapp, and indeed it can run be run as one.

comment 5y ago · link · parent

Didn't say it would be quick. Sure, it was a long cycle for them, but the ecosystem is much further along now. I think it's to bring to market in the hundreds of millions.

comment 5y ago · link · parent

One of the biggest opportunities in technology right now is to re-run the Next/Apple playbook and create a new hardware/software technology company focused on developers. Good quality hardware married with a great OS / window manager. Most of the software we use to create software are electron apps, a thin layer of native code to run a bunch of javascript. The main notable exception is XCode, but the ecosystem of non-ios/apple developers is far larger. Wish someone would do this. I'd pre-order tomorrow.

comment 5y ago · link · parent

Failure is an end point; you're on a journey. A couple of thoughts...

On college: For many, there's no quicker way to crush a coding hobby than to study it via a computer science program. So fucking boring. Software development != computer science. That's where I started and I changed majors after my first year because I wanted to build shit and not write a fucking bubble sort. So I switched to economics and political science and kept teaching myself to code, got a coding job in college working for the university, graduated, didn't know what i wanted to do, until i stumbled into a 3 month "consulting" gig that morphed into my first job, which led to my first real startup job, which led to [on and on].

> And I began thinking about my career as a software engineer. How am I going to find a job?

This will sound petty bc you're at the beginning, but finding a job will eventually prove easier than you might think at this moment. Finding a good job (define "good" as you will) will prove considerably harder. Think of your first job as an internship. Do a great job and view it as a stepping stone to the next stone in your career. Do good work dispassionately. Don't mistake employment for loyalty.

Your parents, respectfully, don't have the slightest clue or context for understanding what it is you're trying do or how you'll make a living at it. It's annoying, but it's fine, bc it's your life not theirs. They really don't need to understand it and you don't need them to.

My advice...

To get good at programming: build something, anything. An idea you have. Don't have any good ideas? Try to build a clone of something else that exists. Also, and everyone says this ad hominem but it's true: contribute to open source. Offer your help. Any open source project of any size typically has quite literally a metric shit-ton of open issues, and not nearly enough people to fix them. So figure out how to fix one. Then do another. Keep doing it until the team makes you a contributor.

One brief note about career and "networking": contributing to open source is a very powerful form of networking. Every time you contribute to a project you are networking with others backed by your work. Don't take this for granted. You should also join discords and slacks and go to conferences when people do that again. I cannot stress this enough: your network is everything, and the more you invest in it the more you'll get out of it.

To get a job: fuck linkedin. Fuck job postings. Get "good enough" at programming (a much lower bar than you think), build a list of companies that you'd like to work for and cold email the founder (founder emails are almost always firstname@company.com). Shower them with praise about how much you love their company and think they're amazing. At the very least 80% will respond to you. There are several people on my team currently who got hired this way. This works particularly well for very early-stage startups; less so for larger companies.

Good luck, keep building, I promise you'll get where you want to go.

53.

I made $50K in three days with NFTs(paulstamatiou.com ↗)

38 points · by ajsharp · 5y ago · 81 comments

comment 5y ago · link · parent

Lol “keep an eye on” makes it sound like that coffee pot might step out of line and do something unexpected.

comment 5y ago · link · parent

OpenSea has opened an internal investigation as per https://opensea.io/blog/announcements/employee-information-u...:

* OpenSea team members may not buy or sell from collections or creators while we are featuring or promoting them (e.g. on our home page); and * OpenSea team members are prohibited from using confidential information to purchase or sell any NFTs, whether available on the OpenSea platform or not.

56.

OpenSea Head of Product accused of front-running homepage drops(twitter.com ↗)

4 points · by ajsharp · 5y ago · 3 comments

comment 5y ago · link · parent

Additional context here: https://twitter.com/ZuwuTV/status/1437921263394115584

tl;dr It appears the Opensea Head of Product was effectively front-running NFT drops before they hit the homepage, buying ahead of listing and then selling after the pop.

comment 5y ago · link · parent

So if that's the case, what is the incentive to settle for the company? Or can the SEC just arbitrarily levy fees?

comment 5y ago · link · parent

I assume DOJ can't prosecute when SEC comes to a settlement agreement?
12345
12