On Sun, Nov 1, 2009 at 12:18 AM, Thadeus Burgess <[email protected]>wrote:

> When dealing with large amounts of data, with mysql you need to do alot of
> tweaking to get it just right (database engines, etc etc...), and postgres
> works great out of the box.
>
> Negated logic in if statements when not necessary is against "politically
> correct" software engineering standards.


:-o  --- Hehehe;  I LIKE being a little politically incorrect (especially
when it does nothing bad - heck I'm a motorcyclist too! ;-).


> I used to use negated logic alot when not needed before college, but when I
> made an B on my first few projects because my if statements could be
> re-written, I soon learned the wisdom of only using negation when necessary
> to the logic.


...that's just some instructor's bug-a-boo  (yeah has merit in general, even
if weak ;-)).

We used to get 10% off for not having meaningful comments (so I learned to
write pseudo code first, much like structured english - before I'd write any
code .... ahem, ... Massimo - are ya lisn'in, man?  LOL! ;-)...

 This is one of those cases where using if not DEV would get 10 points taken
> off. Perhaps I just had an anal proffessor :)
>

Perhaps... professors are, after all, just ... oh - wait!  Massimo is my
_friend_!  I _like_ Massimo!.... ok, let me hold off on all that professor
political incorrectness..... (GHOST of college past exits the room, and
leaves Yarko alone - phew - All Hallows' eve - scary night!  bwahahaha!)

- Yarko (enjoying Halloween ;-)


>
> -Thadeus
>
>
>
>
>
> On Sun, Nov 1, 2009 at 12:02 AM, Wiiboy <[email protected]> wrote:
>
>>
>> I like using DEV_MODE, so I've got:
>>
>> DEV_MODE = request.env.http_host.startswith("localhost")
>>
>> if DEV_MODE:
>>   DAL("sqlite://bla")
>> else:
>>   DAL("postgres://bla")
>>
>> I'm debating MySQL vs Postgres, actually.
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to