PHP is a fun language

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • НаукаНаука

Комментарии • 924

  • @christianmartinez2179
    @christianmartinez2179 Год назад +7352

    Mom can we have pointers?
    No, we have pointers at home
    Pointers at home:

    • @rad9587
      @rad9587 Год назад +70

      it is like dynamic pointers:D

    • @kavishchattoor1729
      @kavishchattoor1729 Год назад +17

      @@rad9587 reminds how dynamic array of pointer. Fun :D

    • @rschool5386
      @rschool5386 Год назад +7

      Best comment

    • @juanmalpartida1333
      @juanmalpartida1333 Год назад +5

      Dawg imagine doing an implementation of a hash table with dynamic arrays in this language ;-;

    • @sebastiangudino9377
      @sebastiangudino9377 Год назад +8

      @@juanmalpartida1333 You say that like If this was some old obscure language. But there are tons of people using it now days for things like WordPress and Laravel

  • @Pokemonman44441
    @Pokemonman44441 Год назад +2669

    Pointers in php be like 😂

    • @nemesisurvivorleon
      @nemesisurvivorleon Год назад +45

      "yes, I use PHP pointers
      $$$$$$$$$$$$$$$$
      how did you know?"

    • @kormannn1
      @kormannn1 Год назад +13

      💲💲💲 💲WAG POINTERS DEM MONEE 💲💲💲 😎😎😎

    • @gillarajieprasatya8798
      @gillarajieprasatya8798 Год назад +4

      Lot of dollar but not a real dollar on your pocket.

    • @Khaos98
      @Khaos98 10 месяцев назад

      ​@@gillarajieprasatya8798i bought a house with php

  • @GunZFoX
    @GunZFoX Год назад +305

    "PHP developers are well paid. We see dollar signs all the time"

    • @madbanana22
      @madbanana22 Год назад +4

      want free money?
      add more variables!

    • @ianlondon2888
      @ianlondon2888 10 месяцев назад

      Because companies are complacent. Python and Js programmers are well paid by forward looking companies

    • @Txx00xic
      @Txx00xic 4 месяца назад

      @@ianlondon2888Seriously. PHP and JS pay the bills and it doesn’t even come close

  • @bigl9527
    @bigl9527 Год назад +2540

    C programmers : wait, isn't that a pointer?

    • @vaisakhkm783
      @vaisakhkm783 Год назад +17

      ikr :)

    • @NotTheHeroStudios
      @NotTheHeroStudios Год назад +28

      I'm fairly new to getting back into C (did some Java stuff back in 2009-2012 but switched to hardware)
      And even I'm this question.
      But tbh I need to get better at C# (unity) and learn Python because that's where my potential career path lies..
      But I wanna finish making a video game first lmfao

    • @dimitar.bogdanov
      @dimitar.bogdanov Год назад

      @@NotTheHeroStudios C# has much wider usage than unity

    • @tozman51
      @tozman51 Год назад +43

      Actually it's a way to call a variable... Variable names can contain variables if you write them with curly braces like
      $bar = 'crazy';
      ${"foo".$bar} = "PHPlol";
      Echo $foocrazy; // will output PHPlol
      And even more weird but useful stuff if you don't use unfiltered user input in the name of the variable.
      Oh, and part of this stuff works to call functions too !

    • @SirusStarTV
      @SirusStarTV Год назад +9

      Pointerish aliases

  • @8koi245
    @8koi245 Год назад +1266

    That's so much fun haha imagine spending a whole week trying to fix that bug haha

    • @TsoiIzAlive
      @TsoiIzAlive Год назад +34

      Who cares as long as u get paid lol

    • @spacewargamer4181
      @spacewargamer4181 Год назад +113

      @@TsoiIzAlive The mental health

    • @TsoiIzAlive
      @TsoiIzAlive Год назад +5

      @@spacewargamer4181 I mean if your job is to fix that and you get paid to do so to sit there for 8 hours and try and figure it out and after those 8 hrs you get to go home do you really care about the task at that point

    • @spacewargamer4181
      @spacewargamer4181 Год назад +52

      @@TsoiIzAlive In this field of work? Yes you do
      You have to fix it the next day

    • @TsoiIzAlive
      @TsoiIzAlive Год назад

      @@spacewargamer4181 Ok, maybe my point didnt come across clear. What Im trying to say is that as long as you get paid fairly why care about the work you are given.
      does that make sense?

  • @5ft_11in
    @5ft_11in Год назад +294

    php is like bash having an identity crisis

  • @azaria_phd
    @azaria_phd Год назад +14

    PHP: the performance of JavaScript, the ease of C, and the design quality of PHP.

    • @lil_brumski
      @lil_brumski Месяц назад +1

      Bro really said ease of C 😂😂

  • @zjbotcn
    @zjbotcn Год назад +162

    I laughed right after he said 'php is a fun language'.

  • @calcio437
    @calcio437 Год назад +208

    fun to write, harder to maintain

    • @ward7576
      @ward7576 Год назад +53

      any sh*t code is hard to maintain, brotha

    • @ccgarciab
      @ccgarciab Год назад +28

      @@ward7576 and this is shit code, so it checks out

    • @thatchapthere
      @thatchapthere Год назад +39

      @@ward7576 I like how PHP features are just examples of shit code

    • @arturorosas2170
      @arturorosas2170 Год назад +9

      Frameworks like Laravel puts you to the right path of lord of code by giving you a concrete way to do your stuff. So is not PHP, is the way you use it and organize your code.

    • @ko-Daegu
      @ko-Daegu Год назад +1

      @@arturorosas2170 or even better both language and framework are secure by design like for example rust or even go with gin

  • @David-kc4zi
    @David-kc4zi Год назад +62

    "php is a fun language" that is the best joke i've heard all year.

  • @IS-vu3lv
    @IS-vu3lv Год назад +464

    I love how he uses double quotes and single quotes and doesn’t mention why or if there even is a reason.

    • @aschmelyun
      @aschmelyun  Год назад +394

      The real reason is this:
      I didn't even notice lmao

    • @IS-vu3lv
      @IS-vu3lv Год назад +12

      @@aschmelyun lmao

    • @aimpizza6823
      @aimpizza6823 Год назад +7

      @@aschmelyun do they matter in php?

    • @sney2002
      @sney2002 Год назад +36

      @@aimpizza6823 you can't use escape sequences like \t,
      ... nor interpolate variables within single quotes

    • @aimpizza6823
      @aimpizza6823 Год назад +5

      @@sney2002 thank you

  • @yeetyeet7070
    @yeetyeet7070 Год назад +1224

    looks like a huge security vulnerability

    • @yungifez
      @yungifez Год назад +59

      It isnt
      Its very very useful

    • @yeetyeet7070
      @yeetyeet7070 Год назад +274

      @@yungifez "it isnt"

    • @yungifez
      @yungifez Год назад +45

      @@yeetyeet7070 i tried 😂😂

    • @brazenbull36
      @brazenbull36 Год назад +198

      It's a vulnerability if you have user input in double quotes. No issue if you're using single quotes.

    • @yungifez
      @yungifez Год назад +5

      @@yeetyeet7070 i tried my best
      You won

  • @imrannooraddin1876
    @imrannooraddin1876 Год назад +76

    imagine losing track of how far up you want to reference lmao. so practical!!

  • @qbasic16
    @qbasic16 Год назад +29

    **PHPTSD intensifies**

  • @Niksorus
    @Niksorus Год назад +64

    "This is the reason why ... *screams internally*"

  • @BradenBest
    @BradenBest Год назад +5

    To all the people saying this is a pointer, it's not. In fact based on the experiments I did with it, it's more similar to javascript objects than anything else. That is, `${...}` in PHP is similar to `window[...]` in javascript.
    A *pointer* is a variable that stores a memory address. A pointer can be _dereferenced_ to extract a value from its address, and it can have _arithmetic_ done on it to derive a new offset pointer. For example, if you have a pointer named `buffer`, you can make another pointer `bufferptr`, use the second pointer to "walk" the memory pointed to by `buffer`, and then return `bufferptr - buffer` to get the length of the data stored in `buffer` via `bufferptr`. Or, you can take a pointer like `string`, add to it `token = string + 5`, and `token` will hold a substring. I see where some people would be confused, because $$variable does _look_ like a pointer dereference, but it's not. It's a key lookup.
    A *reference* is similar to a pointer, but different. A reference is a variable that mirrors a value. References can be implemented with pointers, but they are not themselves pointers, because references cannot be manually dereferenced or have arithmetic done on them. In languages that have references, technically everything is a reference. For example, in JavaScript, `let foo = 5` creates a reference named `foo` to the value 5. Modifying foo is actually creating a new Number object with the new value and setting foo to be a reference to the new object. The old object, without any living references to it, is eventually garbage-collected. if you then do `let bar = foo`, even though bar is also a reference to 5, foo and bar are not referencing the same object. Since `5` is an instance of a primitive type, it's copied every time it's stored. So modifying foo will not also modify bar. Numbers, strings and booleans are primitive values. Then you have objects and arrays, which are created in memory and then a reference is stored. If you do `a = [1,2,3]; b = a`, then a and b are actually both references to the same array. Modifying one modifies the other. This can get confusing, because JavaScript also has == and === for comparing. === was added later on because of Javascript's fucked up type system. == does a value compare, but will coerce types to make the comparison, which leads to silly results like `[] == false` being true. === is different in that it first checks the types of its operands and will automatically yield false if the types are too different to be compared without duck typing. But then you can also have surprising results, like `a = 5; b = 5; a === b` is true, while `a = []; b = []; a == b` is false, while `a = []; b = a; a === b` is true. That's because for objects that are passed by-reference, such as arrays, the identity is compared rather than the value. You can have two arrays that are completely identical in their contents, but if they are not references to the same array, then they will have different identities and therefore compare unequal. Strings are primitive, so they *are* compared by-value, but the fact that arrays cannot be compared with == or === can seriously trip programmers up. Though JavaScript is just a notoriously difficult language to debug to begin with. Why do you think there's such a huge push to move to TypeScript and WASM?
    You might hear of terms such as pass-by-value and pass-by-reference. C is 100% pass-by-value, which is why pointers are so necessary. JavaScript, on the other hand, is pass-by-sharing. Which is essentially what I described above wherein you have primitive types that are passed by-value (copied) and non-primitive values that are passed by-reference (mirrored). Pass-by-sharing is pretty common in managed languages. Though most languages tend to give you more explicit control over references, so in C# for example, you _can_ make a reference to an int. You can even use pointers in C#, though they're disabled by default and are locked behind the `unsafe` keyword (meaning you have to declare within an unsafe{...} scope and turn on a specific compiler switch if you want to use pointers at all). Every language is different and it's good to look into those things and test the basic mechanics to make sure they work as you think they do. It's worth having that deeper understanding.

  • @tochka832
    @tochka832 Год назад +6

    for commenters: no, its not a pointer mechanism, but lexical scope lookup, that is common for dynamic langs. in python you would do this by locals()[bar], for example

  • @LinthusOriginal
    @LinthusOriginal Год назад +27

    That sweet video loop completion

  • @envueltoenplastico
    @envueltoenplastico Год назад +13

    Been a few years since I was a PHP dev, but I seem to recall that these so-called "variable variables" were universally loathed by the community and their usage considered to be pretty much unforgivable, for pretty obvious reasons.

    • @TomaszTrelaPlus
      @TomaszTrelaPlus Год назад

      Still, it is a very useful feature of the language for some tasks.

  • @masoomsanadi
    @masoomsanadi Год назад +25

    Years, working in PHP
    and
    saw this now 😊

  • @zed4314
    @zed4314 Год назад +81

    Me internally: *AGHHHHHGHGGGGGGHHH*

  • @Anuiran
    @Anuiran Год назад +3

    This also possible in Python and other languages. Although Python you have to explicitly say globals()[variable].
    Dynamic variables. It’s a type of reflection, also note - it’s not really used in PHP by developers. Just like it’s not really used in most other languages.
    But yes, this is a thing in many languages. Even can be emulated in JavaScript.

    • @xIcarus227
      @xIcarus227 Год назад

      Very true. This is possible in most languages but it's not really that useful for most use cases.

  • @pixelfox119
    @pixelfox119 Год назад +27

    I don't know my dude it kinda reminds me of a board with a nail sticking out on a walk path. Overwhelming feeling to get rid of it knowing that's gonna hurt if I step on it.

  • @johnavernia1026
    @johnavernia1026 Год назад

    I could even sense the boredom and slight depressive tone when he said, "PHP is a fun language".

  • @es68951
    @es68951 Год назад +3

    You’ve successfully reminded me that there’s a language in my past which I hate more than Groovy. That Painful Horrible Preprocessor

    • @xIcarus227
      @xIcarus227 Год назад

      Sounds like you should let go of your hate for the language and understand that the hate is actually towards shitty code.

  • @Waghabond
    @Waghabond Год назад +24

    This is not one of the reasons php is fun, its one for the reasons people are able to write horrendous php code

    • @xIcarus227
      @xIcarus227 Год назад +1

      Genuinely almost all programming languages have a way of doing this.
      So what you're saying is that all programming languages suck, because the programmer can write garbage code.

    • @svenyboyyt2304
      @svenyboyyt2304 Год назад +1

      ​@@xIcarus227 In PHP it's $$ instead of $. In every other programming language, "there's a way of doing it". Do you see the difference here?

    • @arie1906
      @arie1906 7 месяцев назад

      @@svenyboyyt2304 wdym by saying $$?

  • @pinch-of-salt
    @pinch-of-salt Год назад +4

    Ah! The sheer chaos of implicit/automatic variable templating.
    Some men just want to see the world burn.

  • @danser_theplayer01
    @danser_theplayer01 Год назад +5

    Old php websites burn my soul through the eyes as soon as I see the code.

  • @maerklin29800
    @maerklin29800 Год назад +11

    Declare variable with $ is also used in Powershell I think 😂

  • @aumbhatt5339
    @aumbhatt5339 Год назад +3

    A CPP programmer: I need bleach for my 👀

  • @BondiBeachLover
    @BondiBeachLover Год назад +1

    PHP is really nice programming language, it’s really easy to adapt also easy to search knowledgebase. BUT easy is weakness for PHP. When beginner make code, debug will be nigthmare.

  • @dylanparrish-subda7141
    @dylanparrish-subda7141 Год назад +2

    This is chaotic. Hahaha

  • @king_james_official
    @king_james_official Год назад +20

    php pointer 💀💀
    glad i never had to learn that language

    • @soniablanche5672
      @soniablanche5672 Год назад +3

      in php you can actually pass an object by reference like in c++ by using "&" in the function parameter

    • @xIcarus227
      @xIcarus227 Год назад +2

      That's not a pointer.
      You think it's a pointer exactly because you never learned the language.

    • @king_james_official
      @king_james_official Год назад +1

      @@xIcarus227 sure, it works like a pointer, what is it then?

    • @xIcarus227
      @xIcarus227 Год назад +2

      @@king_james_official it's called a variable variable, some other languages have ways of doing this as well.
      I can see the overlap with a pointer, but since you're not storing a memory address it isn't one, and you don't get all the functionality of a pointer as a result.
      Personally I can't even think of a use case where you'd want to use this.

  • @autohmae
    @autohmae Год назад +3

    0:30 I agree in general PHP is a simple easy language, thus fun. But your example is the kind of code how you get injection. It needs to have lots of checks around it.

  • @imcalculus
    @imcalculus 9 месяцев назад

    The moment the second dollar came in, ptsd from void pointers and pointers kicked in.

  • @mihaelkYeah
    @mihaelkYeah Год назад +1

    I love PHP. I literally don't understand why people "bash" on it so much.

    • @arie1906
      @arie1906 7 месяцев назад

      old grummer words passing to new generation from 2000, it has been an inside joke but people tend to be innocent with their lack of infomations...
      PHP sucks, and It still be taken a place inside me.

  • @gragogflying-anvil3605
    @gragogflying-anvil3605 Год назад +3

    It really gets fun when you use variable variable names to create variables. Have an empty string, use that as a variable name and you've got an "unnamed" variable.
    Thankfully no one does that. I've never seen variable names in practice anyway.

    • @ES-cf4ph
      @ES-cf4ph Год назад

      Well I have seen it in typos lmao

  • @bhavyakukkar
    @bhavyakukkar Год назад +18

    "I have no personality so I'll just assume one by claiming PHP sucks having never actually used it"

    • @CottonInDerTube
      @CottonInDerTube Год назад +3

      Exactly.

    • @lukeet331
      @lukeet331 Год назад +5

      I've used it and it does indeed suck

    • @CottonInDerTube
      @CottonInDerTube Год назад +1

      ​@@lukeet331 ... he said without any argument at all.

    • @georgplaz
      @georgplaz Год назад +4

      ​@@CottonInDerTube since this is not a debate, I don't find it weird they didn't bring up an argument..
      If you want one, you can just ask

    • @CottonInDerTube
      @CottonInDerTube Год назад

      @@georgplaz YOu know ppl in RL who you always have to ask?
      Annoying AF.
      Same like "you know what happen ..."
      or "whats the matter?" "nothing" -.-
      Just say it ffs :D
      ---
      Saying something without really telling something is useless.
      =)

  • @benchy5769
    @benchy5769 Год назад +2

    Been a PHP dev for 2 years now, never realized this was possible

    • @rumble1925
      @rumble1925 Год назад

      I hope you don't mean to use this "feature".

    • @m.moonsie
      @m.moonsie 3 месяца назад

      @@rumble1925 I will use it now.

  • @assermoemen9905
    @assermoemen9905 Год назад +2

    Tell me you wanted pointers but didnt wanna copy C without telling me you wanted pointers but didnt wanna copy C

  • @ritomukherjee8389
    @ritomukherjee8389 Год назад +6

    Referencing in PHP is always different being the kernel written in C++
    Same goes for V8 though 😅

    • @xIcarus227
      @xIcarus227 Год назад

      This isn't referencing though, this is just calling a variable based on a variable's value.
      PHP has a reference operator not very dissimilar to C's.

  • @elliesagestar
    @elliesagestar Год назад +6

    As a Java dev: I hate this with a burning passion 💀
    that just screams vulnerability

    • @ES-cf4ph
      @ES-cf4ph Год назад +1

      To be fair things like JNDI (Log4Shell ahem) also scream vulnerability.

  • @Dave-tv6oj
    @Dave-tv6oj Год назад +1

    The cut makes it even funnier

  • @thanatosor
    @thanatosor Год назад +1

    Same functionality but PHP really make people want to use it more than C pointer

  • @akotechonline
    @akotechonline Год назад +13

    Very fun indeed... PHP Pointer

  • @manhnguyenhuu9351
    @manhnguyenhuu9351 Год назад +4

    This reminds me of the gud old days learning C when starting my uni :/

  • @itsme_indira
    @itsme_indira Год назад

    "so we have a pointer to another pointer to another pointer to yet again another pointer."

  • @nonominox
    @nonominox Год назад

    This video's intro and extro are the same, in a way you never thought could be possible!

  • @lowellthoerner1209
    @lowellthoerner1209 Год назад +3

    This won't cause any major and incredibly prevalent database vulnerabilities, right?
    ... right?

  • @JJ-cy2fi
    @JJ-cy2fi Год назад +3

    *To infinity and beyond*
    - Buzz

  • @mgames1710
    @mgames1710 Год назад +1

    Just came here to compliment the visually aesthetic and proportionally scaled window on the video.

  • @cameronball3998
    @cameronball3998 Год назад +1

    brain aneurysm. that’s the only feeling from this.

  • @Alec9821
    @Alec9821 Год назад +14

    In all my years of php I did not know you could do that wth

    • @aschmelyun
      @aschmelyun  Год назад +9

      10+ years here and I learned it last month, I'm with you on that

    • @abso1utezer010
      @abso1utezer010 Год назад +1

      probably shouldn’t though seems like a bad way to code and could get confusing very very quickly

    • @y4sermusic
      @y4sermusic Год назад

      @@abso1utezer010 not really..

  • @siomek101
    @siomek101 Год назад +7

    Me: oops i added two $ by an accident
    This one hacker:

  • @kavishchattoor1729
    @kavishchattoor1729 Год назад +1

    Lmao I had a pointer flashback with this

  • @iCrestfalleN
    @iCrestfalleN Год назад +2

    pointer goes brr

  • @borstenpinsel
    @borstenpinsel Год назад +13

    I didn't know you can do this more than once but the ability to reference anything in php is what I'm missing in a lot of languages. Php can parse itself, it's marvellous. You can have a piece of code that says "if I am inside a method then print the first 3 lines off my class code, whatever they are"...marvellous

  • @IAMHACKER
    @IAMHACKER Год назад

    When you have a bug and call it a feature

  • @s4if
    @s4if Год назад

    I'm guilty using that kind of funny thingy for production code... lol...

  • @thokozanikubheka
    @thokozanikubheka Год назад +4

    Almost a perfect loop

    • @aschmelyun
      @aschmelyun  Год назад +1

      I'm trying to be like the cool kids these days

    • @krasavchiklite
      @krasavchiklite Год назад

      @@aschmelyun hi mate, how did you get that instant result? are you using some kind of a live server ? cheers!

  • @aboshxm2416
    @aboshxm2416 Год назад +10

    This is just one of the reasons you should never use PHP 👍

    • @magrigrigri
      @magrigrigri Год назад

      Any argument ?

    • @aboshxm2416
      @aboshxm2416 Год назад +1

      @@magrigrigri just imagine that you type two "$" by mistake that would be so hard to debug

    • @magrigrigri
      @magrigrigri Год назад +9

      @@aboshxm2416 5 years of PHP, never typed $ by mistake while accessing an object property. Btw any decent IDE will highlight dynamic property access with a specific color.

    • @xIcarus227
      @xIcarus227 Год назад +4

      @@aboshxm2416 like I've been working with PHP for 8 years and I've never accidentally double $$-ed. Any IDE also highlights this occurrence differently than normal variables.
      This is such a dumb argument that I'm doubting that you're even a programmer.

    • @miloradowicz
      @miloradowicz Год назад

      ​@@xIcarus227 your input is invalid because PHP programmers are not real programmers 😋

  • @ANOLBEE
    @ANOLBEE 10 месяцев назад

    "Debuggers nightmare 101" or pointer-ception 😂 But it’s fun to play around with.

  • @ericmackrodt9441
    @ericmackrodt9441 Год назад

    I decided to use PHP for a few personal projects because it's easy to find hosting.
    I had forgotten how delightful the language actually is.

    • @Meister256
      @Meister256 Год назад +1

      You will most likely never run into such a problem if you stick to good structured programming and good practices. This is just anecdotal, I have never found it to be a problem.

    • @ericmackrodt9441
      @ericmackrodt9441 Год назад +3

      @@Meister256 Yeah, I find that most of the problems with PHP are the bad code people write.

  • @shayanm9391
    @shayanm9391 Год назад +4

    Make more videos❤️

  • @llBestBoyll
    @llBestBoyll Год назад +5

    Love this language 😃❤️

  • @maelstrom57
    @maelstrom57 10 месяцев назад +1

    I instantly know if someone is a trash dev when they use this feature.

  • @MaxiveLegend
    @MaxiveLegend Год назад +1

    PHP is a syntactical nightmare

  • @User-pi3nf
    @User-pi3nf Год назад +3

    PHP has a special place in my Heart 😌

    • @ScorpioHR
      @ScorpioHR Год назад +8

      And in hell, too

    • @User-pi3nf
      @User-pi3nf Год назад +1

      @@ScorpioHR The Good thing about PHP is that you can refer to JavaScript code

    • @xIcarus227
      @xIcarus227 Год назад +2

      @@ScorpioHR like PHP is a more than decent language nowadays, it's time to stop being ignorants judging languages by what they were 2 decades ago.

    • @svenyboyyt2304
      @svenyboyyt2304 Год назад +1

      ​@@User-pi3nf Ok so the devs do have a little bit of sympathy

    • @svenyboyyt2304
      @svenyboyyt2304 Год назад +1

      ​@@xIcarus227 I'm using it right now and it's terrible. In fact, I didn't know people thought it was terrible until I found out myself.

  • @AJD...
    @AJD... Год назад +5

    This is actually a really bad thing and has been a known issue in PHP for a very long time.

    • @ferial4091
      @ferial4091 Год назад

      Why is it a problem?

    • @AJD...
      @AJD... Год назад +3

      @@ferial4091 Cross site scripting. SQL injections. Terrible memory management.

    • @aschmelyun
      @aschmelyun  Год назад

      Listen to this, try to avoid this in production code lol

    • @xIcarus227
      @xIcarus227 Год назад

      @@AJD... what the fuck are you even talking about? Man I swear, some of you people are just throwing words around without having a clue about what they mean.
      How does calling a variable from a string value cause any of the vulnerabilities you just mentioned?

    • @reach5593
      @reach5593 8 месяцев назад

      ⁠​⁠​⁠​⁠@@AJD... Injection, CSRF, XSS etc vulnerabilities come from your code, not language-related problems.

  • @parkourbee2
    @parkourbee2 Год назад +2

    Interesting. PHP is still as fun as hangnails.

  • @amanpatell
    @amanpatell 11 месяцев назад

    Best transition loop ever.

  • @VelvetSage
    @VelvetSage Год назад +4

    lmao even worse than js

    • @aschmelyun
      @aschmelyun  Год назад

      That's a pretty hard thing to do!

    • @mhdfr
      @mhdfr Год назад

      Event wores then breinfuuk

  • @soniablanche5672
    @soniablanche5672 Год назад +1

    even class names and object attributes are dynamic in php
    $someObject = new $someClass();
    echo $someObject->$someAttribute;

  • @DNZY_Official
    @DNZY_Official Год назад

    this is equal to adding a million divs. "Get the feeling of pain- i mean HTML in PHP"

  • @tens0r884
    @tens0r884 Год назад +1

    yea that totally wont be completely confusing in devevelopment

  • @alek2341
    @alek2341 Год назад +1

    Double quotes are interpolated, while singles are not. There was no reason to mix them in this video. Also, double $ is forbidden in the professional world. I agree, though. PHP is a fun language. Every language is a fun language if you're learning and growing. Best.

    • @xIcarus227
      @xIcarus227 Год назад

      I wouldn't say it's forbidden, you just _really_ have to know what you're doing.
      As it stands I'm struggling to find a use case for it, ngl. I do use things like _new $someClassName_ but variable variables are just something I can't find a use for.

  • @LazerEyeX_X
    @LazerEyeX_X Год назад +1

    I was fighting for my life in a php login form

  • @zimcoder
    @zimcoder Год назад

    Talk about baking in hidden bugs in this fun language

  • @abc321meins
    @abc321meins Год назад +1

    Introducing security vulnerability 101

  • @radnorio3180
    @radnorio3180 Год назад

    You have somehow found a way to make me appreciate the way pointers work in cpp.

  • @DexieTheSheep
    @DexieTheSheep Год назад

    "this can continue on to infinity"
    bro the variable's name is buzz, you missed your chance to make a "To infinity and beyond!" joke there lol

  • @abdullahalafandi
    @abdullahalafandi Год назад +2

    And the fun ends when you start learning Session methods 😅🤣

  • @ilyasayusuf5447
    @ilyasayusuf5447 Год назад +2

    If i want to do this kind of thing, i'll choose C instead.

  • @lelek192837465
    @lelek192837465 Год назад +1

    We have different deffinitons of fun

  • @lukavucicevic5607
    @lukavucicevic5607 Год назад

    This reminds me of pointers, I do not want to be reminded of pointers.

  • @joydeepbhowmik6181
    @joydeepbhowmik6181 Год назад

    Almost every language is someway is a fun language

  • @iameenr
    @iameenr Год назад

    "Alien discovers pointers for the first time"

  • @TasCashGr
    @TasCashGr 6 дней назад

    You: why do we call them pointers?
    PHP: cause you place your pointer finger on the screen if you want to count them $

  • @samislam2746
    @samislam2746 Год назад

    I like the "Why" at the end of the video.
    smart.

  • @peelfreshvita3199
    @peelfreshvita3199 Год назад

    this seems like nightmare.
    multiple layered dollar sign, and then trying to find which one is which

  • @I___Am
    @I___Am Год назад

    Is this a tutorial on how to always get a side project/job? Good idea. Lol

  • @edubrusch
    @edubrusch Год назад

    its not a sad bug, it's a fun feature.

  • @sie85
    @sie85 Год назад

    making over 100k rev per year using php is indeed fun, highly recommend

  • @PikminGuts92
    @PikminGuts92 Год назад

    So you're telling me Buzz can go to infinity and beyond?

  • @verified_tinker1818
    @verified_tinker1818 Год назад +1

    Renaming variables must be fun in PHP.

  • @rodriguesbruno97
    @rodriguesbruno97 Год назад +1

    When I first heard your voice I thought @NotJustBikes had changed careers

    • @nxone9903
      @nxone9903 Год назад

      he sounds like leafy to me idk

  • @sportscaryungred
    @sportscaryungred Месяц назад

    To be fair, I have never seen anyone use variable variables (this feature) in PHP.

  • @G-Five
    @G-Five Год назад

    btw in python you can do eval(bar)

  • @denislorenzo5943
    @denislorenzo5943 Год назад +1

    Have been using php for 2 years. First time I have seen this lol. Still won't use it but it's cool it's out there, just doing its thing with security lol

  • @Sergadra
    @Sergadra Год назад +1

    It seems like now that there is v8.0, v8.1 and soon 8.2 and it implements some stuff out of othe languages it becomes popular again. Love that language to bits. Was my first i learned at 14 years