11

Because PHP is the only language that doesn't make me wanna punch my screen 24/7 (which is gonna get asspensive really quickly)

Comments
  • 7
    PHP is your *favourite* programming language?!?

    SRSLY????
  • 2
    Have you tried Python?
  • 1
    @DirtEffect It is mine as well, pretty sure it is @C0D4 as well :D
  • 4
    @AleCx04 well each to their own, I guess. But duuuude.

    I mean I did PHP ages ago when it still had the major release 4. I did one project (totally on my own, which certainly didn't help) and it actually got me off programming for two years. I couldn't even look at a programming language and repaired electronics components instead.

    I mean... I have heard even C++ or Java programmers say things like "yeah, but it could be worse. At least it's not PHP".

    You have my respect, but honestly: you scare me.
  • 4
    @DirtEffect Yes, yes it is.

    Also, PHP 7 and PHP 8 are nothing like PHP 4 tbf...

    @iii I use python quite a bit as well, makes me want to punch my screen a lot.

    @AleCx04 glad I'm not the only one : >
  • 2
    @FinlayDaG33k have you tried Perl then?
  • 3
    @iiii I used Perl a few years ago at work, also made me want to punch my screen a lot.

    Not nearly as much as Python does tho.
  • 8
    @FinlayDaG33k Your ratings of langs is based on how much you want to punch your screen. Cool.
  • 0
    @FinlayDaG33k you're so damn picky
  • 0
    @FinlayDaG33k should take a look at F# lmao
  • 5
    @Cyanide yes, languages that are overcomplicated (either overcomplicated in syntax or needing 1337666 extra steps for no reason) for no real reason make me want to punch my screen : >

    That's why I don't use Go, Rust, C#, Java (though, I do use Kotlin occasionally), Erlang, Haskell etc. etc.

    Mainly stuff that can get me a lot without having to invest much effort into writing overcomplicated syntaxes (like C's syntax, although, they do it for a reason) or or doing pointless actions (like in Python where I need to use "sha256("string".encode("utf-8")).hexdigest()" to make a sha256 hash (the "hexdigest" part is fine, but why do I need to manually encode it as well when literally any language I use regularly doesn't...)

    @iiii Yes, I am.

    Because why waste time on writing something in A when I can do it a *lot* quicker and better readable in B :p
  • 1
    @FinlayDaG33k I guess you'll like JavaScript...
  • 1
    @iiii Only makes me want to punch my screen occasionally.

    Mainly because I don't expect *anything* to work in JS to begin with :^)

    I'd like to have more options in the browser than just JS tho (gieb Ruby in the browser pl0x)...

    @OliverTramp PHP has come a big way since PHP 4.

    PHP5.6 was when I started doing the PHP and with the releases of PHP7 and now PHP8, it's really good.

    Only things I'd like in PHP9 though:

    - Easier string concatenation (I like the way Python does it with their f-strings and Javascript with backticks)

    - Async/Await (I know AmPHP and ReactPHP are a thing but the way they handle it is more like a hack, which overcomplicated stuff severely).

    React can go die in a fire (I *hate* mixing HTML output with my business logic like React does).
  • 3
    @DirtEffect yep, seriously, PHP is my go to language, there has been next to nothing I couldn't make that slimy, over flexible, amazingly rough around the edges language do.

    My PHP journey started at the end of .php3 ๐Ÿ‘€, I've seen the language grow from a bunch of shitty functions to a language that can hold its own.

    Granted I have seen many devs abuse the fuck out of PHP and want to punch them in the face, but that is more the problem than what you can/can't do with the language.

    You can do PHP the right way, and rarely have an issue with the language, or you can slap some shit together m and blame the language. And that's literally the only argument for and against php.

    @iiii I've done Perl, Ruby, Java, Python, and PHP somewhere or at some point in the last 16 years, there hasn't been a use case I couldn't have solved with php, hell I'll usually look at the php documentation for a problem and then rewrite it for another language.

    Mind you, @linuxxx also loves PHP, maybe I'm seeing something here ๐Ÿ˜…
    Someone once said "great minds think alike"
  • 2
    @C0D4 Well, there are some use cases that you can't really solve with PHP (using PHP to build desktop and Android apps is not really a thing, outside APIs) :p

    But that has to do more with the ecosystem than the language itself.

    I'm quite confident that if PHP starts supporting async/await, desktop and Android apps will become a thing quite soon after.
  • 0
    @FinlayDaG33k oh man in terms of web there is only one other language that really gets out of my way when implementing stuff: Go.

    I would suggest a bit more investment in it, it really is not bad and it was made simple as all living hell while maintaining a semi decent type system.

    For web I love php because I adhere to a strict code of: no frameworks, just libraries. Php examplifies this for me with composer, but golang carries this out as well man.
  • 0
    @FinlayDaG33k desktop... https://github.com/cztomczak/...

    I've seen BMW use php for in car entertainment systems, I think that's borderline insane๐Ÿ˜…

    I w seen people attempt to make an OS with php... that was slow as fuck, but hey,... someone did it.

    You can run PhP as a cli application, no reason you couldn't shove a GUI on top and utilise it.

    As for mobile, if someone rolled the dice differently many years ago, who knows, you just may have been using php for mobile.
  • 0
    @AleCx04 I tried Go for a while but I didn't like any moment of it.

    It's one of the languages where I understand people liking it but it's just not for me.

    I do use frameworks (well... just CakePHP) when using PHP for websites but that's mainly convenience (not having to bother with writing SQL queries myself when I can use an ORM for example) and because I'd use similar conventions myself anyways.
  • 1
    @C0D4 I'll give that thing a try :O
  • 1
    @C0D4 where have you seen php in BMW? I'm curious because I work in automotive and so far haven't heard of anything like that.
  • 0
    @iiii iirc, there was an issue here n there with the Dashboard navigation thingy showing PHP errors.

    I doubt it was running PHP and it was just an error on the server it was supposed to contact but who knows...
  • 0
  • 2
    @FinlayDaG33k yeah, I would guess it was the server leaking errors, rather than the head unit itself using PHP
  • 2
    I like many programming languages.

    But PHP feeds my children.
Add Comment