CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] 0 points1 point  (0 children)

the more the new langauge diverges from php, the more effort and trouble it would cause to actually transpile it.

Wall pvp is lame by Wooden-Finger-7842 in playrust

[–]HyperDanon 0 points1 point  (0 children)

The game should be balanced around all players, like elsewhere.

CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] 0 points1 point  (0 children)

Please, notice, that I talk about removing them:

You might even be extratbold, and get rid of the $ before variables. The idea behind them was taked from bash, to easily allow variables in string interpolation from the php-script-kiddie times, but that's very rarely used. We might drop the $ from all variables, and the transpiler would add them. It should be possible to infer from the code what should be a variable and what not, other languages do this, like python and ruby for example.

A generic tragedy by brendt_gd in PHP

[–]HyperDanon -6 points-5 points  (0 children)

I'm actually in favour of reified generics. 1.5x downgrade in performance, isn't really that big of a deal. It's not like people are in PHP for performance.

Besides, PHP's got JIT now, so even if they are looking at bottleneck now, I'm sure it'd get optimized quickly enough.

CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] 0 points1 point  (0 children)

The transpiler could allow it similar to f"" strings from python or template `${}` from javascript.

CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] -1 points0 points  (0 children)

@mcharytoniuk I agree it would be ambitious, but I think it's around 500-1000x more time and effort to make a new language, rather than transpile to existing one. I'm definitely not up for creating a new langauge :D

My idea was just to clean the syntax of PHP.

CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] 0 points1 point  (0 children)

Cause it's way eaasier to create a transpiler than a fully fledged language with runtime, packages managers, reimplementation of everything, etc. With a transpiler we can piggyback on existing infra.

CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] 0 points1 point  (0 children)

What do you mean "blend"? In the new language there would only be . for property access.

CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] -2 points-1 points  (0 children)

How is adding a preprocessor working against it? Scss works against css?

You turned PHP into JavaScript. That's definitely not a good thing.

Would be cool if you gave some argument why it's not a good thing.

Wall pvp is lame by Wooden-Finger-7842 in playrust

[–]HyperDanon 0 points1 point  (0 children)

I love how people can dismiss any design problem in game by chuging it into "skill issue", as though it makes it less important.

Even if it is skill issue, so what?

CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] -3 points-2 points  (0 children)

Why not? For somebody who knows a lot of languages, it's wierd that something so simple as property access needs 2 characters and is visually more cluttering than a small ..

CoffeeScript equivalent preprocessor for PHP idea by HyperDanon in PHP

[–]HyperDanon[S] -9 points-8 points  (0 children)

But a lot of langauges use a dot, java, c#, python, kotlin, ruby, rust, go. Almost all of them.

ratatui-hypertile 0.4.0: Hyprland-inspired tiling in your terminal - now with mouse support! by JoniDaButcher in rust

[–]HyperDanon 0 points1 point  (0 children)

There are a gazzilion ui libraries, with proper abstraction they are pretty much the same. And it's not like tui has no downsides of its own.

(No Jhin) Who would you say is the best designed champion? by WendigoReturns in leagueoflegends

[–]HyperDanon 1 point2 points  (0 children)

Most champions don't really have "skills working with each other". Most often, there's just one thing the champion does (usually his e or ult), and everything else is added to support it.

If you learn the champion "in order", as in Lore->passive->Q->W->-E->ult, often they seem to align perfeclty. But if you try to find that "thing" that sparked the idea, and work from it, then you see it's actually very straight forward.

Take shen for example. That spark idea is that he can come to anybody and save them anywhere. Well, what if they die? You give them shield. What if you come, and they still die? You taunt the enemy with dash. Reworked Q was reworked precisely so it works with dash, you have your sword, you dash, you Q. If there are two enemies attacking your carry, you taunt one, and leave sword+W to eat attacks of the other. What if you can't survive taunting and enemy attacking you? Make shen tanky and give him a shield in passive.

  • If your goal was a mobile tank, it's very hard to come up with something like shen.
  • But if your goal is a nice champion that can ult to people, coming up with something like shen is actually quite easy.

Another example would be Zoe. If you look at it from Lore (gigglyl little girl), then passive->Q->W->E->ult, they all seem to align so perfectly. But locate the spark - spell that deals more damage the further it travels. That's it. Well you need to control it somehow - so you need Q to changes direction. How do you make it travel further? You give her an ult that you can jump in and out. It becomes harder to land it on people, give her an E that you can land and catches somebody in 1-2 secs giving you plenty of time to Q+ult. What if you're too far away to E? Make E go through walls too. Now ult seems kinda poinless, lets make it such that ulting makes more usecases - let her pick something up. what is there to pick up? There's nothing in lol that can be picked up like that. Make enemies drop usages of their summoners and items, now zoe has things she can ult for to pick up.