764 karma · joined Sep 20, 2023 (3y ago) · 325 submissions
comment 10mo ago · link · parent
The ability to load .html files over the file:// protocol is a powerful, often neglected feature. In practice, it means you can double-click an HTML file and it runs an app in your browser instantly.
comment 10mo ago · link · parent
I've always felt like the code I write is a piece of myself; a monument to leave behind for others to admire and interact with once I'm gone.
For me, software development creates an unmatched feeling of alignment. The idea that you could be dead and still share this feeling of alignment with others from beyond the grave is uplifting.
I suppose some people could say similar things about artworks, films or books. For some people, it's code.
Many people appreciate beautiful art, films, books, buildings even; but few people appreciate beautiful code. I think it's partly because most people have never seen beautiful code and partly because beautiful code doesn't pay the bills when maintenance work is billed by the hour... Probably why it's rare to begin with; though generally, open source provides a refuge from this by removing (or reducing) the financial incentive.
comment 10mo ago · link · parent
My point is that there is no correlation between the financial success of the product and the skill of the UX designer or developer; yet financial success is the main metric which is used to determine rank and pay for these specific roles.
I'm happy for sales-people that their pay fully correlates with their performance but as a software developer, it really sucks. My pay correlates much more with the performance of my colleagues in sales than with my own performance. If I'm unlucky, the correlation may in fact be inverted.
I've seen this over and over. I worked in blockchain space; the developers before me wrote TERRIBLE code, the thing was literal spaghetti code, full of vulnerabilities and it's a miracle it didn't get hacked. But the timing was right and many of those early developers earned big money as crypto prices soared in the early days... The people who joined only a few months later and pulled off a heroic redesign/refactoring effort and did an amazing job in record time got peanuts because the hype was dying down. So the fact that they improved the product 100x didn't matter at all. It's like there was 0 recognition.
Bad luck compounds. I could write an entire book about this effect... But that book probably wouldn't sell; ironically, a victim of the same effect it would be describing. People only care about success stories. With good luck; not only do you get to be successful but you get to sell books about it which makes you even more successful. Good luck compounds too.
comment 10mo ago · link · parent
The most I ever got paid working for a company was for a basic project where everyone was moving super slow and people felt comfortable enough to watch YouTube videos in front of their boss and one guy came into work one day wearing his pajamas.
The least I got paid (inflation-adjusted) was a consultancy which had an extremely over-engineered software stack and daily deadlines... Every morning standup started with "What did you get DONE yesterday? What are you going to get DONE today?" If you couldn't point to a specific feature which was FULLY DONE end-to-end, there would be a long awkward pause or the boss would make a negative remark. Their definition of DONE was 100% polished, no iteration; had to be perfect the first time; the boss would sit with you through a very tense one-on-one meeting and go through the detailed requirements for each task word-by-word. The company environment was set up to make it difficult for you to ask question; like the author of this article described so this made it difficult to meet all requirements exactly on the first attempt, let alone given the short deadlines.
I struggled to make sense of the full horror of this industry until Christmas this year; I was at my parent's house and was using their microwave (a popular brand) and it was the most awful UX I had ever seen on a microwave. I literally could not imagine a worse UX if I tried. You couldn't just pin-in the seconds/minutes and press start, you could't extend the start time mid-way through the process and it was hard to start as you had to push a bunch of specific intermediate buttons whose labels made no sense and it would start a fan which kept running even after the microwave was done; I had to pull the plug to get it to shut up... Anyway, this made me think "Wow, my industry sucks... This is the worst software and UX I've ever seen and yet people are still buying this machine! The guy who designed the UX for this thing probably got a promotion too and now giving orders to others about how to do good UX..." This isn't just an outlier 'microwave industry' thing though; this dynamic is present everywhere in the whole tech industry; this was just a particularly striking example.
comment 11mo ago · link · parent
It's difficult to get both human-level intelligence and machine-level precision at the same time. You still need deterministic tools to do the precision work.
That said, I think LLMs definitely have a place and can provide a degree of flexibility to processes which was not possible before.
comment 11mo ago · link · parent
For example, I've seen a lot of companies obsess over minor stuff like shaving a few bucks off their JSON serialization or using a C binding of some library to squeeze every drop of efficiency out of those technologies... While at the same time letting their software maintenance costs blow out of control... Or paying astronomical cloud compute bills when they could have self-hosted for 1/20th of the price...
Also, the word scale is overused. What is discussed here is performance optimization, not scalability. Scalability doesn't care for fixed overhead costs. Scalability is about growth in costs as usage increases and there is no difference in scalability if you use ProtoBuf or JSON.
The expression that comes to mind is "Penny-wise, pound-foolish." This effect is absolutely out of control in this industry.
comment 11mo ago · link · parent
You can still stream the base64 separately and reference it inside the JSON somehow like an attachment. The base64 string is much more versatile.
comment 11mo ago · link · parent
It's almost like some people think human-readability, transparency and maintainability are negatives!
comment 11mo ago · link · parent
You can store everything as a string; base64 for binary, JSON for data, HTML for layout, CSS for styling, SQL for queries... Nothing gets closer to the mythical silver-bullet that developers have been chasing since the birth of the industry.
The holy grail of programming has been staring us in the face for decades and yet we still keep inventing new data structures and complex tools to transfer data... All to save like 30% bandwidth; an advantage which is almost fully cancelled out anyway after you GZIP the base64 string which most HTTP servers do automatically anyway.
Same story with ProtoBuf. All this complexity is added to make everything binary. For what goal? Did anyone ever ask this question? To save 20% bandwidth, which, again is an advantage lost after GZIP... For the negligible added CPU cost of deserialization, you completely lose human readability.
In this industry, there are tools and abstractions which are not given the respect they deserve and the humble string is definitely one of them.
comment 11mo ago · link · parent
Upon further analysis of the full API, it's not as bad as I initially thought.
My initial reaction was kind of surface-level eye-rolling "Oh no, don't tell me they managed to find a way to make URL parsing even more complicated than it needs to be."
But in a way, this is almost an attempt at rolling back the previous complexity introduced by the URL instance and acknowledging the utility of the URL as a string primitive.
It is additional complexity but I guess at least it might prevent the need for additional future complexity.
I hope that's the idea.
comment 11mo ago · link · parent
Overall I dislike the shift away from a URL as a language-agnostic string primitive to some weird convoluted object which is limited to specific use cases.
URL literally stands for Universal Resource Locator... A string is Universal. It can be passed around easily between processes, it can be easily stored in a database, it can be easily shared online, it can be easily passed to an LLM... URLs were supported by LLMs before LLMs even existed! You've got to appreciate that!
This class they call URL is actually not a URL at all, it's more like a bound URLParser or URLExtractor.
A URL is a string that's a fact. Even ask Google; "is a URL a string?" it will say yes.
The idea of a URL instance as a language-specific construct is a bad idea. It's one of the reasons why many people don't like Java.
[EDIT] I don't dislike this API though it initially triggered my Java PTSD as I mistakenly thought it built on TOP of the URL instance. It actually takes things in the opposite direction as I initially understood; it's moving back towards URLs as string primitives which is what I advocate for. I do hope we don't end up adding too much more complexity related to URL handling though.
comment 11mo ago · link · parent
It's a bit like the name 'Apollo'; besides the moon landing project, I know like 2 dev projects called that and also there is a sales SaaS platform with that name.
Surely people should run a search first before choosing a name...
comment 11mo ago · link · parent
I agree that you shouldn't plan too much, but my experience is that anticipating requirements is possible and highly valuable. It doesn't require planning but it requires intuition and an ability to anticipate problems and adhere to certain principles.
For example, in my current job, I noticed a pattern that was common to a lot of tasks early on. It was non-obvious. I implemented a module which everyone on my team ended up using for essentially every task thereafter. It could have been implemented in 100 different ways, it could have been implemented at a later time, but the way I implemented it meant that it saved everyone a huge amount of time since early on in the project.
Also, we didn't have to do any refactoring and were later able to add extra capabilities and implement complex requirement changes to all parts of the code retroactively thanks to this dependency.
One time we learned that we had to calculate the target date/time differently and our requirements engineer was very worried that this would require a large refactoring to all our processes. It didn't; we changed it in one place and didn't have to update even a single downstream process.
It was a relatively complex module which required some understanding of the business domain but it provided exactly the right amount of flexibility. Now, all my team members know how to update the config on their own. We haven't yet encountered a case it couldn't handle easily.
I have similar stories to tell about many companies I worked for. When AI can replace me, it will be able to replace most entrepreneurs and managers.
comment 11mo ago · link · parent
The challenge is writing code in such a way that you end up with a system which solves all the problems it needs to solve in an efficient and intuitive way.
The difference between software engineering and programming is that software engineering is more like a discovery process; you are considering a lot of different requirements and constraints and trying to discover an optimal solution for now and for the foreseeable future... Programming is just churning out code without much regard for how everything fits together. There is little to no planning involved.
I remember at university, one of my math lecturers once said "Software engineering? They're not software engineers, they're programmers."
This is so wrong. IMO, software engineering is the essence of engineering. The complexity is insane and the rules of how to approach problems need to be adapted to different situations. A solution which might be optimal in one situation may be completely inappropriate for a slightly different situation due to a large number of reasons.
When I worked on electronics engineering team projects at university, everyone was saying that writing the microcontroller software was the hardest part. It's the part most teams struggled with, more so than PCB design... Yet software engineers are looked down upon as members of an inferior discipline... Often coerced into accepting the lesser title of 'developer'.
I'm certain there will be AIs which can design optimal PCBs, optimal buildings, optimal mechanical parts, long before we have AI which can design optimal software systems.
comment 11mo ago · link · parent
TBH, the obsession with standards is kind of nutty. It's not that hard to implement custom solutions that are better adapted to specific problems. Standards make sense when you want maximum interoperability but not everything requires this degree of interoperability these days. It's not such hassle to just provide a lightweight client in those cases.
For example, it's not ideal to use HTTP2 server push for realtime chat use cases. It was primarily intended for file push to avoid round-trip latency but HTTP is such a powerful and widespread protocol that people feel the need to use it for everything.
comment 11mo ago · link · parent
24 bit pixels gives 16 million possible colors... For tokens, it's probably enough to represent every word of the entire vocabulary of every major national language on earth combined.
> You have to shuffle your 800GB neural network in and out of memory
Do you really though? That seems more like a constraint imposed by graphics cards. A specialized AI chip would just keep the weights and all parameters in memory/hardware right where they are and update them in-situ. It seems a lot more efficient.
I think that it's because graphics cards have such high bandwidth that people decided to use this approach but it seems suboptimal.
But if we want to be optimal; then ideally, only the inputs and outputs would need to move in and out of the chip. This shuffling should be seen as an inefficiency; a tradeoff to get a certain kind of flexibility in the software stack... But you waste a huge amount of CPU cycles moving data between RAM, CPU cache and Graphics card memory.
comment 11mo ago · link · parent
With graphics processing, you need a lot of bandwidth to get stuff in and out of the graphics card for rendering on a high-resolution screen, lots of pixels, lots of refreshes, lots of bandwidth... With LLMs, a relatively small amount of text goes in and a relatively small amount of text comes out over a reasonably long amount of time. The amount of internal processing is huge relative to the size of input and output. I think NVIDIA and a few other companies already started going down that route.
But probably graphics cards will still be useful for stable diffusion; especially AI-generated videos as the inputs and output bandwidth is much higher.
comment 11mo ago · link · parent
I also think it's true; what appeals to people is something superficial. The product has to be highly optimized to generate an initial 'wow' factor. But it's almost impossible to create such 'wow' factor without sacrificing something fundamental about the product.
The goal is to make such a good first impression that people will pay for your product and then will keep convincing themselves and their friends that your product is great... When it's not because actually there are many better alternatives out there which are higher quality and provide more flexibility.
Among financially successful products, I see a lot of rigid, inflexible, low-quality products. They create a 'wow' factor by removing complexity; also removing flexibility... Targeting a specific psychological bias... These products seem 'easy' and magical at first but what makes them easy also makes them inflexible and fundamentally useless. Because flexibility is what gives a competitive edge... But flexibility also scares people away.
comment 11mo ago · link · parent
What people need aren't more options. What they need is MONEY; which is the ability to obtain the options which exist. And the only way to give people more money is through political means. This is why I was interested in crypto; it seemed to get straight to the point...
I later quit crypto due to too much corruption in the space and launched a mainstream startup with a co-founder centered around helping people find 'the perfect job' but I quit as co-founder because the idea of it almost makes me want to vomit now.
The system is firing people en masse. The system itself doesn't want people to have jobs... So me, trying to work against the system by offering a solution that operates within the system feels futile and like gaslighting users and myself. It's selling a dream. There is no perfect job. Reality is our socio-economic system doesn't even have a shitty job for you... Let alone a perfect job... And most jobs seem like bullshit jobs anyway.
It's extremely hard to find an idea that's both truly useful and profitable these days. That's a shame because that's exactly what I want to do with my life but I feel like this does not align with what is possible within the current system. I cannot find any such opportunities in the tech sector.
Someone told me I should get into politics but again if I think about what the typical politician does, I feel nauseous. The only kind of politician I could possibly be is the honest kind that gets assassinated... And of course I don't want that. Besides, nobody would fund me... My hitman would probably have an easier time raising funding to 'take me out' of politics than I would raising funding to get into it.
comment 11mo ago · link · parent
JWT is intended for authentication. Most of the time you're basically just signing a token containing an account ID and nothing else... Sometimes a list of groups but that only scales to a small number of groups.
comment 11mo ago · link · parent
The kind of code that Claude produces looks almost exactly like the code I would write myself. It's like it's reading my mind. This is a game changer because I can maintain the code that Claude produces.
With Claude Code, there are no surprises. I can pretty much guess what its code will look like 90% to 95% of the time but it writes it a lot faster than I could. This is an amazing innovation.
Gemini is quite impressive as well. Nano banana in particular is very useful for graphic design.
I haven't tried Gemini with coding yet but TBH, Claude Code does such a great job; if I could code any faster, I would get decision fatigue. I don't like rushing into architecture or UX decisions. I like to sit on certain decisions for a day or two before starting implementation. Once you start in a particular direction, it's hard to undo and you may try to double down on the mistake due to sunk cost fallacy. I try hard to avoid that.
comment 11mo ago · link · parent
XSS is a big problem. If a hacker can inject a script into your front end and make it execute, it's game over. Once they get to that point, there's an infinite number of things they can do. They basically own the user's account.
comment 11mo ago · link · parent
Implicit in the design of most tests is the idea that a person's ability to quickly solve moderately difficult problems implies a proportional ability to solve very difficult problems if given more time. This is clearly jumping to a conclusion. I doubt there is any credible evidence to support this. My experience tends to suggest the opposite; that more intelligent people need more time to think because their brains have to synthesize more different facts and sources of information. They're doing more work.
We can see it with AI agents as well; they perform better when you give them more time and when they consider the problem from more angles.
It's interesting that we have such bias in our education system because most people would agree that being able to solve new difficult problems is a much more economically valuable skill than being able to quickly solve moderate problems that have already been solved. There is much less economic and social value in solving problems that have already been solved... Yet this is what most tests select for.
It reminds me of the "factory model of schooling." Also there is a George Carlin quote which comes to mind:
"Governments don't want a population capable of critical thinking, they want obedient workers, people just smart enough to run the machines and just dumb enough to passively accept their situation."
I suspect there may be some correlation between High IQ, fast thinking, fast learning and suggestibility (meaning insufficient scrutiny of learned information). What if fast learning comes at the expense of scrutiny? What if fast thinking is tested for as a proxy for fast learning?
What if the tests which our society and economy depend on ultimately select for suggestibility, not intelligence?