[QUOTE=Anonim;33393114]I just lost all respect for id software.
They didn't convert their tabs to spaces in Doom3. Fuck 'em all to hell![/QUOTE]
who the fuck would use spaces instead of tabs
you're a bad person
also wow i'm so excited that idTech4 was released, now i can eagerly dive into code that i don't understand and eventually give up in a fit of rage
[QUOTE=Kopimi;33405054]who the fuck would use spaces instead of tabs[/QUOTE]
Spaces look the same in every editor.
[QUOTE=ROBO_DONUT;33405134]Spaces look the same in every editor.[/QUOTE]
In my configuration of Notepad2, they look like red dots. I much prefer one red arrow over 5 red dots. Yeah, that's right; I set tab width to 5 :clint:
[QUOTE=ROBO_DONUT;33405134]Spaces look the same in every editor.[/QUOTE]So? Tabs represent indentation using a single character, which makes a lot of sense, rather than having 4-6 spaces you have a single 'this is intended' character.
I don't see how having one character is a benefit.
[QUOTE=ROBO_DONUT;33405339]I don't see how having one character is a benefit.[/QUOTE]It means that you can configure your editor to display indentation however you like and it has more semantic meaning.
You can find spaces all over the file but tabs are (usually) only used for indenting (and a bit of aligning) blocks of code
[QUOTE=ROBO_DONUT;33405339]I don't see how having one character is a benefit.[/QUOTE]
hitting "tab" is a lot easier than slamming your spacebar 5-6 times every time you want to make an indentation
[QUOTE=Kopimi;33405426]hitting "tab" is a lot easier than slamming your spacebar 5-6 times every time you want to make an indentation[/QUOTE]
In most editors, you will still hit the tab key, but it will insert x spaces instead.
[QUOTE=Kopimi;33405426]hitting "tab" is a lot easier than slamming your spacebar 5-6 times every time you want to make an indentation[/QUOTE]
You generally get your IDE to insert 5 spaces or whatever when you press the Tab key, but then it defeats the point if you ask me.
[QUOTE=Z_guy;33405452]In most editors, you will still hit the tab key, but it will insert x spaces instead.[/QUOTE]
This annoys me to no end, I hit the tab key because I want a tab, not some spaces. Thankfully you can usually turn it off
Files indented with spaces will look the same on every editor as the editor that wrote them. (Even if you decide to replace them with red dots)
Files indented with tabs won't.
[QUOTE=danharibo;33405477]This annoys me to no end, I hit the tab key because I want a tab, not some spaces. Thankfully you can usually turn it off[/QUOTE]
what annoys me to no end is having to delete "space"tabs, slam backspace erryday
[QUOTE=Lexic;33405497]Files indented with spaces will look the same on every editor as the editor that wrote them. (Even if you decide to replace them with red dots)
Files indented with tabs won't.[/QUOTE]
They may not be indented the exact same depth but they will still be entirely consistent, and removing that indentation takes only one hit of the spacebar, so I still dont see the purpose behind spaces
[QUOTE=Night-Eagle;33405213]In my configuration of Notepad2, they look like red dots. I much prefer one red arrow over 5 red dots. Yeah, that's right; I set tab width to 5 :clint:[/QUOTE]
we need to make a ~rebel~ rating for you
Me conducting a super-secret night raid on an enemy control point with my bro:
[img]http://i.imgur.com/ISbl8.png[/img]
[IMG]http://i.imgur.com/OJ4Xp.png[/IMG]
My bro can't find complete paths or attack anything yet.
Well, after getting on with my game Maze Blitz for quite a while now, I decided tonight to head back to a bit of OpenGL and move into indexed draws and implement a Pipeline class to deal with Matrix calculations.
Here's what tonight's work has brought me:
[video=youtube;WN8RXC9T5zU]http://www.youtube.com/watch?v=WN8RXC9T5zU[/video]
It's pretty much a 3D pyramid that rotates and moves in very strange ways that I am about to start trying to make complete sense of. In the video, I show a few different renders of the shape acting in different ways to different rotation parameters.
Overall, I'd say this has been a productive night and that I'm definitely ready to move onto perspective projection and camera space/control now.
Onwards and upwards!
[QUOTE=Yogurt;33404347]Oh, the joys of C#. No need for memory mangement.[/QUOTE]
And when the GC kicks in and rearranges the memory. That perf penalty ;_;
[IMG]http://i.imgur.com/CmZJQ.png[/IMG]
[editline]23rd November 2011[/editline]
Improvement?
[media]http://www.youtube.com/watch?v=TuIYURObHNY[/media]
If I must say so myself, this looks pretty good. With great help from NorthernGate.
Don't look at the textures yet. Stars will be there tomorrow.
[QUOTE=uint64;33406041]And when the GC kicks in and rearranges the memory. That perf penalty ;_;[/QUOTE]
Doesn't C# have some sort of destruction hinting for the GC, though? If you're dealing with heavy memory creation you shouldn't be carelessly leaving shit around for a GC to collect if you can assist the GC when it's appropriate. I'm fairly certain Java has this by setting any reference to null.
[QUOTE=amcfaggot;33406168]Doesn't C# have some sort of destruction hinting for the GC, though? If you're dealing with heavy memory creation you shouldn't be carelessly leaving shit around for a GC to collect if you can assist the GC when it's appropriate. I'm fairly certain Java has this by setting any reference to null.[/QUOTE]
Yes, you can use Dispose pattern, write correct ~SomeType destructors , but the fact that memory will be arranged is costly.Basically, newing up is almost free, but destruction is damn costly. Protip: reuse everything.
[QUOTE=Nikita;33403127]Question: When I use malloc() or 'new' to allocate some small amount of memory, am I really wasting like 4kb when asking for 4 bytes? Can I make lots and lots of pointers to 8-256 bytes of memory each, RAM-efficiently? If not, what's the best thing to do when you need lots of small pointed numbers?[/QUOTE]
That depends on the implementation of malloc() or new, but afaik it doesn't do that on Windows or Linux.
The only problem when allocating lots and lots of small blocks is memory fragmentation.
[QUOTE=Perl;33405531]what annoys me to no end is having to delete "space"tabs, slam backspace erryday[/QUOTE]
[img]http://i.imgur.com/Oaomj.gif[/img]
[QUOTE=Nigey Nige;33406042][IMG]http://i.imgur.com/CmZJQ.png[/IMG]
[editline]23rd November 2011[/editline]
Improvement?[/QUOTE]
Thats sexy
The bar above the control points needs to be improved though
[QUOTE=q3k;33406284][img]http://i.imgur.com/YKqxn.gif[/img][/QUOTE]
But then why are you even using Spaces? All of the 'tools' for this just make spaces act like tabs.
[QUOTE=danharibo;33406324]But then why are you even using Spaces? All of the 'tools' for this just make spaces act like tabs.[/QUOTE]
Constant width on all editors, and sometimes I like to indent by more/less than a tab (I'm looking at you, monster WinAPI calls!):
[cpp]u32 something = SomeOtherThing(oh, holy, fucking, shit
thats, a, lot, of, arguments,
thank, gods, this, is, at least,
readable);[/cpp]
Also, [url=http://www.python.org/dev/peps/pep-0008/]Guido says I should use spaces[/url] :v:.
[QUOTE=Jack Trades;33400672]I like your sprites.[/QUOTE]
Thanks
[img]http://img854.imageshack.us/img854/8861/spritec.jpg[/img]
[QUOTE=danharibo;33406324]But then why are you even using Spaces? All of the 'tools' for this just make spaces act like tabs.[/QUOTE]
Because tabs still don't show up the same in every editor. You have to dick around with settings to make things line up right, whereas spaces [i]will always[/i] look the same in every editor.
The problem with using tabs in vim is that with combinations of spaces and tabs everything gets reverted to just tabs + spaces for the extra width.
On the other hand, I fucking hate using spaces for some reason.
Sorry, you need to Log In to post a reply to this thread.