| View previous topic :: View next topic |
| Author |
Message |
Thalon
Joined: 12 Jul 2005 Posts: 632
|
Posted: Mon Jan 15, 2007 9:50 am Post subject: |
|
|
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
Thalon, the selfish _________________ AHK-Icon-Changer
AHK-IRC
deutsches Forum |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5037 Location: /b/
|
Posted: Mon Jan 15, 2007 11:57 am Post subject: |
|
|
That's why I always use expressions for Ifs - much simpler and v2 compatible. _________________ Chat (IRC) • PlusNet • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 632
|
Posted: Mon Jan 15, 2007 1:21 pm Post subject: |
|
|
@Titan
I was refering to the brackets
I really hate this "{" in the same line as the command!
Please forbid it
It doesn't match the documentation, too :0)
Thalon _________________ AHK-Icon-Changer
AHK-IRC
deutsches Forum |
|
| Back to top |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 299 Location: Germany
|
Posted: Sun Jan 21, 2007 2:01 pm Post subject: |
|
|
| 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!
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
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 |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 632
|
Posted: Mon Jan 22, 2007 10:23 am Post subject: |
|
|
@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 |
|
| Back to top |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 299 Location: Germany
|
Posted: Mon Jan 22, 2007 10:26 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 2952 Location: Minnesota
|
Posted: Mon Jan 22, 2007 5:03 pm Post subject: |
|
|
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 |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 632
|
|
| Back to top |
|
 |
Veovis
Joined: 13 Feb 2006 Posts: 390 Location: Utah
|
Posted: Wed Jan 31, 2007 4:54 am Post subject: |
|
|
| 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 ) 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
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 |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 299 Location: Germany
|
Posted: Wed Jan 31, 2007 1:56 pm Post subject: |
|
|
| 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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5037 Location: /b/
|
|
| Back to top |
|
 |
Veovis
Joined: 13 Feb 2006 Posts: 390 Location: Utah
|
Posted: Wed Jan 31, 2007 5:53 pm Post subject: |
|
|
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 |
|
 |
Veovis
Joined: 13 Feb 2006 Posts: 390 Location: Utah
|
Posted: Wed Jan 31, 2007 6:00 pm Post subject: |
|
|
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 |
|
 |
Ace_NoOne
Joined: 10 Oct 2005 Posts: 299 Location: Germany
|
Posted: Wed Jan 31, 2007 6:12 pm Post subject: |
|
|
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 )!
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 |
|
 |
Veovis
Joined: 13 Feb 2006 Posts: 390 Location: Utah
|
Posted: Wed Jan 31, 2007 6:16 pm Post subject: |
|
|
| 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 |
|
 |
|