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,059
    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,384
    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,468
    Likes Received:
    10,147
    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,910
    Likes Received:
    655
    Location:
    17.3660° N, 78.4760° E
    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,249
    Likes Received:
    3,498
    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