Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mmis1000
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
121.
▲
by
mmis1000
2y ago
Sometimes the original js function isn't safe at all. So does the typescript definition. For example, `Object.assign` overrides all property with same name. Sometimes you use it to construct a new object, so it is a safe usage. But wha
122.
▲
by
mmis1000
2y ago
Github used to do this. The result is their dark mode isn't useful for anyone. However, They revamped their color scheme later and made it comfortable to read.
123.
▲
by
mmis1000
2y ago
I use firefox for daily tasks. (I am an old user since firefox 3 from the age that firefox is truly customizable). But for frontend develop, I use edge. Firefox is basically unusable in current state. Not able to jump from profiler to debug
124.
▲
by
mmis1000
2y ago
I would if there aren't silly restrictions like rotation lock and fullscreen in safari. You can't even make a app that stay at one direction properly. And fullscreen is limited to video (without any ui control). Even worse that it
125.
▲
by
mmis1000
2y ago
Throwing battery into trash can is a bad idea. And make the battery unremovable from trash is obviously even worse.
126.
▲
by
mmis1000
2y ago
> not having your phone for a day It's generally about 2 or 3 hours here. Probably just watch a movie at theater or workout at gym for a while and it's finished.
127.
▲
by
mmis1000
2y ago
Most phones don't have battery that is removable. But they are indeed serviceable. The battery alone is generally about 10 to 20 usd. And depends on where you are, add the service fee. Your phone is again good for 2 or 3 years. It'
128.
▲
by
mmis1000
2y ago
It's the difference between "how?" and "what?". A procedural approach describe the step you do something. But not what is the problem you want to solve and why you want to do this to solve it. A declarative approach
129.
▲
by
mmis1000
2y ago
Actually there is a common practice that java or js library used to serialize typed data. They just preserve the key starts with $ for special use So a class A with a double and and an int field will be something like { "$type&
130.
▲
by
mmis1000
2y ago
Well, surprisingly. You actually need to swap the battery in UPS about every 3 years. Or the monitor feature in UPS is going to complain _loudly_.(I have one broken a few months ago) So there is not much difference here. Although swapping b
131.
▲
by
mmis1000
2y ago
SPA was never made to solve those problems in my opinion. They are basically unfortunate side effects that introduced when SPA was made to resolve it's original targets. (And without SPA, we would probably never know mess with routes i
132.
▲
by
mmis1000
2y ago
It solves the problem that your ops team sucks and can't deploy anything other than static html while you are required to make a site with proper custom url (and custom content base on url). And to me the quality of ops team is a REAL
133.
▲
by
mmis1000
2y ago
Sometimes the requirements are shit and so are the results. Like asking a instant redirect on invalid page and thus break the back button completely after submit any form. And yet you still get requirements like this.
134.
▲
by
mmis1000
2y ago
Current gen frameworks can totally consume the api on server and spit out perfectly normal html to browser just like normal mpa. However this depends on whether you have a competent ops team that is capable to deploy something other than st
135.
▲
by
mmis1000
2y ago
I think WebRTC data channels will be a good alternative if you want peer to peer connection. WebTransport is strictly for Client-Server architecture only.
136.
▲
by
mmis1000
2y ago
- It is possible, if not likely, that an attacker will control name resolution for a chosen name. This allows them to provide an IP address (or a redirect that uses CNAME or similar) that could enable request forgery. This is quite trival,
137.
▲
by
mmis1000
2y ago
Critical login happen at client machine is how fps games work at all. It's way too late to judge every hit on server due to the latency. A 40ms latency is 3 frame lag even on a 60fps monitor. And It can be a lot worse in a lot of cases
138.
▲
by
mmis1000
2y ago
it's not always easy to tell if it's just a player playing weirdly or a mistuned AI though. Maybe the player just have too low mouse sensitivity so it is always a little lagged, maybe it's actualy AI. There is no easy way to
139.
▲
by
mmis1000
2y ago
Personally, I split code into two parts. The business logic and actually implementation. The business logic may be duplicated due to its nature, but it should not have too many duplicated technical details in it. While the business logic ca
140.
▲
by
mmis1000
2y ago
Both chrome and firefox lock down the javascript that site is running into their own box. By using a standalone process and whatever mechanism system provided. A pwned site alone isn't enough to cause damage. You also need to overcome
141.
▲
by
mmis1000
2y ago
Steam does a lot of upstream graphic/proton works. A distro like debian that update once a year is going to be a bad idea. It means a fix in graphic stack or proton will either, 1. deliver after a whole year, and get actually feedback
142.
▲
by
mmis1000
2y ago
It does look like a lengthen truck head though.
143.
▲
by
mmis1000
2y ago
Having race condition in js is more about having questionable programming practice though. Instead of write result of operations into separate variables and aggregate them later. You write them into the same variable with unspecified order
144.
▲
by
mmis1000
2y ago
I think compare programing pattern(threads) to kernel async apis is a questionable comparation. The point of kernel async apis is not about letting programmers write system calls directly. It's about expose the actual async operations
145.
▲
by
mmis1000
2y ago
Make os thread runs more efficient is like `faking async IOs (disk/network/whatever goes out from the computer shell) into the sync operations in a more efficient way`. But why would you do it at first place if the program can han
146.
▲
by
mmis1000
2y ago
There is no random hassle that get your account/group/channel deleted(unless you are doing real CP, which is a giant red line of telegram) or random limit for size of the group. And easy to use. That's it. Also the apis are a
147.
▲
by
mmis1000
2y ago
As far as I can see. CP is probably the fastest way to get a channel and related account wiped on telegram in a very short time. As a telegram group manager. I often see automated purge of CP related ad/contents, or auto lockout for ma
148.
▲
by
mmis1000
2y ago
The 200kb is already an underestimate. If you search temporal date polyfill and check the js size. It's 200kb for 'single' language. Date is much more complex than you expect. And even yourself don't use it. The library
149.
▲
by
mmis1000
2y ago
Like, what if you only need the date but not the time? You can use timestamp to store a birthday, but which in which timezone should you transform it back to date? Or what if it is specifically about time in timezone independent way? You wa
150.
▲
by
mmis1000
2y ago
> but I find the idea that JavaScript (or any language) needs built-in constructs for this purpose to be questionable. Either this, or every project starts with a 200kb date library import. In reality, I haven't met a single project
More ›