457 karma · joined January 22, 2016
Still more complicated than updating my .plan file via FTP.
Not sure what particular use case you have in mind but which language has built-in functionality to validate chunks of bytes without some kind of type definition? To me this is an orthogonal problem to language design. Every web framework has to serialize and deserialize data.
What I was getting at is that TypeScript is perfectly suited to define type safe data structures wihtout reinventing the wheel. If you're going to parse type definitions for your validation middleware you might as well use something that can also applied to your business logic.
So it's basically validation middleware. The HTTP protocol does not define any such thing.
/**
* Streams results for our lovable assistant
* @param {string} query The question for our assistant
* @stream {object} chunk
* @stream {string} chunk.id
* @stream {string} chunk.object
* @stream {integer} chunk.created
* @stream {string} chunk.model
* @stream {object[]} chunk.choices
* @stream {integer} chunk.choices[].index
* @stream {object} chunk.choices[].delta
* @stream {?string} chunk.choices[].delta.role
* @stream {?string} chunk.choices[].delta.content
* @returns {object} message
* @returns {string} message.content
*/
Is a developer supposed to type that out for every single endpoint that uses the chunk type?Also do I understand it correctly that you need to use Instant API everywhere in order to get this "type safety" and as such any consumer implementation would be basically limited to JavaScript?
1. 2FA does not require your phone number.
2. If you don't already, you should use a public key for pushing your commits
It's highly unlikely that you lose commit access even if you don't complete the "enrollment" unless you use http authentication for pushing commits in which case you should realize that password security is a huge liability for any big web application and I recommend you reconsider your approach.
Because a lot of companies have moved on to NoSQL databases and key value stores.
> * Concurrent Programming
Because many languages use lightweight threads (fibers, coroutines, etc.) now that don't involve context switching.
> * Network Programming
Because these days barely any company does anything beyond web requests and nobody implements these from scratch. No DNS lookups, no ACKs, no manual buffer writing and reading, no marshalling, etc.
Sure if it's a single page "app" with just a form you're gonna be fine. But what if it's expanding to two pages? Suddenly you have to maintain at the very least a separate header for two html pages including all meta and resource tags. Web Frameworks take care of that. So my advice would be to at least look at static site generators if you think this is where the project is headed.
How in the world did you come to that conclusion? Any Meta app you have on your smartphone is doing what they can to collect heuristics in order to identify you and serve you Ads. How is that any different? It's just not as obvious.
> Only nobody cared because that was the time prior to the latest privacy awakening [...]
You make it sound like it's a fad or the user simply didn't care in the 2000s. Just because you can doesn't mean you should. If a private company would park a van in front of your door to observe you 24/7 in order to sell mundane details about your daily life to advertisers you'd be up in arms. Yet in the digital space it's no big deal.
And yet they failed. Remember Atom[1] or Brackets[2]? I'm sure they are still used by a lot of people. But it was interesting to see Microsoft grow VS Code so fast in popularity. My vague notion is that addressing developer pain points early and providing first party plugins for popular ecosystems gave them an edge.
It's not exactly an easy problem to solve (simulating crowds in a huge city without any organic view distance portals) but I guess they could have also saved themselves a lot of pain by not targeting legacy systems or maybe make less ambitious claims about their game.
They also have apps on desktop and mobile. The apps may not have the most polished UI but they work extremely well.
EDIT: Oops backspace works. Might have been a combination of putty and sqlplus. Nevermind.