Vermiculus's Profile User Rating: -----

Reputation: 10 Tradesman
Group:
Contributors
Active Posts:
314 (0.17 per day)
Joined:
26-February 09
Profile Views:
7,954
Last Active:
User is offline Jun 01 2012 07:01 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Subaru
Dream Kudos:
25

Latest Visitors

Icon   Vermiculus To those otherwise confused: AFRICA IS NOT A COUNTRY.

Posts I've Made

  1. In Topic: Operator Overloading

    Posted 14 May 2012

    View PostRyano121, on 14 May 2012 - 12:51 PM, said:

    Coming from the Java world I can say that methods called .add() etc are a massive pain in the ass in terms of readability (and writability). As you have sometimes very long expressions, operator overloading looks like it should do, whereas with methods you end up with massive amounts of nested method calls that are horrible in almost every way.


    This consistency is what languages should be all about, imho. Programs are the direct products of thoughts, and if your program (ie syntax) isn't consistent, how then can your thoughts?

    I definitely hear you on the ... annoying bit - I got to a point in one of my projects where I simply could not stand it. I have on disk a small little script-thing-that's-technically-not-a script that will expand the macro of operator overloading for me (given precedences) and leave a commented 'overloaded' version above it. I know it's a pain, but infix is just too ambiguous. Without knowing how a certain language/compiler handles precedence, it is impossible to know what will happen. God forbid you needing to debug it.

    Much of what we do nowadays is built off of what are essentially text-expanding macros, so I don't see why doing a little bit of the macro thing ourselves is such a sore point.

    AdamSpeight2008, while your implementation of op. overloading for settings is clever, it seems like it's pushing on ambiguous as to what it actually does (comments aside). The use of methods is simply more stable and understandable (when formatted nicely, it rather resembles LISP).

    On the flip side, BigInteger. It's obvious that languages shouldn't restrain programmers in their jobs, but... I don't know. For the few applications that make consistent sense (mathematical wrappers, such as numbers, matrices, etc.), I don't know if it's worth it to have such dangerously ambiguous code when it is so easy to write an expander.
  2. In Topic: Operator Overloading

    Posted 12 May 2012

    Against:


    For:

My Information

Member Title:
D.I.C Regular
Age:
21 years old
Birthday:
March 29, 1993
Gender:
Location:
Baltimore
Interests:
[quote name='gabehabe' post='690163' date='1 Jul, 2009 - 04:28 AM'][quote name='supersloth' post='689756' date='30 Jun, 2009 - 11:10 PM'][quote name='gabehabe' post='689426' date='30 Jun, 2009 - 10:25 AM'][quote name='KYA' post='689259' date='30 Jun, 2009 - 02:47 PM'][quote name='supersloth' post='689173' date='30 Jun, 2009 - 07:27 AM'][quote name='gabehabe' post='689026' date='30 Jun, 2009 - 03:34 AM'][quote name='supersloth' post='688649' date='29 Jun, 2009 - 11:38 PM'][quote name='supersloth' post='688255' date='29 Jun, 2009 - 07:57 AM'][quote name='gabehabe' post='688027' date='29 Jun, 2009 - 02:06 AM'][quote name='supersloth' post='687827' date='29 Jun, 2009 - 02:04 AM']this thread fucking sucks.[/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote][/quote]
Years Programming:
5+
Programming Languages:
[X]HTML, JS, C/ObjC/C++, Visual Basic, C#, Java, Python, Chef (it's fun!), LISP (best damn language I've ever worked with - seriously), others?

Contact Information

E-mail:
Private
Website URL:
Website URL  http://
Twitter:
vermiculus
Xfire:
vermiculus

Friends

Comments

Page 1 of 1
  1. Photo

    Vermiculus Icon

    26 Mar 2011 - 09:10
    None whatsoever, good sir... I've looked into PHP, but I was never able to set up a development environment.
  2. Photo

    pwz2000 Icon

    25 Mar 2011 - 07:19
    Do you have any PHP experience? I am looking for a freelancer
Page 1 of 1