Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
z3t4
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
901.
▲
by
z3t4
5y ago
JSON or XML, using REST or websocket maybe? One request per "page load" is an anti-pattern in SPA's though - you should send all static data once, lazy load large assets like images, and sync only the dynamic non cacheable da
902.
▲
by
z3t4
5y ago
I think it would be cool if projects/repos had a .envconf or .envsetup that described how to setup the environment in order to compile,run, and develop the software. So that different IDE's could use this information to automatica
903.
▲
by
z3t4
5y ago
There are two things in software that I try to stay away from: Bluetooth issues and calendar/dates...
904.
▲
by
z3t4
5y ago
Install xserver (also works on Mac and Windows) then ssh -X to the container. Start sublime on the container, and the gui will show up locally.
905.
▲
by
z3t4
5y ago
I don't know if this is legit or not, but a Swedish non profit is pretty awesome, it means that anyone can be a member as long as they pay a yearly symbolic member fee. Everything is owned by the members and is fully democratic, wher
906.
▲
by
z3t4
5y ago
There is a dilemma when optimizing web sites and apps: Do you want stuff to show up on the screen before or after the font is loaded? So by not trying to optimize the font load, your site will render/load faster (because the browser
907.
▲
by
z3t4
5y ago
JavaScript is backwards compatible. What you wrote in JavaScript 10 years ago will still work today in all JavaScript engines. Because you mentioned Babel I suspect you actually didn't use JavaScript - but a language that compiled to J
908.
▲
by
z3t4
5y ago
JavaScript does not have a monopoly in web browsers. Microsoft supported vbScript and Google made a better and faster JavaScript (Dart) which also ran natively in the browser. But neither didn't take off. You can still "compile&qu
909.
▲
by
z3t4
5y ago
Web development, even single page apps, and progressive web apps, can be simple if you skip the web frameworks which solve non-problems and complicate things. The most difficult problem in web development is to make the user interface (UX)
910.
▲
by
z3t4
5y ago
Because errors dude to missing semicolon will happen so rarely, people skip them for various reasons, but the fix for these errors are to use semicolon , or a tool that will tell you where a semicolon would change the "abstract syntax
911.
▲
by
z3t4
5y ago
Because people coming from other languages find this confusing the let (and const) keyword was specified (ES6/2015) for block/angel-bracket lexical scope. Whereas var is function scoped.
912.
▲
by
z3t4
5y ago
JavaScript is different in that it use the function as the lexical scope rather then the angel brackets. This forces you to think about the code as functions, rather then blocks. And in turn helps you think of the code in three dimensions w
913.
▲
by
z3t4
5y ago
> f HN had its way, every product and service on the planet would be devoid of marketing, sales or design and the only way you could buy it was via the command line grep "features" | sort price Meanwhile the rest of th
914.
▲
by
z3t4
5y ago
What are you scarifying when going LATS? It sounds too good to be true.
915.
▲
by
z3t4
5y ago
Also the marginal cost for Macdonals to serve one more hamburger is also very low. And anything that is automated has very small marginal cost, which is most stuff now a day. If you want to measure inflation, check how much it cost to hire
916.
▲
by
z3t4
5y ago
Whet it comes to networks, this is a thought tradeoff because we can have the same latency even though the throughput (mbit/s) is high. Also on modern consumer CPU's it will take some time to throttle up. Also JIT compilers can do
917.
▲
by
z3t4
5y ago
Almost all programming languages have lexical scope/closures and functions. Understanding the scope really helps in all web frameworks. This very basic concept took me 10 years to understand. I have no book recommendations, but recomme
918.
▲
by
z3t4
5y ago
Interesting though, what if Apple gave away the hardware for free? It's a crazy business model, but if they can take 30% cut from everything it might work.
919.
▲
by
z3t4
6y ago
For personal projects I just use plain javaScript, ES5 even, without any compile steps, everything loads instantly and runs on every browser that supports JavaScript, and the development can be set up in any environment/OS without head
920.
▲
by
z3t4
6y ago
If you wonder if a computer system can think logically or if its very stupid, its always the latter.
921.
▲
by
z3t4
6y ago
One person cannot by her/him self return 3x or 5x profit. Its always about the team. And good team leaders are very hard to get by.
922.
▲
by
z3t4
6y ago
AbstractFactorySingletonProxyFactoryBeans 8 layer deep is really the anti-pattern of reusability, you can't just copy/paste that code into another project without also including hundreds of dependencies. It's like "proof
923.
▲
by
z3t4
6y ago
Also works good on sites that are not responsive.
924.
▲
by
z3t4
6y ago
Gotcha in ES6 import is that you need to import the default export specifically eg. import default as Foo, * as Bar It would be much easier if it was one namespace like in Node.js require. eg. var Foo = await requires("foo", {fs:
925.
▲
by
z3t4
6y ago
Even though there is the async keyword and Promise() there are no async functions nor callbacks in JavaScript itself. For example setInterval and setTimeout is not part of the language and needs to be implemented by the runtime/program
926.
▲
by
z3t4
6y ago
JavaScript itself is not async. It's the programs/engines that runs the scripting language that have decided to make it async with callbacks. For example Microsoft JS is not async. * ES2022? do have some garbage collection hook th
927.
▲
by
z3t4
6y ago
Look for a company who's business model includes uptime, security and scalability. And is big enough to not outsource those parts. And in a mature market where customers can tell the difference.
928.
▲
by
z3t4
6y ago
You can automate the communication by writing good documentation and api reference with examples.
929.
▲
by
z3t4
6y ago
> People need to actually have felt the pain. Just like those that never have been hacked dont care about security. Or those that have never lost data dont care about backups. Or those who has never had more then 10 simultaneous users do
930.
▲
by
z3t4
6y ago
If you want stability I would go with a custom OS, eg. no auto updates, only update parts of the system if you need/want to. And apply security/hardening in several layers. Make backups of course. Then you could leave it running,
More ›