Thread: RuneScript

Page 19 of 24 FirstFirst ... 91718192021 ... LastLast
Results 181 to 190 of 231
  1. #181  
    48 0x69

    Pax M's Avatar
    Join Date
    Oct 2013
    Posts
    2,008
    Thanks given
    36
    Thanks received
    488
    Rep Power
    2270
    Quote Originally Posted by ISAI View Post
    How the fuck do you get away with asking Jagex that sort of shit? Like you full on asked them a question with an RSPS source open in Eclipse.
    stalking me ?

    gotta take risks sometimes
    Reply With Quote  
     

  2. Thankful users:


  3. #182  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    Quote Originally Posted by ISAI View Post
    How the fuck do you get away with asking Jagex that sort of shit? Like you full on asked them a question with an RSPS source open in Eclipse.
    ask a bunch of times. the more times you ask the more chances you have to win
    .
    Reply With Quote  
     

  4. Thankful user:


  5. #183  
    48 0x69

    Pax M's Avatar
    Join Date
    Oct 2013
    Posts
    2,008
    Thanks given
    36
    Thanks received
    488
    Rep Power
    2270
    Quote Originally Posted by funkE View Post
    ask a bunch of times. the more times you ask the more chances you have to win
    never asked "bunch of times".

    Here's the IDE (https://twitter.com/JagexAsh/status/856549607135948800):

    Attached image
    Reply With Quote  
     

  6. Thankful users:


  7. #184  
    kierandevvs
    Guest
    Quote Originally Posted by Hart View Post
    Those languages are that old? I guess this just shows my lack of knowledge on the subject.

    If Ruby is so good, why didn't they use it?
    Ruby's not good, its aids and cancer mixed into one catastrophic mess.

    Quote Originally Posted by Scu11 View Post
    lmfao magic numbers for behaviour
    Nothing bad about that. Enumerations didn't get put into SE until version 5.
    ID's can be still common practice for definitions today. C# literally binds an int to a key, there's no concept of an object.
    Reply With Quote  
     

  8. #185  
    RuneScript



    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    16,307
    Thanks given
    7,215
    Thanks received
    12,308
    Rep Power
    5000
    Quote Originally Posted by kierandevvs View Post
    Ruby's not good, its aids and cancer mixed into one catastrophic mess.
    ...lol...


    Quote Originally Posted by kierandevvs View Post
    Nothing bad about that. Enumerations didn't get put into SE until version 5.
    named constants existed... and yes there is everything bad about that, i don't see how you can argue otherwise


    ID's can be still common practice for definitions today.
    "ids" aren't magic numbers

    Attached image
    Reply With Quote  
     

  9. Thankful user:


  10. #186  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Quote Originally Posted by Pax M View Post
    never asked "bunch of times".
    Fucking made my day, you're legendary.

    Reply With Quote  
     

  11. Thankful users:


  12. #187  
    Registered Member
    Melvin's Avatar
    Join Date
    Aug 2011
    Posts
    1,150
    Thanks given
    546
    Thanks received
    418
    Rep Power
    1561
    Quote Originally Posted by Genesis View Post
    Fucking made my day, you're legendary.

    Epic lol. Show the rest? I don't have a twitter account :L


    A creative man is motivated by the desire to achieve, not by the desire to beat others.”


    ― Ayn Rand
    Reply With Quote  
     

  13. #188  
    kierandevvs
    Guest
    Quote Originally Posted by Scu11 View Post
    ...lol...




    named constants existed... and yes there is everything bad about that, i don't see how you can argue otherwise




    "ids" aren't magic numbers
    "Unique values with unexplained meaning or multiple occurrences which could (preferably) be replaced with named constants"
    https://en.wikipedia.org/wiki/Magic_..._(programming)

    Yes they are.

    Named constants pretty much enum's without proper encapsulation. I do agree that named constants are a better choice but I still disagree that hard coded values are a bad option here considering it wasnt too long ago from that date that people were still using assembly for full application development.
    Reply With Quote  
     

  14. #189  
    RuneScript



    Scu11's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    16,307
    Thanks given
    7,215
    Thanks received
    12,308
    Rep Power
    5000
    Quote Originally Posted by kierandevvs View Post
    "Unique values with unexplained meaning or multiple occurrences which could (preferably) be replaced with named constants"
    https://en.wikipedia.org/wiki/Magic_..._(programming)

    Yes they are.
    no, they're not. you wouldn't refer to the ID of a database row as a magic number... it's an identifier.

    the nature of magic numbers is that you don't know what they represent without digging into the code to see what their behaviour effects. identifers aren't magic, they're inherently tied to a data structure, and thus there is no "magic" aspect with regards to their behaviour/responsibility...


    Named constants pretty much enum's without proper encapsulation.
    i know...


    I do agree that named constants are a better choice but I still disagree that hard coded values are a bad option
    this makes no sense, you agree that they were better and they've been around far before RS was a thing, but yet you think they're not a bad option?


    considering it wasnt too long ago from that date that people were still using assembly for full application development.
    that's not a valid argument at all. there's always going to be crazy stuff being done, that doesn't justify ignoring the fact that these design patterns have been around far longer than RS.

    rollercoaster tycoon was written in x86 assembly in 1999, but books that discuss design patterns like the gang of four's book with the same name were published 5 years earlier. both of these came before runescript was a thing.

    Attached image
    Reply With Quote  
     

  15. Thankful user:


  16. #190  


    Major's Avatar
    Join Date
    Jan 2011
    Posts
    2,997
    Thanks given
    1,293
    Thanks received
    3,556
    Rep Power
    5000
    Quote Originally Posted by kierandevvs View Post
    I do agree that named constants are a better choice but I still disagree that hard coded values are a bad option here
    I mean u can't get any worse than arbitrary numbers in the middle of your code so how can it not be a bad option? there's no inferior alternative

    Quote Originally Posted by kierandevvs View Post
    considering it wasnt too long ago from that date that people were still using assembly for full application development.
    If assembly was used for an entire application then it was 50 years ago, before alternative/useful programming languages were mainstream; once C became well-known very few people wrote entire applications in asm anymore, with the typical practice to write the hot spot in asm if necessary. Even rollercoaster tycoon, the game scu linked (and is well known for being completely insane for the amount of asm in it) is partially C.

    That aside, whether or not people used to use a supposedly worse option is completely irrelevant to whether or not something is bad. It's pretty obvious that magic numbers are confusing and make code less readable, and pretty obvious that giving them names is a lot better
    Reply With Quote  
     

  17. Thankful users:


Page 19 of 24 FirstFirst ... 91718192021 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [Official] RuneScript
    By Zonchord in forum Help
    Replies: 2
    Last Post: 07-04-2010, 03:28 AM
  2. RuneScript
    By Markian in forum Help
    Replies: 4
    Last Post: 03-15-2010, 06:12 AM
  3. RuneScript Base Bot
    By Linux in forum RuneScape Underground
    Replies: 10
    Last Post: 02-04-2010, 01:30 AM
  4. Project RuneScript
    By Vastiko in forum Projects
    Replies: 14
    Last Post: 10-25-2009, 09:08 PM
  5. What is runescript?
    By Meanz in forum RS2 Server
    Replies: 5
    Last Post: 08-18-2009, 02:18 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •