AutoHotkey Community

It is currently May 24th, 2012, 2:30 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: January 15th, 2007, 9:50 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
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 :o

Thalon, the selfish

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2007, 11:57 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
That's why I always use expressions for Ifs - much simpler and v2 compatible.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2007, 1:21 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
@Titan
I was refering to the brackets ;)

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

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 21st, 2007, 2:01 pm 
Offline

Joined: October 10th, 2005, 10:44 am
Posts: 299
Location: Germany
toralf wrote:
I haven't read the whole topic, but Auto-Syntax-Tidyoffers the possibility to do case correction for most of AHK words.
Right - I had totally forgotten about Auto-Syntax-Tidy! :o
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 :D
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2007, 10:23 am 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
@Ace_NoOne
It doesn't match the used examples.
It's only a added (tolerated?) possibility ;)
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2007, 10:26 am 
Offline

Joined: October 10th, 2005, 10:44 am
Posts: 299
Location: Germany
I know what you mean, Thalon - I don't use OTB myself either (only for CSS and JavaScript ;) ).
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2007, 5:03 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2007, 7:52 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
Yes, jonny you are right.
So this topic can be closed ;)

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2007, 4:54 am 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
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 :D ) 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 :lol:


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...)

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2007, 1:56 pm 
Offline

Joined: October 10th, 2005, 10:44 am
Posts: 299
Location: Germany
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2007, 5:49 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
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.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2007, 5:53 pm 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
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?

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2007, 6:00 pm 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
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.

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2007, 6:12 pm 
Offline

Joined: October 10th, 2005, 10:44 am
Posts: 299
Location: Germany
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 :P )!
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2007, 6:16 pm 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
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!!")

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: plastikglass and 55 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group