Programming |
0 | ||
Rype a dit : don't you wish you were one |
0 | ||
Methusalah a dit : She's referring to the text editor |
![]() ![]() « Citoyen » 1359828600000
| 0 | ||
Haruhitastic a dit : It is Code::Blocks. Also Fxie, what is your game about? :o |
![]() ![]() « Censeur » 1359828600000
| 0 | ||
Todorovski a dit : Fxie a dit : Ok. |
0 | ||
My editor of choice is six. Fxie pls format your code better it's too hard to read. |
![]() « Citoyen » 1359829740000
| 0 | ||
cat & sed is best editor |
0 | ||
Todorovski a dit : Methusalah a dit : I never heard of that editor and we all know how most people who don't know about programming make posts like that. No need to quote it again, esp. since you didn't quite write the name right for me to be able to assume it was an editor I hadn't heard of anyway. Cptp a dit : Provide an example of what you consider better formatting |
![]() ![]() « Citoyen » 1359830880000
| 0 | ||
Fxie a dit : You don't know about Code::Blocks? Well, it is a C++ editor + compiler, where you can make console applications etc. I prefer Notepad++ too, but I don't know how to run a program. :C Also, are there any "Offline" javascript compilers? |
![]() ![]() « Citoyen » 1359830880000
| 0 | ||
Does anyone see what I did here? ![]() Also why doesn't anybody use decent IDE's anymore? I use IntelliJ for most projects, ironically enough this image was taken in netbeans though. |
0 | ||
Baasbase a dit : string x2 x1 xml " static xml if for BLALBLABLA how the hell ._. |
0 | ||
Fxie a dit : Something with whitespace and semicolons that didn't require horizontal scrolling to start with. |
0 | ||
Todorovski a dit : No. Why the hell would I know about a compiler for a language I don't use? And I don't know how "offline" javascript applications work, I do everything for the browser. A guy I know from dAmn made a js bot that was separate from the browser though, but I don't do that stuff. Cptp a dit : Semicolons aren't required in javascript, why would I clutter my code with them? Adding unnecessary bits to the end of each line doesn't sound better in any aspect to me. Also, I like to keep things consistent. I don't break single function calls into lines unless an argument is an object, in which case I break objects into lines for each property. But for single arguments, I'm not going to have one function broken into lines and every other one not. Furthermore, when you write more extensive code, you get to the point where there are so many indentions you have to scroll. You can't just define a function outside of a scope all willy-nilly, because it won't use temporary variables only defined within the scope of the original function. I also don't like adding spaces personally because they aren't needed. Waste of space to me, I don't see how that affects readability though since it's just adding more clutter. Depending on what you're writing, you'll find you have more code or less code. Let me see you remove that "require horizontal scrolling." This isn't a small project where everything is pretty and simple because the outcome itself is small and simple. |
![]() ![]() « Citoyen » 1359831540000
| 0 | ||
Fxie a dit : Oh I see. You should tell that earlier. :p Baasbase a dit : Looks like a TFM map XML. :x What is it supposed to be? |
![]() ![]() « Citoyen » 1359831540000
| 0 | ||
Welp I approve of this thread ![]() Useless excercise i did for school, see if you can figure out what this does |
0 | ||
Todorovski a dit : Fxie a dit : |
![]() ![]() « Citoyen » 1359831660000
| 0 | ||
Baasbase a dit : Does it do magic tricks? |
![]() ![]() « Citoyen » 1359831660000
| 0 | ||
Jhnaln a dit : Yes it will make your computer disappear |
![]() ![]() « Censeur » 1359831780000
| 0 | ||
Baasbase a dit : o that command is really printing? btw why "i+1" instead of "i++" |
0 | ||
Fxie a dit : JS implicitly inserts semicolons if you don't use them. JS doesn't always get it right, and it can lead to obscure and hard to find bugs. May as well write it properly the first time. |
0 | ||
Methusalah a dit : i++ increments i, i+1 returns i+1 If he doesn't want to increment i, he has to just use i+1 |