AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I wish AHK commands were case-sensitive (ode to OCD)
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
Thalon



Joined: 12 Jul 2005
Posts: 632

PostPosted: Mon Jan 15, 2007 9:50 am    Post subject: Reply with quote

I'm also using the style in documentation, but the most unreadable thing (for me) are ifs, loops o.ä. in this style:
Code:
if a != %b% {
  c := a
  a := b
  b := c
}
instead of
Code:
if a != %b%
{
  c := a
  a := b
  b := c
}
Might sound silly, but readability drops by 80% for me Surprised

Thalon, the selfish
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5037
Location: /b/

PostPosted: Mon Jan 15, 2007 11:57 am    Post subject: Reply with quote

That's why I always use expressions for Ifs - much simpler and v2 compatible.
_________________
Chat (IRC)PlusNetScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Thalon



Joined: 12 Jul 2005
Posts: 632

PostPosted: Mon Jan 15, 2007 1:21 pm    Post subject: Reply with quote

@Titan
I was refering to the brackets Wink

I really hate this "{" in the same line as the command!
Please forbid it Very Happy
It doesn't match the documentation, too :0)

Thalon
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
Back to top
View user's profile Send private message
Ace_NoOne



Joined: 10 Oct 2005
Posts: 299
Location: Germany

PostPosted: Sun Jan 21, 2007 2:01 pm    Post subject: Reply with quote

toralf wrote:
I haven't read the whole topic, but Auto-Syntax-Tidy offers the possibility to do case correction for most of AHK words.
Right - I had totally forgotten about Auto-Syntax-Tidy! Surprised
That looks like it might do the trick - thanks toralf!

Thalon wrote:
I really hate this "{" in the same line as the command!
Please forbid it Very Happy
It doesn't match the documentation, too :0)
It does.
_________________
Improving my world, one script at a time.
Join the AutoHotkey IRC channel: irc.freenode.net #autohotkey
Back to top
View user's profile Send private message
Thalon



Joined: 12 Jul 2005
Posts: 632

PostPosted: Mon Jan 22, 2007 10:23 am    Post subject: Reply with quote

@Ace_NoOne
It doesn't match the used examples.
It's only a added (tolerated?) possibility Wink
It wasn't valid before 1.0.41 and I really hate this!! (Sounds too hard, but if I take a script with this notation I have to rework it completely first before being able to read it properly).
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
Back to top
View user's profile Send private message
Ace_NoOne



Joined: 10 Oct 2005
Posts: 299
Location: Germany

PostPosted: Mon Jan 22, 2007 10:26 am    Post subject: Reply with quote

I know what you mean, Thalon - I don't use OTB myself either (only for CSS and JavaScript Wink ).
But it does "match the documentation"...

PS: Schaff' was!
_________________
Improving my world, one script at a time.
Join the AutoHotkey IRC channel: irc.freenode.net #autohotkey
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 2952
Location: Minnesota

PostPosted: Mon Jan 22, 2007 5:03 pm    Post subject: Reply with quote

It's purely stylistic, so it shouldn't be that big a deal. I, for one, like it, and I know at least a few others do too, so it would be a much bigger deal to remove it just because other people might not like reading code we've written.

Quote:
(Sounds too hard, but if I take a script with this notation I have to rework it completely first before being able to read it properly)


This is unavoidable in a language with any kind of flexibility, since everyone has their own preferences. What looks elegant and readable to one person may (and most likely will) be detestable to another.
Back to top
View user's profile Send private message
Thalon



Joined: 12 Jul 2005
Posts: 632

PostPosted: Mon Jan 22, 2007 7:52 pm    Post subject: Reply with quote

Yes, jonny you are right.
So this topic can be closed Wink

Thalon
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
Back to top
View user's profile Send private message
Veovis



Joined: 13 Feb 2006
Posts: 390
Location: Utah

PostPosted: Wed Jan 31, 2007 4:54 am    Post subject: Reply with quote

Ace_NoOne wrote:
Well, since I don't have a blag, I figured this was the place to publish my ramblings...


I LOVE XKCD!!!!
in case you wanted to know...

i agree with jonny: its purely stylistic, and like others have said, AHK aims for simpliciy and ease of use (for beginners) so restricting it like that is a bad idea in my worthless opinion

and im really lazy so most of my code is lowercase (as are my posts Very Happy ) but whenever i see code by PhiLho or others i always like how pretty it is and i tell myself i should make mine better. But laziness always wins Laughing


Edit: and i agree with thalon about the OTB!! Its a cool feature, but i don't like it. I love the fact that both work in AHK (OTB is not a huge deal, so restricting people would just be dumb...)
_________________

"Power can be given overnight, but responsibility must be taught. Long years go into its making."
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ace_NoOne



Joined: 10 Oct 2005
Posts: 299
Location: Germany

PostPosted: Wed Jan 31, 2007 1:56 pm    Post subject: Reply with quote

Veovis wrote:
I LOVE XKCD!!!!
in case you wanted to know...
In the spirit of veering off-topic, here are my all-time xkcd favorites (in chronological order):
Sorry for this, but when it comes to xkcd, I'm getting all soft and fuzzy (even though things like today's comic can leave me baffled and dismayed)...
_________________
Improving my world, one script at a time.
Join the AutoHotkey IRC channel: irc.freenode.net #autohotkey
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5037
Location: /b/

PostPosted: Wed Jan 31, 2007 5:49 pm    Post subject: Reply with quote

The regular expressions one is teh lollage...
I've also came down with the wiki syndrome a few times, glad to know I'm not the only one.
_________________
Chat (IRC)PlusNetScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Veovis



Joined: 13 Feb 2006
Posts: 390
Location: Utah

PostPosted: Wed Jan 31, 2007 5:53 pm    Post subject: Reply with quote

lol yeah, i like the sudo make me a sandwich, the pole-perspective one, etc.

@ Titan, lol yeah, you're not alone! its funny though cause alot of the things he posts make you feel better. Has anyone done this?
_________________

"Power can be given overnight, but responsibility must be taught. Long years go into its making."
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Veovis



Joined: 13 Feb 2006
Posts: 390
Location: Utah

PostPosted: Wed Jan 31, 2007 6:00 pm    Post subject: Reply with quote

By the way if anyone cares. I made a "montage" of xkcd comics for my 1600x1200 screen (with the start bar twice as thick as usual). Heres the link.
_________________

"Power can be given overnight, but responsibility must be taught. Long years go into its making."
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ace_NoOne



Joined: 10 Oct 2005
Posts: 299
Location: Germany

PostPosted: Wed Jan 31, 2007 6:12 pm    Post subject: Reply with quote

True, Titan; the RegExp one is great too.

Veovis wrote:
Has anyone done this?
Not exactly; while I am in fact socially awkward, I'm usually just glad when people leave me the hell alone...

That montage is great, Veovis (even warrants your double-posting Razz )!
My TFT limits resolution to 1280x1024 though. Of course I could make my own montage ... but I try to stay away from graphics programs because I'm "colorly challegenged", have no eye for design whatsoever, and - worst of all - get obsessed about positioning (single pixels do matter, even if you can't actually see a difference!).

Hmm, I guess that's enough self-disclosure for a day...
_________________
Improving my world, one script at a time.
Join the AutoHotkey IRC channel: irc.freenode.net #autohotkey
Back to top
View user's profile Send private message
Veovis



Joined: 13 Feb 2006
Posts: 390
Location: Utah

PostPosted: Wed Jan 31, 2007 6:16 pm    Post subject: Reply with quote

Ace_NoOne wrote:
Veovis wrote:
Has anyone done this?
Not exactly; while I am in fact socially awkward, I'm usually just glad when people leave me the hell alone...


I admit i have never gotten out of my car and tried to befriend anyone, but i always notice if they are in sync. (click...click...click "ARE THEY IN SYNC????" cl-click...cli-click....click-click.... "DANGIT!!")
_________________

"Power can be given overnight, but responsibility must be taught. Long years go into its making."
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group