Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ClayFerguson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
ClayFerguson
10y ago
Yeah, that's what I just said.
32.
▲
by
ClayFerguson
10y ago
A well-designed web app will have a version number embedded in the filename(s) of the large file(s), (like the filename of a minified JavaScript file containing the entire app) so that upon first visit to the page the app is downloaded and
33.
▲
by
ClayFerguson
10y ago
No I didn't know the 140 thing was from SMS. I just remember everybody talking about how ground-breaking it was at the time. Software developers tend to all agree Twitter was never an admirable technology but merely a gimmick that went
34.
▲
by
ClayFerguson
10y ago
That is so true. Frustrated me so much as a student, and even an adult taking interview tests as a software developer. If you happen to know more about the subject than the person who wrote the test question, frequently (or at least from ti
35.
▲
by
ClayFerguson
10y ago
Apps which have a meaning for "the previous place I was at", benefit from a way to go back. I do plan on a "back button" in meta64 that takes you to the prior NODE (and will be a full history of nodes), but this most def
36.
▲
by
ClayFerguson
10y ago
Switching to an SPA will cause resource problems, if you have leaky memory use (i.e. maps or arrays that continually grow). An app that refreshes pages a lot (non-SPA) will have those bugs masked, because essentially every page refresh is a
37.
▲
by
ClayFerguson
10y ago
I already had modules on my TODO list, implemented it, didn't like it, took it back out, and converted to TS namespaces. I have been waiting for React to emerge as a clear winner before using it. I only use libraries, APIs, languages,
38.
▲
by
ClayFerguson
10y ago
The 'assignability rules' of TS catches type-errors in a way that 'solves' all the problems JS ever had. You can critique the nature of that solution if you want (after all, there are an infinite number of solutions in t
39.
▲
by
ClayFerguson
10y ago
If you took a poll of developers about what the problems with JavaScript really are, the things you mentioned wouldn't even make it onto the list. Imagine how much of a disaster the web would be today if JavaScript allowed threading
40.
▲
by
ClayFerguson
10y ago
I use the '=>' operator to get a 'this' reference that does what you'd expect (like in Java) by getting whatever object is running rather than the typical JS 'this' of the function. Trivial example is h
41.
▲
by
ClayFerguson
10y ago
If you want to trade contrarian jabs, I can play that game: TypeScript does far more than 'mitigate symptoms of type unsafeness' it is a fully type-safe language that will get proper compile-time errors if you use the wrong type.
42.
▲
by
ClayFerguson
10y ago
TypeScript is the modern way to 'do' JavaScript. It solves every problem that JavaScript ever had.
43.
▲
by
ClayFerguson
10y ago
Because of the naming convention i'm using for namespaces, if I ever decide to convert to modules, adding the import statements will be straightforward and nothing will even be renamed. The namespaces would simply 'become' mo
44.
▲
by
ClayFerguson
10y ago
haha. There is ONE variable that violates the naming convention. srch!=search.ts. I had a reason for doing that but just never changed it back. The code will easily convert to modules if I ever decide to. For now I'm just keeping it si
45.
▲
by
ClayFerguson
10y ago
1) Bundling: Glad you're backing off your anti-bundling position. Good move. 2) JQuery: Any JS library is better when it adds only a single variable to global scope. JQuery uses $. My app uses 'm64'. Anyway what is the better
46.
▲
by
ClayFerguson
10y ago
As a TypeScript app the obvious thing for me was to let typescript bundle it also. I'm using Google's minification: https://developers.google.com/closure/compiler/
47.
▲
by
ClayFerguson
10y ago
It's hilarious that you say bundling+compression+minification is "obsolete" and your suggested better way is "stop using HTTP, load from a filesystem." You had to bend over backwards THAT ridiculously far to try and
48.
▲
by
ClayFerguson
10y ago
You are correct. My post was not about grooveshark or in any way related to grooveshark.
49.
▲
by
ClayFerguson
10y ago
In a way modern SPAs with a large JS installed payload/app on a browser are very simiar to a 'desktop' app communicating via a form of RPC to some remote services. The main "epiphany" most developers are still missi
50.
▲
by
ClayFerguson
10y ago
Based on your definition of "giant global variable" the $ in JQuery is also precisely that. lmfao. Seriously bro, you know i'm right. Yes the m64 namespace is designed to encompass the entire app, to keep meta64 from having A
51.
▲
by
ClayFerguson
10y ago
What most SPAs/apps do is 'tolerate' clicks on the back button, by taking you to some reasonable prior place, within the same site/app. Now that I think about it more, i might even support this in meta64 just to appease
52.
▲
by
ClayFerguson
10y ago
So it's not obvious to you that 'podcast.open()' is implemented in 'podcast.ts'? There is a naming-convention in effect.
53.
▲
by
ClayFerguson
10y ago
We all know the web was invented for static document browsing, and that was the REASON the back button was invented. Nowadays with Javascript everywhere on all devices everyone is writing APPS that run in the browser. It is simply bad desig
54.
▲
by
ClayFerguson
10y ago
meta64 is more of an APP than a webpage. For example, opening and closing dialogs is done by creating and destroying a DIV. It's not done by reloading the page, and rendering a new template on the server to send down. The reason I don&
55.
▲
by
ClayFerguson
10y ago
I use the standard every-day definition of "architecture". You're right about JSON and SPAs really catching on finally. That's why I shared this post, and to help people out who've been brainwashed into thinking SPA
56.
▲
by
ClayFerguson
10y ago
if I had minification on, your comparison would be apples-to-apples. I have it off for now, for debugging. Also my APP installs itself the first time you visit the page. Think of it as an APP INSTALL. Wikipedia is NOT an app, and has nothin
57.
▲
by
ClayFerguson
10y ago
Are you guys actually arguing that closing a dialog or popup in a web-app should be done with the back button? Or merely that the back button should DO that functionality? Once you write a true "application-like SPA" you see the f
58.
▲
by
ClayFerguson
10y ago
Newsflash for ya: The whole world is moving to SPAs.
59.
▲
by
ClayFerguson
10y ago
My GUI design is definitely not yet perfected. I experiment with lots of different things. The website is not ready for users, but mostly DOES work. The RSS is pretty much usable however. One of my own main news sources. The triangle icon
60.
▲
by
ClayFerguson
10y ago
srch is namespace: I think it was about line 8 in this file: https://github.com/Clay-Ferguson/meta64/blob/master/src/main... That's funny that you don't like singletons. Not sure how you g
More ›