(Almost) Anything you can imagine : Can be coded!

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Shortninja

♥ Java Enthusiast ♥
Supreme
Feedback score
2
Posts
1,143
Reactions
734
Resources
0
Efficiently written, or efficiently executed? I think we are talking about two different things, but any decent developer would always sacrifice time for efficient code.
I agree with this 100 times over
 

Doolittle2008

Feedback score
0
Posts
18
Reactions
2
Resources
0
Efficiently written, or efficiently executed? I think we are talking about two different things, but any decent developer would always sacrifice time for efficient code.


How is that code inefficienct? Your not making sense. That code works perfectly and flawlessly. In far less time and effort.

Again, we're not coding Hypixel's new minigame here. That's not what I was advertising.
 

rchy

Premium
Feedback score
1
Posts
716
Reactions
258
Resources
0
I'm not dropping anything. I didn't start this, and I'm not going to end it either.
I'm pretty sure he's talking about the fact skript has to process your "code" as your lines don't just automatically work.
 

Doolittle2008

Feedback score
0
Posts
18
Reactions
2
Resources
0
I'm pretty sure he's talking about the fact skript has to process your "code" as your lines don't just automatically work.

What are you talking about? Skript has to process your code just like any other programming language. (Don't flip, I know Skript isn't a programming language.)
 

rchy

Premium
Feedback score
1
Posts
716
Reactions
258
Resources
0
What are you talking about? Skript has to process your code just like any other programming language. (Don't flip, I know Skript isn't a programming language.)
But skript has to read your code and then get it to work.
 

Shortninja

♥ Java Enthusiast ♥
Supreme
Feedback score
2
Posts
1,143
Reactions
734
Resources
0
How is that code inefficienct? Your not making sense. That code works perfectly and flawlessly. In far less time and effort.

Again, we're not coding Hypixel's new minigame here. That's not what I was advertising.
He's saying that you are WRITING the code quickly, but is it actually efficient? The code is being executed by a separate plugin. Just because it works, it doesn't mean that it is efficient. You keep focusing on the fact that it can be written easily, but not paying attention to the fact that programming is about writing code that executes efficiently.

Not that Skript is programming at all LOOL.
 

rchy

Premium
Feedback score
1
Posts
716
Reactions
258
Resources
0
Java has to read your code too. So does any language.
But Java has to "read" skript, therefore it does it twice. Less efficient. Once/if you learn Java, or any other language you'll see how fun it can actually be even if it's hard.[DOUBLEPOST=1438645374,1438645308][/DOUBLEPOST]And what I'm saying by "reading" is completely wrong but I'm typing on an iPad so I can't be assed to type much.
 

gosmartvps

Premium
Feedback score
0
Posts
25
Reactions
24
Resources
0
I've never touched Skript in my life, and I never will.

Skript, by design, cannot be more efficient than Java at all. In no way shape or form is there any use-case where Skript would perform better for a task than a Bukkit plugin written in Java. I've never touched Skript with a 10 foot pole, but most likely Skript gets interpreted at runtime by the actual Skript plugin. Because of this, it's de-facto slower than a plugin written in Java.

Furthermore, the example of the "amazing and powerful syntax" of Skript you provided is awful. For example, let's take a look at this line

"if {coal.%player%} is greater than or equal to 100:"

The way this is phrased, it implies that player is a property of coal. It would make more logical sense to be in the order "%player%.coal", because "coal" would be a value stored within a player, not the other way around.

May god have mercy on your soul.[DOUBLEPOST=1438670672,1438670546][/DOUBLEPOST]
Java has to read your code too. So does any language.
There's a difference though. Java gets compiled down to byte code, and that gets interpreted by the JRE. However, the Bukkit plugin script would have to interpret Skript "code", so in essence you're adding an extra, useless step. Java is already "interpreted" (depending on how you look at what the JVM does).
 

Synic

Programmer
Premium
Feedback score
0
Posts
490
Reactions
250
Resources
0
Jack It might be a good idea to prune this thread.

On-topic:
- I've never used Skript before but I mean if you're only gonna use it for small light-weight plugins, then isn't the reduced efficiency negligible?
 
Status
This thread has been locked.
Top