« first day (792 days earlier)      last day (4172 days later) » 

9:07 PM
Where's @Fred's quick-meme of "An array is not a pointer"?
 
ohai
 
user142019
@Mysticial did you mean this one? (by me)
 
user142019
Jul 28 at 19:34, by Radek Slupik
user image
 
9:08 PM
@Zoidberg'-- No, Fred had a better one.
 
user142019
ohlol
 
I'm talking about this question. Although it's not directly related, it reminds of the one Fred posted a while back.
0
Q: not passing rows count of 2d arrays to a function in c

Mutasem Ismaeil Amayrehcan i do some calculation using the sizeof operator in c to get the rows count inside a function who receives as a parameter only a two dimensional array without any information about rows or columns count in this passed array? void main(void){ int A[5][6]; int columnsC = sizeof(A[0]) / ...

 
user142019
Stupid Google Chrome no I don't want to translate you piece of junk.
 
sbi
@yetihehe I have seen him — briefly. Since then he's locked away in my killfile, and when I see you guys interact with him, then I keep thinking that's where he belongs.
 
You're right, I'm going to sleep. Good night.
 
9:18 PM
I am a bit new in c++. Can you please post the code here. Every thing you mentioned seems unfathomable to me. :) — HardCode 20 secs ago
^ oh well. that seems like a bottomless pit then
 
user142019
> accept rate
 
I do accept rate
> Solar-powered 3-D printer prints glass from sand -- here
 
user142019
Oh wonderful homework. Peer assessments. The most useless documents in the world.
 
user142019
I prefer peer assassinations.
 
user142019
What idiot thought this was a good idea.
 
user142019
9:30 PM
I can only lie otherwise they'll suspend me for scolding.
 
If in the cmd prompt I do C:\>"myprogram" <ENTER> It must strip the quotes off to call myprogram but then does it pass "myprogram" with quotes to myprogram for GetCommandLine() ?
 
@Zoidberg'-- Peer assessments?
 
user142019
@Insilico yes. You have to fill in a form. rating your team members.
 
user142019
Which are all noobs.
 
'cos since it passes it with quotes to myprogram, then it looks like it's not as simple as stripping them off. it seems to put them back on again
 
9:31 PM
@Zoidberg'-- 10 10 10 write fancy english words with a meaning close to "good job" and then move on.
 
user142019
s/english/dutch/ :P
 
user142019
And no, I'm not going to say they did a good job when they didn't.
 
@barlop Why not use argv and argc?
 
user142019
The code they wrote is terrible.
 
Oh.
Well if you're on that point that slam them.
Write a 2-pager full of eloquent ass-rape of their code and pride and hand it in with a satisfied, sadistic smile.
 
9:32 PM
@Insilico well, i'm wondering what happens before that. see, argsv would use GetCommandLine()
 
@Zoidberg'-- Did they at least try to not be dumbasses?
 
user142019
I told them to read the style guide and yet they cannot even indent their fucking code.
 
@Zoidberg'-- Sounds like 3 pages of ass-rape.
 
@barlop Right, but the C runtime does some extra processing on it to give you argv and stuff.
 
user142019
heh :P
 
9:32 PM
Or are you interested on how the parsing happens?
 
user142019
The parsing is done by the shell.
 
@Insilico yes but i'm not looking at argsv, i'm looking before that!
 
user142019
At least, in any sane OS.
 
@Insilico because i'm curious
@Zoidberg'-- i'm talking about the windows case.
 
user142019
Oh Windows. I don't know shit about Windows.
 
9:34 PM
Damn. Half-Life 2 is one hell of a game.
 
@EtiennedeMartel Yes, yes it is.
And there will never be a Half-Life 3. Ever. :3
 
4chan wouldn't lie to me.
 
@barlop There's probably a document somewhere that shows how Windows starts processes and pass the command line parameters, but I can't find it right now.
 
@Rapptz lol
 
@Zoidberg'-- So, that makes it un-useless. Actually, I think it is a great idea to do in a CS-related course. It enables critical thinking, team-building skills and prepares you for real-life work situations. I can tell you, this is a skill you will want to have mastered.
 
9:40 PM
@Rapptz What.
 
user142019
My standard are too high for the school.
 
True. I'd wager they are too high for you too. But that doesn't make them bad
 
user142019
:P
 
evil edit
 
It just makes them... misguided.
A little off.
So I finally settled on a great Game idea.
It's actually extremely silly.
 
user142019
9:41 PM
Even in class I sometimes have trouble resisting calling people idiots. xD
 
Nope. It makes them unrealistic, but helpful if you manage the other skills too
 
I wish I could just
Lift a magic wand and SUMMON programmers to my side.
And just, code stuff.
Like He-Man, but with Bits.
 
@Zoidberg'-- So, that particular kind of control is always an important skill in life. Actually, I'm quite sure you can handle the urges quite well. As long as you want to
 
user142019
I wish I could just lift a magic wand and have people indent their code properly and follow the damn style guide.
 
@Zoidberg'-- Just make them use an autoformatter. :-P
 
9:43 PM
What language were you coding in?
 
@ThePhD Wrong attitude. You should wish for the magic wand that could just summon TIME to your side. So you can complete all that awesome code. Yourself
 
user142019
@ThePhD Java. :'(
 
@Insilico It's what I apply to SO. I use astyle on many a post. Most often, turd polish
 
@sehe That is actually a better idea. Then when Robot yells at me for reinventing the wheel, I can just raise my wand and slow down time and by the time he's done yelling at me: "But I'm already done. :D"
 
@Zoidberg'-- Oh that. Well, in their defense, a proper editor probably would make indentation less of an issue
@ThePhD Mmm. I'm pretty sure he has such a wand. As does Luc D.
 
user142019
9:44 PM
They use the Greenfoot editor.
 
NetBeans and Eclipse might force indenting or do it automatically.
... Greenwhat?
 
@Zoidberg'-- Poor chaps. God have mercy on their souls
 
user142019
Its default indentation scheme follows our style guide.
 
user142019
The problem is,
 
OH GOD NO NOT SOMETHING ELSE LIKE ALICE FOR CODE AAGH THE NIGHTMAARES.
 
user142019
9:45 PM
they still get the indentation wrong because for some reason (and I really don't know why) they suddenly use three spaces somewhere and somewhere else five and oh God what the fuck.
 
Greenfoot is an interactive Java development environment designed primarily for educational purposes at the high school and undergraduate level. It allows easy development of two-dimensional graphical applications, such as simulations and interactive games. Greenfoot is being developed and maintained at the University of Kent and La Trobe University, with support from Oracle. It is free software, released under the GPL license. Greenfoot is available for Microsoft Windows, Mac OS X, Linux, Sun Solaris, and any recent JVM. History The Greenfoot project was initiated by Michael Kölling in ...
 
user142019
At least Greenfoot doesn't fuck up the line endings and nobody uses tabs. :^)
 
Xeo
@sehe Yeah, but normally only to their customers. :P
 
> with support from Oracle
 
user142019
 
Xeo
9:46 PM
And I was just standing outside the Starbucks and leeching.
 
user142019
lol @sehe that gif uses 12% CPU in Google Chrome in Linux.
 
@Xeo Oh hey, you remerged
 
user142019
In Safari in OS X it doesn't even use 0,5% CPU.
 
@Zoidberg'-- Is this a college or high school?
 
user142019
@Insilico college.
 
9:47 PM
Using both isn't a bad thing.
 
Xeo
@sehe Yeah, this time from a McDonalds hotspot.
 
user142019
@ThePhD it is. Use spaces.
 
@Zoidberg'-- This a freshmen class?
 
user142019
Never use tabs; they fuck up alignment.
 
user142019
@Insilico yes. :(
 
9:47 PM
I don't see how.
 
@Xeo Sucker :) Also says a lot about your food regimen
 
@Zoidberg'-- I guess I can see Greenfoot being useful.
 
user142019
foo(bar,
    baz);
// use tabs? sorry bro
 
Xeo
@sehe Nah, I'm only at the McDonalds for the wifi. :P
 
Everyone can configure their tabs to be whatever. If someone always uses spaces for indenting, then it's of no problem for them to flick their tab to be the size they want.
 
9:48 PM
@ThePhD ... not much experience...
 
user142019
Also tabs aren't the same width on everybody's editors, which is terrible.
 
Besides, I don't need exact matching spaces to line my arguments up. I'm not that OCD. It just has to be around the argument.
 
@Xeo Sucker²
 
Xeo
@sehe Why? D:
 
user142019
If you impose 80 column limit (which is sane except in Objective-C), and somebody uses two-space-width tabs, you're fucked.
 
Xeo
9:49 PM
@ThePhD You suck.
 
.... Who would ever impose an 80-column limit? ~_~
 
user142019
@ThePhD What Xeo said.
 
@Xeo Nothing really. Just fell like stressing that is pretty inconvenient these days to go without proper internet
 
:c
 
user142019
I always impose 80 column limit except in Objective-C.
 
9:50 PM
@ThePhD I do (or something similar) so I can put up two documents side by side on my 1080p monitors without horizontal scrolling. Useful for doing diffs.
 
user142019
Because in Objective-C it's undoable.
 
@ThePhD Nobody needs it. You can basically :%s/[ \t\r\n]/ /g anyways
 
user142019
Since there are method names and identifiers longer than 80 characters. :P
 
Xeo
@sehe Well 'scuse me for just having signed the contract for my flat on Friday.
 
user142019
@sehe what does the percent sign do? (I'm learning Vim.)
 
9:51 PM
@Xeo :) "Nothing really" <- note
@Zoidberg'-- full document line-based range (equivalent to :1,$, really)
 
user142019
@sehe oh okay. :)
 
Xeo
@Zoidberg'-- So the same applies to Java? :P
 
I will use both Tabs and spaces. The editors I have can take out the horizontal scrollbar and wordwrap, but in most cases - even when double-checking side-by-side code, I just tab my things over to the next line anyways. It works out well. If I need exact alignment, I tack some spaces onto the tabs, but I rarely do that, because it's way too OCD. I'm not here to make my code look super-amazing, as long as it's readable at the end of the day. :c
 
I once had this teacher.
 
user142019
9:52 PM
@Xeo muh I don't want to ever write Java anyway so I don't really care.
 
user142019
There is no reason ever to use Java.
 
user142019
There is a reason to use Objective-C which is OS X and iOS apps, unfortunately.
 
Xeo
@ThePhD You know, your source code is going to look totally fucked up on anyone else's editor.
 
user142019
APPLE Y U NO USE HASKELL FOR COCOA AND COCOA TOUCH.
 
Xeo
Use either tabs (no, don't, really) or spaces but don't fucking mix them!
 
user142019
9:54 PM
Use spaces.
 
user142019
Tabs are ridiculous.
 
user142019
I don't even see why the tab character exists.
 
Tabs are sexy.
 
user142019
It's terrible.
 
@ThePhD You'll find out one day, about version control and perhaps other things, like tabular editing
@Zoidberg'-- Teletypes.
 
9:55 PM
@Xeo I didn't do much mixing in the first place, so tabs always work for me.
I mean, as long as someone doesn't make their tabs 1-space sized, then it'll display fine. ._.
 
user142019
@sehe you can just align with spaces.
 
A lot of the control characters (EOL, TAB, EOF, etc.) were intended for the teletype era
@Zoidberg'-- ^
 
Xeo
Whatever, this is just like driving against the wall with 100km/h.
 
user142019
Teletypes didn't have spaces?
 
Xeo
@Zoidberg'-- control characters.
 
9:57 PM
They're useless now. Cf. CR/LF. Who uses 0x0C?
 
user142019
Oh.
 
user142019
What did tab do then?
 
Bandwidth conservation, standard layout
 
user142019
oh bandwidth of course
 
user142019
IT IS 2013 TABS MUST DIE :D
 
9:58 PM
So you could potentially have standard forms with preprogrammed fields identified by tabulation stops
 
Xeo
Tabs considered harmful.
 
@Zoidberg'-- They won't. You can just :se et|retab
 
user142019
@sehe and automatically fuck-up all diffs. :')
 
@Zoidberg'-- Then get non-shitty diff software. Or learn how to use it right.
 
Xeo
Hm, crap. There's no supermarket around here which is open on a Sunday till midnight. :(
 
user142019
9:59 PM
I use git diff. I don't know what software that uses.
 
@Zoidberg'-- 2013 really? Damn how long was I asleep
 
@Zoidberg'-- Au contraire. Diffs should be done -Ewbu (or --ignore-all-space) anyways. You can have the tab-conversion in a pre-commit hook
 
@Xeo welcome to germany
 

« first day (792 days earlier)      last day (4172 days later) »