perttir | 3 years ago | on: Which is the best method for deep cloning in JavaScript?
perttir's comments
perttir | 3 years ago | on: Ask HN: Easiest and cheapest full-stack frameworks that you love?
perttir | 3 years ago | on: Reverse Engineering TikTok's VM Obfuscation (Part 2)
perttir | 4 years ago | on: Terraria Source Code (2013)
The repo says this code is only for educational purposes. This spaghetti can be still a good example for the reasons you mentioned. Or maybe it is a good example for an ugly prototype version of an game.
This could be even better if people could see a refactored version of this codebase.
perttir | 4 years ago | on: PHP in 2022
Last time I tried to use Livewire with Vue, it had some issues which caused Vue to lose reactivity. (Maybe Livewire removed the DOM where the Vue instance was rendered. There was some options that prevented livewire from replacing elements with given id/classname.) But if i remember correctly, you cant have livewire element which has vue components as child elements.
Maybe i was doing stuff wrong or the livewire<->Vue compatibility is a bit better nowadays. Or maybe its because I'm too used to Vue.
It felt like the Laravel community jumped to the Livewire hypetrain quite fast and it feels like the livewire recommendation to use alpinejs in someparts is required. And most of the examples for alpinejs requires you to write inline code. (It is possible to split the code to own js files, but then again you are building something that gets closer to Vuejs.)
It feels weird to recommend to write scripts using inline javascript. That requires more CSP modifications for security and also the scripts wont get cached and are loaded every time the page loads. (If I'm correct.)
TL;DR Livewire is great for small features.
perttir | 4 years ago | on: Why IndexedDB is slow and what to use instead
perttir | 4 years ago | on: PHP is worth learning and using
Lots of new good things in php7/php8. The typecasting is way better than before, but it still allows you to be more "dynamic" if you want to.
perttir | 4 years ago | on: Offline-First Database Comparison
perttir | 4 years ago | on: Ask HN: How did you find your current job?
perttir | 4 years ago | on: Project Starline: Feel like you're there, together
I have 300/100mbs connection which costs 20 euros in month.
perttir | 4 years ago | on: Cryptography and how to deal with man-in-the-middle attacks in JavaScript
perttir | 5 years ago | on: How Going Back to Coding After 10 Years Almost Crushed Me
And web browser/css if pretty good when supporting different devices/platforms.
perttir | 5 years ago | on: Ask HN: What new/experimental technology should I learn for the next 10 years?
There are still some tradeoffs, the javascript webview ui components are not fast as the native ones.
perttir | 5 years ago | on: Helsinki Relocation Package: City as a Service
perttir | 5 years ago | on: A look at modern PHP
You can defined what types/interfaces methods needs to return, what types/interfaces variables must have, what types/interfaces the method arguments needs to have.
It also supports class inheritance, abstract classes, interface classes, class traits, etc.
perttir | 5 years ago | on: A look at modern PHP
Maybe the worst thing is the composer (it's slow.)
perttir | 6 years ago | on: Switching from Chrome to Firefox
perttir | 6 years ago | on: Kids' smartwatches have security problems as simple as 1-2-3
perttir | 6 years ago | on: Show HN: Flash replacement
perttir | 6 years ago | on: A guide to Oauth2
Hmm?
> cloneJSON is very slow and can’t do much. Please avoid it.
I always thought that javascript is fast at JSON parsing. Atleast the benchmark shows nice results: https://www.measurethat.net/Benchmarks/Show/18541/0/jsonstri...