2020-06-01 at

Periodic Re-risking

/was commenting in a forum on questions people need to ask themselves in managing their personal finances; my suggestion was that people need to periodically ask themselves if they're taking too little risk - some might find it is true, then save less and spend more on projects/

My background: my folks are super conservative, highly educated, class-conscious, non-business-oriented types. So the way I was raised, and given some more privilege in terms of aptitude ... I had all the tools to stay in the top quartile of the population class/pyramid just by getting and holding down the right kinds of jobs ... this wasn't even a question the entire time I was raised.

My own interest therefore, is in commerce - because it's stuff I don't think I grew up with a lot of knowledge about. I had other priorities marked out until the end of my first degree, so even when professors asked me to do little jobs like "I have some data in Excel that needs doing" I would just tell them "I haven't studied Excel", and they would be like "oh, ok".

Anyway, following my plan, after graduation (2005) I focused on deprioritising non-commercial studies, so that I could focus on commerce (and Malaysian political economy, but that's another story).

After a few years (2012) I found myself too comfortable again. I could just sit at home trading for a few minutes a day on the KLSE (this is not even a high-growth market) and double my ~40k small monies in a few months, while I spent most of my time studying other things. It was at this point that I decided to start discarding money again ... I never had a business environment to play in when I was growing up, and I was aware that business people need to be comfortable taking losses, in order to be able to approach large opportunities. At this point I basically told myself it was OK to torch the whole trading portfolio, just for the experience of it. And that's basically what I did over the next few months - I just let it sit there, and (since most of it was in options), the time value decayed to near zero.

That was one of the big learnings for me - I'm still building on it. I'm still looking for more commercial stuff to learn. I'm not sure if this counts as personal finance, so I don't talk about it all that much ... also I don't think it's relevant to most readers who are usually coming from the other end, and always worried that they have too little money.

I've "had too much" since I was in college ...

2020-05-27 at

HTTP key-value semantics

omg, my life has been a lie
Well, anyway, I just figured out some grown-up stuff, and I guess I should write it down while it's fresh. So in HTTP:
  • query string parameters (key-value)
  • cookie header parameters (name-value)
  • form string parameters (name-value)
  • ... (not sure if I missed anything else)
First of all, notice that the labels in all of these categories are not consistently termed. Some of their RFCs refer to the label as a 'key', and others refer to the label as a 'name'.

Second, and more importantly, each of these categories ALLOWS REDUNDANT LABELS, which is to say, you can have multiple instances of the same label per HTTP request, and therefore you can have multiple values under each label ... and therefore ...
... every single web application which auto-magically parses a HTTP request and defaults to passing a label-scalar instead of a label-array is a lie.
The semantically correct treatment for this should be label-array and it should be up to the developer to check the length of the array, before making use of the data in their application. Of course, you could argue that the point of frameworks is to reduce such boilerplate. But then I would just say that some frameworks are more obfuscating than others.

A protocol is a protocol. You can have frameworks that make protocols easier to work with, but frameworks which obscure the nature of protocol are bad frameworks. Throw them away. 

This learning triggered me a bit. In a separate post I decided that in the future I must explore a complete refactoring of HTTP/HTML to a new set of protocols ... and the goal will be to see if we can make it more performant than HTTP/HTML while tunnelling it over HTTP/HTML for compliance.

Replacing HTTP/HTML, and Tunnelling the Replacement Over HTTP/HTML

as an ode to how much I hate doing web development
That's it. I'm fucking pissed. (Not more than usual - but today, I have a special announcement.) I am now putting on my to-do list a rewrite of the protocol set { HTML, CSS, HTTP } and to demonstrate how to implement a simpler but fully-featured replacement ... and who cares if it's not broadly adopted ... I'll just have to show how it's going to be more performant even if we tunnel it through the old protocol set ... !

"What's wrong with HTTP/2?"

I'll own up to being a plebe and I'm only concerned with the application layer. (Just read up on HTTP2 briefly - looks like HTTP2 leaves the application layer pretty much the same.) I'm looking to deconstruct all of METHODS, HEADERS, maybe a good chunk of the boilerplate that we call markup ... and just regularise it to a flat single dimensional format. LOL