Constant name
-
Found this definition in code I'm trying to understand:
private static final int MAGIC_CONSTANT_TO_COMPENSATE_FOR_TEXTGRAPHIC_MARGIN_REDUCTION = UIutils.pixelsToMils(1);
-
private static final int MAGIC_CONSTANT_TO_COMPENSATE_FOR_TEXTGRAPHIC_MARGIN_REDUCTION = UIutils.pixelsToMils(1);
AT_LEAST_IT_EXPLAINS_WHAT_IT_DOES
Filed under: Not really
-
That's almost beautiful in its horror.
-
I find that the bigger the name, the more stupid the original coder thought the idea was.
-
I find that the bigger the name, the more stupid the original coder thought the idea was.
Correlation does not imply causation.
-
I'm just saying, that's how I do it.
$iReallyDidntWantToHaveToMakeThisHackToWorkAroundSomeStupidBugInTheOracleExplainPlanButIGuessIHaveNoChoice = " some retarded index hint(+) ";
-
I'd just go with passive aggression. It's simpler and easier:
$unavoidableSuckyHack = '....'
-
Everything is easy with IDEs auto-completing.
I just have to type $iRenter and it fills the rest in.
-
Everything is easy with IDEs auto-completing.
I just have to type $iR<kbd>enter</kbd> and it fills the rest in.
Yes, but I don't use an IDE because I can out-type them and get fed up with their 'corrections'.
-
We need support for embedding images in code so we can slap in a picture of David Tennant in the rain before each hack.
Filed under: Cross-post from bad ideas thread
-
I don't have any corrections turned on...
And autocomplete never corrects spellings (at least, not unless I manually pick something from a dropdown).
-
I don't use an IDE because I can out-type them
Also - clearly you can't because you've settled for short variable names
-
However, there is a dearth of good PHP IDEs, so I can understand why you'd say these things. Eclipse's IDE is so-so, Zend is good unless your project gets too big.
-
So am I the TRWTF for doing it all in Sublime Text?
-
-
However, there is a dearth of good PHP IDEs, so I can understand why you'd say these things. Eclipse's IDE is so-so, Zend is good unless your project gets too big.
You can take Notepad++ off me when you can pry it from my cold dead hands.
-
The professor asked everyone what IDE we used after the project. He refused to believe I had made the project work using only Notepad + CommandLine compiler.
-
I did my college java final project in Notepad.
Regular notepad.That was how I used to program ASP Classic/VBScript years ago.
-
The professor asked everyone what IDE we used after the project. He refused to believe I had made the project work using only Notepad + CommandLine compiler.
Sweet.
-
-
-
-
Still better than vi.
^C
^X
^Q
^C
^C
^C
^C
exit
quit
justfuckingdie
Ctrl+Shift+T
killall viWhat? Oh. Sorry. Wrong window.
-
Isn't this how they seed /dev/random?
-
nano works for me too.
-
private const bool THIS_IS_HOW_I_NAME_CONSTANTS_IF_I_AM_PISSED_OF_BECAUSE_I_NEED_THEM_FOR_SOME_HACK = true
-
private const bool THIS_IS_HOW_I_NAME_CONSTANTS_IF_I_AM_PISSED_OF_BECAUSE_I_NEED_THEM_FOR_SOME_HACK = true
Shouldn't it be
private const bool THIS_IS_HOW_I_NAME_CONSTANTS_IF_I_AM_PISSED_OF_BECAUSE_I_NEED_THEM_FOR_SOME_HACK = 3So by the time you have typed it out you already forget if 3 was true, false or File_not_found
-
killall vi
I'm sort of used to the ESC other key paradigm from working with stupid HP-UXes. So i know how to ESCCOLONQ!. But I can't bother to remember the other 18 million commands.THIS_IS_HOW_I_NAME_CONSTANTS_IF_I_AM_PISSED_OF_BECAUSE_I_NEED_THEM_FOR_SOME_HACK = true
exactly.
-
I did my college java final project in Notepad.
Paper notepad?
Regular notepad.You can take Notepad++ off me when you can pry it from my cold dead hands.
Notepad2 is sufficient for me as a replacement of Notepad.I'm sort of used to the ESC other key paradigm from working with stupid HP-UXes. So i know how to ESCCOLONQ!. But I can't bother to remember the other 18 million commands.
I got used to ZZ and ZQ for exiting with and without saving. Sometimes I miss the initial Z and get stuck in recording mode, though.Filed under: multiquote reply. Jeff would be proud. I did it anyway.
-
I tried using Sublime Text. It was pretty good.
Unfortunately, it told me my evaluation has expired, so I had to delete it. :-(Oh well, back to using torrented Visual Studio...
-
I wish there was Notepad++ for all operating systems.
Although [url=http://kate-editor.org/]Kate[/url] is pretty good, too.
-
Notepad++ runs generally pretty good in Wine...
-
Unfortunately, it told me my evaluation has expired, so I had to delete it.
It never really stops working, you know? :P
-
It never really stops working, you know?
What lies are you spewing? I swear on my WinRar license I've never heard of such nonsense before!
-
+1. Lack of ability to click on hearts. Blame that thread.
-
Would you really want to run your second-most important tool on Linux in a compatibility layer?
-
Would you really want to run your second-most important tool on Linux in a compatibility layer?
That depends: do you classify a VM as a compatibility layer? Because if so, then I do it all the time.
-
I'm just saying, that's how I do it.
$iReallyDidntWantToHaveToMakeThisHackToWorkAroundSomeStupidBugInTheOracleExplainPlanButIGuessIHaveNoChoice = " some retarded index hint(+) ";
andmysuccessorisprobablygoingtobeacompleteidiotbecausetheywerehiredbythisfuckingplace
-
notepad++ has the ability to auto complete if the word has ever been typed previously.
-
$iReallyDidntWantToHaveToMakeThisHackToWorkAroundSomeStupidBugInTheOracleExplainPlanButIGuessIHaveNoChoice = " some retarded index hint(+) ";
In honor of this, I will now add a constant to my user stats userscript:
FUCKING_HELL_DISCOURSE_WHY_ISNT_THERE_A_FRIENDLY_NAME_FOR_POST_COUNT_STAT = 5
-
If you have to have a magical constant, this is IMO the correct way to do it. What was it that that clean code guy said?
Global scope:
- Long, descriptive variable names (like the OP's example)
- Short function names (
worker.start()
)
Local scope:
- Short variable names (
i
,x
,len
) - Long, descriptive function names (
private void performComplicatedOperationPhase3()
)
I agree and always try to follow this.
-
[code]
$crappyButOracleLovesItForAreaXXX = "and location in (select location from locations where area = 'XXX')";
$theWayEveryOtherQueryWorksJustFine = "and area = 'XXX'";
[/code]
Excerpts from actual code involving crap oracle explain plans.... anonymized of course. the variable names required no anonymization other than the XXX in place of the actual district #
-
^C
^X
^Q
^C
^C
^C
^C
exit
quit
justfuckingdie
Ctrl+Shift+T
killall viWhat? Oh. Sorry. Wrong window.
After pushing ^C once:
-
That's
vim
, being helpful.IIRC,
vi
doesn't do that. But I'm not sure if it got aliased or removed on my system,vim
keeps popping up.
-
A lot of modern *NIXES have
vi
aliased to really runvim
. That's a good thing. Unless you are under extreme memory constraints, there's no good reason to runvi
.
-
Debian and derivatives don't by default, but as soon as you install vim apt does it's magic. Not sure if it deletes vi though.
-
That screenshot is from Ubuntu Trusty. I haven't done
apt-get install vim
.
-
I didn't do a full reinstall for ages. Don't remember which was the last Mint I installed from scratch.
-
On debian wheezy, /usr/bin/vi brings up this:
~ VIM - Vi IMproved ~ ~ version 7.3.547 ~ by Bram Moolenaar et al.
Edit:
Ahh, I see. I guess you can switch.
$ ls -l /usr/bin/vi lrwxrwxrwx 1 root root 20 Apr 12 13:18 /usr/bin/vi -> /etc/alternatives/vi
BTW, @Onyx, how come you don't know
:q!
command? That's the most important command a Linux user can learn, least they get stuck inside that crappile.
-
I know that now. I use vim almost on a daily basis.
That was an artistic interpretation of the first time I entered vi because some tutorial told me to.