HN user

notresidenter

274 karma
Posts1
Comments65
View on HN
PHP 8.4 2 years ago

This has existed for so long though, through `__get`, `__set` and other methods, the ArrayAccess interface, the `__call` and `__callStatic` methods.

This way, at least, it's much more explicit. And this should probably only be used inside frameworks anyway, and not in "user-land" code.

You should look at `func_get_args()` usage in the wild. This is sometimes used for (mostly outdated) good-enough reasons and doing this might break it?

Cats are about 2 feet that means six times there height would be about 12 feet. That would be a very terrifying cat

Yes it would. There's something wonderful about the paths that a mind that hasn't been fully toned the way society wants it to explores.

Well done.

(Paying customer) I wish they would focus more on their existing product(s). There's a huge synergy between Calendar and Mail, but Drive, Pass, VPN, are useless (but the VPN is well-done). There's still no Caldav support or scheduling, and a lot of things are annoying in Mail, of course some of these are hard to solve with E2E, but at this point, their E2E claim is also half-baked and mostly for marketing, why not fix all of things?

What's the rationale behind releasing yet another half-baked product?

It's a really nasty feeling to live in a society influenced by politicians in power with ideas so far away from my own, while also having little influence over their decisions, unless I give up what I like doing and go into lobbying (or politics, which seems to me like the poor man's lobbying)

I've sent an e-mail to the permanent representative in the country I live in, but I feel particularly blindsided knowing about such a decision on the same day it is voted. And angry for all the people, especially journalist friends, that are out there and unaware of what's going on.

I'm not sure this is what democracy is supposed to feel like, but if it is, it feels like shit.

It took me 5 minutes to realize that this isn't PyPi the package manager but PyPy, an interpreter for python.

This was very confusing, especially because they mentionned pipx, which seems related to PyPi, so it was plausible this was about PyPi.

There are a lot of arguments of authority and _0_ empirical evidence, apart from "I've spent 30 years of my life on it"... There are no sources!?

And then, there are things that jump out to me as false, that could be true, but because the author cites ZERO sources, it's unclear if he's ignorant after 30?! years of research or has an interesting insight.

It's so unscientific, and it's sloppy useless writing like that that makes some people say that the social sciences aren't sciences.

I'm not saying 'all bootcamps are bad' here, I'm saying 'this particular bootcamp is bad'.

I think there's a clear distinction between CS and Software Dev.

The latter _can_ be self-taught, or learned with a bootcamp, if it's good. It's essentially a trade which means practice is everything. And also includes a good bit of project management.

The former is a scientific field, much like physics, sociology, etc. and having a CS degree is useful for doing research (which in CS could mean coding, and could mean writing software, e.g a new type of database/algorithm/other) hence the confusion between the two. And some/most Software Devs need to understand/improve/adapt artifacts from the field of CS, so a CS degree is often beneficial for software devs, but not needed.

So, I don't think it's fair to say that it's a 'fake programming vocational qualification', it's not what it's for, and people that say the contrary misunderstand what a CS degree is.

GP, There's no need to attack the author?

"42 School" which is the "school" his degree comes from is a glorified boot camp. It's one of the popular ones (in France)

It's an immediate red flag for many French tech companies when hiring.

Rant: I dislike this boot camp for what it does to parents of teenagers who are promised their child will have a career in tech, but then are not taught the skills they need to grow, so they come on the job market with -2 years of experience because they have to relearn everything (but often don't want to put the effort to do so) because they are attracting lost teenagers that like playing video games, not teenagers that actually want to learn CS and/or Software Dev.

So, you get unmotivated people with a bad attitude and no useful skill, as they need babysitting.

Source: I've interviewed many ppl coming from this school and talked with n>10 founders about their experience hiring from there

Please don't call me deranged. How much do you know about China?

As vague and imprecise as the term "most capitalist" is, it is a blatant ignorance of the way Chinese people (have to) live, especially in cities, to think that it isn't a consequence of an extreme form of capitalism: enormous gaps between the wealthy and the poor and materialism.

China is as much a communist country as Congo is a republic.

Edit: Reading the other comments, it seems like we might all value different aspects of the country to define whether it is capitalist.

Tiptap is a great wrapper around ProseMirror, and if you need to dig deep, TipTap lets you do that but the documentation, for both TipTap and PM isn't as good as it could be and the conceptual model for PM is _hard_ to pick up on the go. I've spent several days on it to get close to what we spec-ed, granted, that's probably a tenth of what I would've spent if I had to build it from scratch, but definitely an investment, because getting all the little interactive details and the way that the custom inline/block elements should work just as the user expects is _hard_.

Overall, it's the only tool I found that makes it as easy as possible to create a good writing/editing experience but it's a hard easy.

Wittgenstein is not "pooh-pooh-able", not by a long shot. First of all, there are two really different philosophies belonging to Wittgenstein, the younger and the older, and the evolution between the two should be of interest to anyone, as it serves as essentially a cautionary tale about concepts and more generally abstractions, detached from empirical evidence.

His philosophy does provide some interesting perspectives on language, even if I don't personally agree with his way of doing philosophy.

I see more and more website use multiple inputs with JavaScript to handle automatically moving from one to the other for OTP codes, including GitHub. It's always buggy because the devs reimplement basic navigation (focus, deletion, arrow keys, etc.) and it turns out that stuff is hard to get right, so they get it wrong. Often, just typing too fast breaks those inputs (<https://github.com/login/device/> for example).

A simple input is much better, even at the cost of a UI that is slightly more ambigous for the user on desktop (on mobile, there's a bagillion things to make inputting OTP codes easy).

Yeah, I think the DaisyUI developers miss the point of Tailwind. You should almost never use "semantic class names" with Tailwind (and what even is a semantic class name, honestly? It's all context-, developer-dependent) and instead go for a component (using a js framework, a web component, or other) and write the component with utility classes.

PHP in 2024 2 years ago

Express is not in the same category as Laravel, what gets closer to Laravel in the NodeJS world would be Adonis (that I know of). Express is essentially a modular router (for people that think that server-side JS is a good idea)

If you run `laravel new my-app`, you got an application with caching, database, queue, views, translations, whatever else you can think of, ready to use with things like Oauth / Payments / E2E Testing / Feature flags / Search... a command away.

You don't get that with Express, you don't get that with Django, from what I've seen (but I'd be very happy to be wrong!)

PHP in 2024 2 years ago

I've thought about doing a Laravel-like framework in Go, but one of the superpower of PHP/Laravel _is_ the possibility to have very loose / no types, which gives a great DX when used correctly, but in Go, you'd have to interface{} so many things that the resulting code would be non idiomatic / not as performant as go can be.

And then, you'd need to have an ecosystem as strong as Laravel which... wow... would take a _lot_ of investments.

PHP in 2024 2 years ago

PHP and the ecosystem around it, especially Laravel, makes developers incredibly productive: everything is so damn easy.

Nothing comes close to it in Go, Ruby, JS (Node), Python; from what I've seen. Laravel is one step ahead.