« first day (2387 days earlier)      last day (2561 days later) » 
00:00 - 18:0018:00 - 00:00

user7819783
6:01 PM
Do I have to use string.Compare for this?
 
Not if you want to compare by length
 
user7819783
Hmm, not sure where to begin with this
 
@LasseV.Karlsen Hi, how are you?
 
Good, and you?
 
user7819783
I should start with making strings out of my 4 elements, and then use stringName.Length in some for loop right?
 
6:05 PM
@LasseV.Karlsen I'm Fine
 
user7819783
6:15 PM
Whats wrong with using Array.Sort(myArray);? why do they force us to use bubblesort? :(
 
I don't know, what is wrong with using it?
 
user7819783
I have no idea, seem to work like a charm for me
 
Then what is the question?
Is this school work or similar?
 
user7819783
Yes it is, they tell us how bad bubblesort is and some consider it shouldn't be thought to students, and then they say we are going to work with it :)
 
bubblesort should absolutely be taught as part of a programming class
 
user7819783
6:21 PM
Hehe well there you go, we are beein thought bubblesort, or more like supose to look it up on the internet
 
user7819783
6:37 PM
So my bubble sort is working, but if my array is not filled it craches, is this normal or am I doing it wrong?
 
If it crashes, it's because of how you wrote it
bubble sort isn't a program, it's an algorithm
 
"Not filled", what does this mean?
 
I don't know why you'd want to sort an array with empty elements though
 
user7819783
This is my code,
 
user7819783
for (int i = 0; i<myArray.Length - 1; i++)
{
for (int j = i + 1; j<myArray.Length; j++)
{
if (myArray[i].Length > myArray[j].Length)
{
string temp = myArray[i];
myArray[i] = myArray[j];
myArray[j] = temp;
}
}
}
 
user7819783
6:39 PM
Not filled means some elements are "null"
 
Well, if that's a case you must support you should change your code to handle it.
 
user7819783
@KendallFrey So I should add an If statment that restricts user from sorting unless the array is filled?
 
I don't know, you're the one in charge
Just make it do what you want
 
You need to decide what you want to do
For instance, you could sort all null elements first, or last, or as you say stop the sort altogether
 
user7819783
Well, I'm not sure what they are asking of me, gotta turn this assignment in tonight, can't ask teacher until monday
 
6:42 PM
Which version of C# are you using, do you know? Or Visual Studio?
 
user7819783
Visual Studio 2017?
 
Is that a question?
A simple fix for your program would be this:
if ((myArray[i]?.Length ?? 0) > (myArray[j]?.Length ?? 0))
(x ?? 0) means: if x is null, use 0
x?.Length means: if x is null, return null, if x is not null, return x.Length
so this: `(myArray[i]?.Length ?? 0)` means this:
if `myArray[i]` is non-null, return it's length, otherwise return 0
 
user7819783
Never seen this in my short period of education, got to try it out :) thank you!
 
If you haven't seen it, perhaps it is not safe to use it, would your professor ask questions about it you can't answer?
If so then I would add if-statements instead
 
user7819783
Yeah I think that might be the case, probably should use the if statement so I can defend myself
 
user7819783
6:49 PM
But your solution worked like a charm
 
7:02 PM
@KendallFrey you still online?
 
kinda
 
Had a few questions...
If yaaaa don't mind :S
 
Don't wait for me, just ask the questions
 
So, I'm planning to move to Toronto once I hit the 5 year mark (experience), do you have any insight on what the job market is like for C# devs? More specifically (Asp.net Core MVC etc.)...
 
Not really
 
7:05 PM
I'll be moving in 2019 so I guess its a long shot asking now -___-
 
I imagine it won't be hard to find a good job
 
Well, it was worth a try!
I agree just worried! I plan on going there on my own looking for a good job and then bringing over my wife and kid...
Hopefully the market is as good as people claim ...
 
7:58 PM
@MrSheriff .
 
@JABFreeware ..
 
@MrSheriff ...
@MrSheriff i dont like your name
 
8:13 PM
@JABFreeware I don't like your name either.
 
bloop
 
@MrSheriff at least mine is unique
 
@JABFreeware you've got a point dammit!
 
i had some other good ideas - instead of spending food to make units, you just make units, and if you don't have enough food to support them ppls health gets affected
 
@SteveG nice. and dont start with 2 males or 2 women
 
8:15 PM
for non-forest maps, like desert, you could have cliffs and stuff where the ppl walking on the bottom can't see units on top, so you can still set up ambushes and shit
lol
 
aoe would do that lol
 
i don't think it did
 
What the hell are you talking about?
 
i'm actually like, 99% positive you could see on top of cliffs if you were on the bottom, but theres always that 1%
 
GTA Vice City.
 
8:16 PM
age of empires
 
@SteveG the 2 same gender you moron
 
oh
 
and yes the height ambushes are good
 
yeah i'm a moron
lol
 
Ah right makes sense!
 
8:17 PM
i got zoom working, you wanna see?
soi
thats not the clip board you're looking for
 
rar is beneath me
i wont do it
 
:p
all the same shit
 
i sees
i was thinking
how detailed are we going to make the building builder? Like... can you design the shape/height/size of the window openings? Is it going to be like a 3d designer where you can do just about anything?
what if we made it so you could sell designs
in the community
and share them
 
idk if i want to do that or not
 
within civilizations
 
8:22 PM
yeah that'd be cool
i had another idea, well, more like your idea, but i tweaked it
 
oh?
 
you know how you wanted to do like spells and shit when you're possessing somebody
i think that might be pretty cool, and whatever battle you were in, you would give your troops a buff, and you could unlock spells/weapon swings / perry via research tech
 
that wasnt my idea lol
 
it forces you to play the important battles in first person, if your presence is a 'religious' feeling or something that gives your nearby troops additional stats
 
I said an element of horry/scary shit not spells
 
8:24 PM
well, not spells
 
i dont want this to turn into a harry potter game lol
 
like, if you're an archer, like 'shoot', or 'scatter shot'
 
ohhhh
i sees
i likes
 
or if you're a sword dude you could block, parry, different swing types
is that too detailed for the game you think?
 
!!def parry
 
8:25 PM
@JABFreeware That didn't make much sense. Use the !!/help command to learn more.
 
!!definition parry
:(
 
basically blocking enemy sword strikes with your sword
or, not blocking, but pushing their sword out of the way
deflecting? idk how to describe it
 
ohh
yes
yeah I like it that would make sense
 
i mean you could research 'training' types that teach different abilities, in addition to researching better tech like steal vs copper swords, ect
 
I mean it helps immersion if there is a game logic that explains why
instead of just zoom in and x happens
 
8:28 PM
yeah, i dont want ppl to just watch, i want them to participate
 
yes
but in first person would you still be able to fight like YOU kill someone?
 
and it forces you to make a choice: which battle is most important, because whatever one i go to, it'll really help win that battle
@JABFreeware i think so
you would just kill ppl manually, instead of automated ai stuff
 
yes
 
1 2 3 4, like WoW
 
havent played that
yes yes I know
 
8:30 PM
gotcha
 
whats 1 2 3 4
besides numbers
 
you press 1 for a sideswing, you press 2 for a penetrating jab, you press 3 to parry in front, 4 to parry behind, 5 to just swing the sword in a circle, so you could fight multiple ppl and be a bad ass
those are just random crap i came up with on the spot with no thought into them, but you get the idea
 
@SteveG I dont like using numbers thats dumb but dif keys yes
 
yeah, keybindings are trvial, but you get the idea
 
1234
 
8:34 PM
lol
 
as long there is jump
I am happy
 
lol alright
 
user7819783
key numbers is the way to go
 
YOU SHUT YOUR MOUTH
 
idk, i always change my keybindings from 1,2,3,4,5 to q e r t f g c v x
 
8:35 PM
^^^^^^^^^^^^^^
IM HUNGRY
CAPSLOCK IS STUCK
 
user7819783
Naah you guys don't know what I know... numbers is the way to go!
 
stop hitting on me
@SteveG im going to do taht tutorial tonight/tomorrow
I had to work most of today :/
 
thats cool, i was going over it again today because i forgot some of it, forgot how long ti was
 
@SteveG i dont forget anything
 
im jealous
i have to do it a few times to remember
 
user7819783
8:45 PM
Rainman himself
 
@SteveG i may have exaggerated a bit but not a whole lot. People commonly are surprised at how fast i pick stuff up and remember detail.
 
unacceptable
:p
 
its been proven that the smart people lie
so...
 
dumb ppl lie, they just don't know it #trumpsupporters
 
you're right I should have clarified
smart people make smart lies
 
8:50 PM
lol
:p
 
trump supporters are not stupid though...well a lot are. some are just misguided
like religious people
like a cult
 
yeah
 
not sure I could work well with a trump supporter
 
user7819783
Well, Trump is better option than Hilary
 
wrong
 
8:58 PM
tenakey is just trolling you bro lol
 
user7819783
God knows what the russians got from her e-mail
 
user7819783
Naah If I were to vote between those two, I'd vote for Trump the man
 
trump talks about classified material in public at his florida place
wheres all the outrage
lol
flynn got in trouble when he was still in the service for giving classified material to the afghans, no outrage? darn
 
@SteveG moron(s) are in our midst?
 
9:01 PM
lol i dont think his supporters are morons, just.... misguidedly passionate
passionately misguided? screw you english
 
@SteveG have you seen the_donald on reddit?
 
no i haven't
 
welcome to the cesspool of trump brainwashing
 
lol
crazy.
just crazy.
 
23 hours ago, by Kendall Frey
yesterday, by Kendall Frey
user image
 
9:07 PM
@SteveG i go there for comedy sometimes
 
pervert
 
In code-first Entity Framework, I don't exactly understand "alternate key" thingy. Looks like it allows two fields to be a key, but how do you make it work when one of these two fields is a foreign key?
 
@SteveG you have no idea
 
lol
i don't use composite keys, can't help you
 
just random thought
 
9:12 PM
your brain must have experienced a ridiculous amount of drugs in its life
 
@JABFreeware it’s the key to procreation…
 
:p
lol
 
@SteveG just a few
...at a time
 
haa
h
+
 
wtf
is that
 
9:15 PM
i forgot an h and didn't want to move my left hand back to the keyboard
so i +'d an h
 
@SteveG your left hand is being the reader?
 
?
imtired
 
4 mins ago, by JABFreeware
speaking of keys...what if your dick could be a key? I feel like it could be like a fingerprint ya know?
that would need a reader
@SteveG clera now?
 
www.iwould.need.to.well.i.should.go.get.some.food.im.thinking.like....man.idk.ma‌​ybe.i.should.get.steak
 
................
@SteveG //////////////////////
 
9:21 PM
this,,is,,your,,brain
 
oh life?
on
 
yesh
 
9:41 PM
@SteveG yes*
 
h
+
 
somebody needs to go to outback with me but everybody is busy
 
9:58 PM
@SteveG ill come
 
user7819783
Yeah u guys can brokeback :)
 
brokeback? wtf are you from?
 
user7819783
brokeback in outback, I thought that was funny :)
 
tenakey doesn't like you i don't think
 
user7819783
He told me to shut my mouth :(
 
10:15 PM
because you said bad thinigs
 
user7819783
I'm a nice guy!
 
i'm not
 
lol @Tenakey you flagged that
 
10:30 PM
No, I did.
 
im not against the flag, just thought it was funny
either way
 
This room is kinda deteriorating, if we want people to come here and chat we need to stay civil.
 
would you like to be a RO to help?
 
I'm not here enough so that wouldn't be a point, that's why I'm no longer an owner of this room.
 
gotcha
man everybody is busy and all i want is to go get a steak
depressing saturday evening
 
10:53 PM
@SteveG If it helps, mine is less depressing
 
user7819783
11:08 PM
Now I'm curious to what was flagged
 
11:47 PM
oh, jab said something rude
 
00:00 - 18:0018:00 - 00:00

« first day (2387 days earlier)      last day (2561 days later) »