You know, there are editors that automatically do the indenting for you. I'm so used to that by now that when such a program is not available, it actually hurts to write code.Nsmurf wrote:I'd say the worst habit of mine is not indenting. When I start coding, I just want to get something up and running, so I don't think about indenting, then it ends up as a habit, and I'm to lazy to go back and fix to
Do You Have (Or Have You Seen) Twitches in Programming ?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
Help us help you: attach a .love.
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
yeah, notepad++ is aceRobin wrote:You know, there are editors that automatically do the indenting for you. I'm so used to that by now that when such a program is not available, it actually hurts to write code.Nsmurf wrote:I'd say the worst habit of mine is not indenting. When I start coding, I just want to get something up and running, so I don't think about indenting, then it ends up as a habit, and I'm to lazy to go back and fix to
typing the " " (space 4x) is a real pain in the arse when you cant press TAB.
Lua is not an acronym.
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
That reminds me the way how Java programmers usually compare strings:kikito wrote:My favorite one is "yoda conditions", i.e. typing this:instead of this:Code: Select all
if 5 == count then
Code: Select all
if count == 5 then
Code: Select all
if ("stringValue".equals(stringVariable)) ...
Code: Select all
if (stringVariable.equals("stringValue")) ...
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
That's very basic. What I meant more was you type function foo(a, b)<ENTER> and the editor puts a tab on the new line. Same thing, you write end and the editor moves that line one tab to the left.qaisjp wrote:yeah, notepad++ is ace
typing the " " (space 4x) is a real pain in the arse when you cant press TAB.
You can write a while program, never once press tab or shift-tab and still have a completely indented source file.
Help us help you: attach a .love.
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
Oh that, yeah that too (SCITE does that i think) - anyway I don't like automatic indentation*2 now because i am so used to np++)Robin wrote:That's very basic. What I meant more was you type function foo(a, b)<ENTER> and the editor puts a tab on the new line. Same thing, you write end and the editor moves that line one tab to the left.qaisjp wrote:yeah, notepad++ is ace
typing the " " (space 4x) is a real pain in the arse when you cant press TAB.
You can write a while program, never once press tab or shift-tab and still have a completely indented source file.
Lua is not an acronym.
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
Yeah, I miss the times I programmed c++ using an IDE that you do that kind of stuff and much more...actually, I think debugging is the feature I miss the most. Nowadays its just me, textwrangler (great free program btw) and LOVE.
I don't suppose any of you have a Lua IDE hidden somewhere in your old disks, do you?
I don't suppose any of you have a Lua IDE hidden somewhere in your old disks, do you?
Did my comment help/offended you? Use the Karma button!!
LÖVEing each day...
LÖVEing each day...
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
TextWrangler IS great, I use it whenever I am not using Windows.tv_user wrote:Yeah, I miss the times I programmed c++ using an IDE that you do that kind of stuff and much more...actually, I think debugging is the feature I miss the most. Nowadays its just me, textwrangler (great free program btw) and LOVE.
I don't suppose any of you have a Lua IDE hidden somewhere in your old disks, do you?
Lua IDE's are virtually useless unless you have a framework specific idea, Lua ide's can probably only provide better support for native Lua libraries and some syntax.
Lua is not an acronym.
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
Okay, I haven't had much time to think about this, but I think this is the minimum "gimme" that you'd have to take to obfuscate code:
Why? Because from there we can build arbitrary strings and execute arbitrary code.
Once you're at loadstring, you can basically do anything you want.
I couldn't figure out how to get to "char" from just symbols and _G.
Edit: fixed a typo
Code: Select all
_={__="char",___=_G}
Code: Select all
_._=_.__[_.__] -- String.char function via the string metatable
_["!"]=(#"##")^(#"####")*(#"#######") -- 112, or lowercase p
_["@"]=_._(_["!"]+(#"####")).._._(_["!"]+(#"#########")).._._(_["!"]).._._(_["!"]-(#"###########")) -- "type"
_["$"]=_._(_["!"]-(#"####")).._._(_["!"]-(#"#")).._._(_["!"]-(#"##")^(#"####")+(#"#")).._._(_["!"]-(#"############")) -- "load"
_["*"]=_.___[_["$"].._.___[_["@"]]("")] -- loadstring function
I couldn't figure out how to get to "char" from just symbols and _G.
Edit: fixed a typo
Last edited by Inny on Tue Sep 25, 2012 10:22 pm, edited 1 time in total.
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
have fun debuggingInny wrote:Okay, I haven't had much time to think about this, but I think this is the minimum "gimme" that you'd have to take to obfuscate code:Why? Because from there we can build arbitrary strings and execute arbitrary code.Code: Select all
_={__"char",___=_G}
Once you're at loadstring, you can basically do anything you want.Code: Select all
_._=_.__[_.__] -- String.char function via the string metatable _["!"]=(#"##")^(#"####")*(#"#######") -- 112, or lowercase p _["@"]=_._(_["!"]+(#"####")).._._(_["!"]+(#"#########")).._._(_["!"]).._._(_["!"]-(#"###########")) -- "type" _["$"]=_._(_["!"]-(#"####")).._._(_["!"]-(#"#")).._._(_["!"]-(#"##")^(#"####")+(#"#")).._._(_["!"]-(#"############")) -- "load" _["*"]=_.___[_["$"].._.___[_["@"]]("")] -- loadstring function
I couldn't figure out how to get to "char" from just symbols and _G.
Re: Do You Have (Or Have You Seen) Twitches in Programming ?
lol, i don't even understand that code...Xgoff wrote:have fun debugging
Lua is not an acronym.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest