1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pro's and Con's of HackLang

Discussion in 'General Programming Chat' started by Delphi Coder, Apr 11, 2014.

  1. Delphi Coder

    Delphi Coder Newbie

    Joined:
    Apr 11, 2014
    Messages:
    6
    Likes Received:
    0
    I was wondering if anyone has messed around with FaceBook's Hack Language? Is it any better than PHP?

    Ps- Has anyone played with Google Go much?
     
  2. Chris22

    Chris22 Regular Member

    Joined:
    Sep 29, 2010
    Messages:
    400
    Likes Received:
    1,060
    It's added things to PHP that languages like C# and Java added over 5 years ago.
     
  3. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,632
    Likes Received:
    2,385
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    Boy, what an ugly syntax for return type.

    Code:
    public function alpha(): int {
         return 1;
      }
    
     
    • Thanks Thanks x 1
  4. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,479
    Likes Received:
    10,232
    If you 're coming from a strongly typed language background, then you may be drawn to it due to that. Otherwise, it makes no real sense to favor it over the vanilla PHP implementation.
     
  5. BuildMoreLinks

    BuildMoreLinks Jr. VIP Jr. VIP Premium Member

    Joined:
    Jun 7, 2012
    Messages:
    1,958
    Likes Received:
    661
    Facebook's informal motto is "Move fast and break things". Today's apps aren't built on perfectly crafted code
     
  6. madoctopus

    madoctopus Supreme Member

    Joined:
    Apr 4, 2010
    Messages:
    1,250
    Likes Received:
    3,503
    Occupation:
    Full time IM
    I would never ever use a strong typed PHP. Reason I use PHP is because it is supported on every single host out there. Rather than learn this hack language I'd be much better off just going for one of the better architected languages - Java or C#.
     
  7. Delphi Coder

    Delphi Coder Newbie

    Joined:
    Apr 11, 2014
    Messages:
    6
    Likes Received:
    0
    I come from delphi, but yes c# is good