PHP is Wack. (Coding in a Random Language Every Day)

preview_player
Показать описание
Advent of Code 2023 is UPON US! What better way to spend the holiday season, learn to program, and test your skills against your friends. This year, I've decided to try something kind of insane. I'll be choosing a language off the wheel every day.... let's see what happens.

🔥🔥🔥 SOCIALS 🔥🔥🔥
Рекомендации по теме
Комментарии
Автор

the bro just set up a whole web server instead of just using the interpreter 💀

drban
Автор

You know you can run PHP in a CLI and you don't need to run it as a webserver, right?

peppybocan
Автор

"Ah fuck, this is a regex challenge."
"Nah, fuck it, I'm doing explode."
"Actually, fuck it, I'm going back to regex."
"Nevermind, fuck, back to explode."

CarlinaPhnix
Автор

"Regex is powerful"
"I don't wanna do it"

musdevfrog
Автор

The code was very bad even for PHP standards. 🤐

redorange
Автор

As someone who does the AoC in Haskell I can tell you that doing it in Haskell has no ill side effects.

Finkelfunk
Автор

Please setup a timer so we would see the total time that it has taken for u to code that :D

artikxfilm
Автор

Bruh you don't need Nginx to run PHP. Do you need Express to run JS?

spicynoodle
Автор

Nothing wrong with PHP. Fed up of people saying it is rubbish.

dave
Автор

It's funny seeing different variable naming conventions. For your MinRed, MinGreen and MinBlue, you're obviously looking at it from the final perspective (i.e. the minimum amount of each required). I would have named them MaxRed, MaxGreen & MaxBlue on the basis that the variable is storing the max value observed.

Not saying either approach is worse / wrong, i just find it interesting.

marklonergan
Автор

As a PHP dev, watching you use parentheses in echoes, double quotes instead of single quotes, str comparsion with that, not tripple equals, true in uppercase, or even comparing something to true to return true and evaluate it wou...
And there are constants in PHP too

MDMAviation
Автор

Always fun to see how people that don't know PHP write PHP 😂 Great video!

phpannotated
Автор

Why did he do it as a server and not just do it from the command line like you would with python 😭😭😭

thisisnotok
Автор

Is it Lua considered in the language wheel? I think is a ligth and powerful scripting language suitable for this kind of challenges :)

Автор

Thanks for inspiring me to use this Advent of Code to get more familiar with Rust. I've been playing around with it for a few weeks but was looking for a project to really get to know it and this seemed like the perfect fit!

TheMasonX
Автор

I'm doing a similar challenge and today's language was Lua. As far as Stack Overflow, Google and GPT told me, the only way to split strings is using "patterns", which are basically simplified regex ='(

At least Lua's patterns are way better than pure regex, so I wasn't forced to give up on the second day.

kauemiziara
Автор

Not sure why you created a whole web server? Maybe that's a common misconception about PHP.

john_hawley
Автор

you should indicate in your title that this is episode 2 of the series

NOT_A_ROBOT
Автор

Perfect timing, I finished the challenge myself and now get to see how someone else solved it

tobiasaddicks
Автор

PHP is the C of scripting languages. Imperfect and ugly in many ways, but somehow still the best solution for the problems it's trying to solve.
Your PHP setup was kinda overcomplicated, you could've just ran your php file from the CLI without needing a web server.

pokefreak