I’m going to momentarily subtract to this discussion, tomorrow morning I’d like to begin studying math
Also since I never studied mathematics in english, if anyone knows any excellent website that explains vast amounts of it in a clear manner, pls suggest. I know an italian website that does an excellent job basically explaining in an incredibly intuitive leve all the math up to advanced concepts and it was great for the last run, I hope I can find something similar for eng
PHP is good stuff . I was thinking I would just like some of my colleagues to stop writing stuff in Golang, because no one’s going to maintain that if they’re gone.
Golang has been fantastic for us as a backend language. I feel like it’s effortless to pick up for beginners (looking at you, rust) while also giving tools to do more complicated stuff and have excellent performance in general. Curious as to what you don’t like about it
I don’t like PHP that much but that might just be because I used an old version of it at my previous day-job. Maybe it’s a lot better in newer versions.
It’s mostly the way it approaches interfaces I don’t like. There’s also some minor nitpicks like the multi-returns making neat nesting/chaining of some things impossible, but that’s extremely minor - though it does add up in minor frustrations across the board.
But I feel like a strong type system that has a duck typing-like approach to interfaces is missing the point of a strong type system. I want to differentiate between types that have the same fields. A teapot and a hammer both have a handle, but that doesn’t make them interchangeable with everything else that has a handle.
Other than that… the coroutines are nice but I don’t feel the rest of the language really does anything that needed doing in the first place. Though I will say the tooling is excellent now that the approach to dependency management is fleshed out.
As for PHP, it really improved a lot in recent years, especially the type system. I can completely see why you wouldn’t like older versions though. If I had to get into PHP 5.3 now I’d run away probably
Issue I have with it, is that every “good” feature they put in has some kind of compromise attached, like “you have arrow functions but you can only use them for one liners and anonymous functions still need captures” or “you can type stuff but it will be mostly runtime only and you can’t deeply type something”. If you are willing to write a ton of type comments and stuff (and your ide/lsp supports them), then it’s ok, but that’s a lot of work. There was a typescript-esque language that aimed to fix a few issues I have, but can’t remember it and can’t find it, so not sure how it’s doing.
Btw, came here expecting gpt 4 talk, didn’t disappoint
Oh it’s by no means perfect. A lot of that, especially as it relates to the typing, is a compromise simply because doing it better would require a major rework of a lot of the language’s internals, so doing it compromise and all is better than just not having a halfway decent type system for years to come because it can’t be done perfectly.
There are proposals for a lot more improvements, but these things do take time.
Which is not to say I agree with all design decisions, mind you. What PHP calls an array is still an abomination that should have never existed in the first place.
Where do I even start . Reverse order of type vs variable name, proper error handling replaced with double-returns including an err variable, forced code checks on compilation, the go.mod setup having way too many gotchas, third party packages being downloaded from GitHub by default and having to mess with the local git setup to work around that, lack of classes, etc.
I genuinely tried to use it for a website backend project, but it was 100x more painful to use than Python and frankly very non-intuitive.
Funny behavior, it’s the first time that gpt-4 instead of answering a question, glitches and asks a question itself. Weird that it even used my style from previous questions
Of course, its first message is not what I wrote haha.
Random feedback, apart from this glitch or whatever it was, I have the impression that in the last weeks or month it’s accuracy with languages improved noticeably, but I could be wrong.
That’s funny. I notice it also added the full stop you omitted at the end of your sentence :-). Presumably this is just because it’s continuing the text you wrote in the most probable fashion and it thought your question wasn’t long enough, but I would have thought there would be some extra token in there that indicates the end of the question, or it would do this more often.
If you deliberately end your prompt with half a sentence, does it usually complete the sentence, or does it complain about the half sentence?