<- 1  -   of 3455 ->
^^
vv
List results:
Search options:
Use \ before commas in usernames
it has impressed me how they've been pretty determined to fix all the stupid faults that existed in the beginning, php was a piece of fucking swiss cheese security wise back in the day but they've not been afraid to break compatibility to fix those problems, which is commendable
red chamber dream
yeah wasn't it written by like, a 15 year old initially
red chamber dream
anyway i'm glad they're improving it so i can keep using it as my main scripting language ... i like php if only because it's syntactically similar to js, so i can easily switch between them

whereas if i used python or something that would be more of a pain
yeah I'm annoyed how python has garnered quite a bit more support in the last decade or so, because fuck languages that dictate how you indent them
red chamber dream
yeah, i can't fucking stand it

and everyone thinks it's all the rage these days too, especially at my office
red chamber dream
we do use python for lots of shit but i'm like why ... why not ruby instead
you can find all the temporary code in my projects just by scrolling through them, because any code which I might want to remove later isn't indented along with the surrounding code, so it sticks out like a sore thumb

can't do that in python, but I suppose python people would call it a 'bad habit'
red chamber dream
oh totally, python people are all about "bad habits" in relation to "rules" they just made up
I also never do 4 spaces per tab (which python enforces), because it just wastes too much horizontal space, so I've always used 2
so yeah fuck that nanny state of a language
red chamber dream
oh wow i didn't know python didn't let you set the tab width

but i guess if it uses spaces it couldn't
red chamber dream
i actually like a lot of horiz space, i use 6-space tabs
red chamber dream
sometimes even 8
it is a bit better these days now everything is widescreen
it did used to piss me off having 50% of the line just being whitespace though and then having to split a line of code up because the whitespace has shoved it off the screen
red chamber dream
lol yeah that bugs me too

the conventional wisdom is to just use more functions though right
red chamber dream
but sometimes, fuck that

sometimes i don't care
well again there are legitimate reasons why you might not want to which are happily ignored by the "bad habits" brigade

particularly true if you're using C and a) you don't want the overhead of an extra function call and b) you don't want to have to scroll to the top of the file and add a function declaration on top of the actual new function you need to write

people would tell you to use inline functions to cope with (a) but the fact is that not all compilers and C revisions support inline, so you're compromising your code's compatibility
although I admit in practice these days it's less of an issue than it once was
but yeah I'm not a huge fan of needlessly sticking code in a subfunction unless it's code that gets called from more than one place, i.e. it actually requires a function
then on top of all that you need to think up a sensible function name which in the case of very deeply nested code is usually harder than it seems, and if you have deeply nested code it usually needs to take a shitload of arguments

it's just tedious
and you end up with this fucking function that is not reusable in any way, shape or form, like the only possible place you could ever want to use that piece of code is the place you took it from
it's like people who tell you not to use goto in C and I'm always like er have you checked the linux kernel recently
red chamber dream
Quote from DJGrenola:
but yeah I'm not a huge fan of needlessly sticking code in a subfunction unless it's code that gets called from more than one place, i.e. it actually requires a function

this is my rule. don't split anything out unless there's a reason to. following dogma just because it exists is so stupid
Edit history:
arkarian: 2016-02-09 09:39:03 pm
red chamber dream
and naming shit is hard indeed haha ... it's probably the thing i care most about, because if you give stuff good names, code magically becomes way more clear