« first day (2414 days earlier)      last day (2528 days later) » 

12:00 PM
This room was placed in timeout for 1 second; PANINI BREAK!!!
 
Ye that should be a thing
 
That was a thing
For 1 second
 
@KamilSolecki I just like panini's lmao
 
This room was placed in timeout for 2 seconds; Panini break!
Oh right!
 
This room was placed in timeout for 3 seconds; Panini break!
Kappa
 
12:01 PM
I wonder what non-RO's see during a timeout
@Kieran nice try
 
heh
Thats all i see
actually
sec
 
You don't get kicked out or anything?
 
nein
 
nice
 
it's like when you get chat banned
 
12:02 PM
Nah it just gets frozen with a message in the middle as far as I remember
 
you just don't have an input
 
wee see this
 
I tested with Cap before in the sandbox
 
I just saw this tbh
 
nice.
dark theme
👍
 
12:03 PM
Is it rlemons theme?
 
yes
 
Saw it on your gist
 
First extension i installed on this new machine
 
@rlemon
 
I made a thingy that should kinda allow me to auto dark theme other websites.
 
12:05 PM
orly
pix/link
 
it's not perfect..
 
Sunglasses?
 
lel
Non-perfect Sunglasses*
 
NOPE
 
12:06 PM
NOO
again
 
Again fuking friday afternoon
 
wait wat
 
oh I thought it was thursday
 
12:07 PM
@Kieran that is main 'auto-darkened'
images are broken, because I replaced the sheet with my own so relative links don't work.
 
rlemon your monitor is tall
 
Well that still looks quite nice tbh @rlemon
 
also @rlemon footer.
 
who gives a fuck about the footer
 
12:08 PM
yea. it's not perfect.
 
footer? I barely knew er
 
Past tense? ..u do it manually?
 
@KendallFrey ;)
 
I inverted the main sites colours then matched them to a color pallet
 
@KamilSolecki the footer needs to be noticable, otherwise people will just go back to not looking at it
kappa
 
12:10 PM
[footsie](nickdugger.com)
NO
 
Dammit @KendallFrey you got me all excited. My It's happening sense started buzzing.
 
6/10
you didn't even comment on me using colour and color in the same sentence
 
@rlemon oh my god.
That is litterally amazing
 
12:12 PM
I'm half murican, so that makes sense to me
 
that amuses me a little
 
@Squiggle the paintjob or the fact that Kendall is half murican? :D
 
@KendallFrey Does that image come from some step-by-step guide?
 
the amusing image
 
@hilli_micha idk... google images?
 
12:13 PM
@rlemon I was expecting rebecca black, but it was loading so I changed tabs. Then I got scared cause of full-blast music. Im dumm.
 
Because it seems like the process would be pretty freakin' simple. 1. Find Wood. 2. Paint Wood.
 
No you missed the most important steps
 
@hilli_micha It's actually a bit infuriating because they didn't find a 7 plank pallet so they had to add a color to the spectrum
 
@KamilSolecki It took me a second to realise what was happening lmao
 
Buy paint, make sure paint you bought is different colour each, realize that you took the wrong color paint and now you have to return it
There is much more work involed.
 
12:15 PM
@Kramb Oh yeah! They had to add freakin Cyan to the mix.
 
people don't have a personal paint stock?
 
Oh, okay, let me add all the steps. 1) Wake up that day. 2) Hit 'snooze' every 9 minutes for two hours. 3) debate on whether another day alive is actually worth it.
 
I have a personal 3D printer filament stock
That's about as colourful as my day gets
 
I have a personal colorful socks collection
black, white and blue
 
If your 3D printer fillament stock is anything other than black, you're too vibrant for me man .
 
12:17 PM
@hilli_micha Black, white, red, orange, yellow, green, and blue sitting on a pile right now
 
I've got ... idk.. 20? cans of paint. like 5 spray bottles, 5-6 stains, and a bunch of other wood finishes.
I've got problems.
 
Well if you are talking about wood paint
 
I've got 4, 5 gallon cans of paint sitting in my garage right now.
 
10/10 would paint
 
I think @rlemon is banksy
 
12:18 PM
There is about 50-100 different colors behind the wall to my right.
 
I lied, my day gets colourful when I run integration tests. Red everywhere.
 
is where I go when I want to brighten up my day
 
lmfao, yea and ReSharper adds color to my life :P
 
is where I go
 
the brightens up my room, not my day
checkmate atheists
 
12:20 PM
ha, jokes on you, all the light switches in my home are connected to the garbage disposal.
 
ftfy
 
Need light in the bathroom? Garbage disposal.
 
fun story about light switches. I've lived in my home for almost three years now and my SO just noticed there was a switch in our downstairs livingroom
 
Hello guys i began to learn C# for using it for Unity
 
!!afk
 
12:21 PM
@rlemon You laugh, but I have 3 light switches by my front door and I only know what one does.
 
From the Yellow Book by Rob Miles
 
@rlemon you no helpful
 
I was experimenting and fell on something like this:
 
@samjoe im sorry about asking, but which yellow book?
 
12:22 PM
@KamilSolecki The one by Rob Miles, duh
 
Curious George books are typically yellow...
 
Hi Guys :)
public class RestClient<T>
    {
        private const string WebServiceUrl = "http://localhost:63615/api/customerdetails/";

        HttpClient httpClient = new HttpClient();

        public async Task<List<T>> GetDataAsync()
        {
            var json = await httpClient.GetStringAsync(WebServiceUrl);

            var taskModels = JsonConvert.DeserializeObject<List<T>>(json);

            return taskModels;
        }
    }
How can I unit test this one? :)
 
@rlemon noice facepole
 
@KamilSolecki rlemon is afk.
 
12:24 PM
you tell him cap
 
@CapricaSix no hes not
 
Can i post code here.. its small 5-10 lines
 
!!welcome @samjoe
 
@samjoe Yes, just make sure it's formatted
 
@@samjoe Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
12:24 PM
oh shit
 
this wat
 
nice.
@ndugger see that!
this is JavaScript chat now
we won!
 
Oh it was formatted
 
@ndugger make RO of Javascript Chat now
 
12:25 PM
@samjoe press ctrl + K
 
@samjoe ctrl+k
 
problem with ctrl + k is it toggles the formatting
so if it was there, it is removed.
so just press it a bunch of times and hope for the best
 
using System;

class Test2
{
	static void Main()
	{
		int x;

		Console.WriteLine("Enter Float: ");

		x = int.Parse(Console.ReadLine());
		Console.WriteLine("x = " + x);

		Console.Read();
	}
}
Sorry I removed earlier one..
 
any ideas guys how can I unit test it? :)
 
If I input 5.6, it says FormatException was Unhandled
 
12:28 PM
5.6 is a float, not an int
 
make x float or double
 
or decimal ;)
 
or string
 
So int cannot take 5.6
 
or dynamic
 
12:29 PM
integer is for whole number values only
 
@samjoe You do know what an integer is, right?
 
int is whole number @samjoe :)
 
Yeah I know that, but why does this work
 
What does
 
int x = 5.6;
 
12:29 PM
+1 for dynamic
 
because int is for whole number only @samjoe :)
 
I doubt that works
 
well it forces rouding afaik
 
XD
 
I would prefer decimal x = 5.6M; though @samjoe :)
 
12:30 PM
> Compilation error (line 7, col 11): Cannot implicitly convert type 'double' to 'int'. An explicit conversion exists (are you missing a cast?)
 
Guys, what does "M" means again? ;p
 
@rlemon ye just tested it as well
 
in decimal haha
 
"Money"
 
It did round in one of the C languages
c++?
 
12:31 PM
@mark333...333...333 decimal
 
:D thanks @TomW @KendallFrey
 
Not gonna lie, I want to be BFFs with people who make sites like dotnetfiddle.
 
I don't. they'll probably ask for help
 
@TomW ye u were much halpful
 
12:32 PM
I'm lazy
 
Sorry it does not work...
 
@KamilSolecki halpful is my middle name
 
mines douglas
 
mines Piotr
yall dont have that one
 
@samjoe Did you change your parse as well?
 
12:33 PM
I'm trying to unit test this one but I don't know how
public class RestClient<T>
    {
        private const string WebServiceUrl = "http://blahip/api/customerdetails/";
        HttpClient httpClient = new HttpClient();
        public async Task<List<T>> GetDataAsync()
        {
            var json = await httpClient.GetStringAsync(WebServiceUrl);
            var taskModels = JsonConvert.DeserializeObject<List<T>>(json);
            return taskModels;
        }
    }
 
I mean why does this work:
int x = 7/5;
 
implicit rounding
 
we say 7/5 is float
 
still would not work
 
[TestClass]
    public class RestClientTest
    {
        [TestMethod]
        public void GetAsyncMethod()
        {
            // Arrange


            // Act


            // Assert

        }
    }
 
12:35 PM
@juanvan yeah it does
 
would if assignment of 7 happens before division
 
@samjoe it doesn't "work", it just doesn't error.
log x
it's 1
 
y
I agree with mr. lemon
 
woo woo woo Mr is stretching it, that's his dad
 
my dads a bum.
I'm the Mr around here.
 
12:37 PM
You wear the pants, he wears the beer?
 
@TomW W i mean x = 9/5 also gives 1 like in C++
 
exactly
 
@rlemon so such code is bad practise right
 
That's perhaps a questionable design decision in the language but it is the way it is
 
@samjoe lol, don't ask me I write js
 
12:38 PM
@samjoe change x to a float, and then change your equation to 9f/5f.
you'll see the difference
 
@samjoe I would say so, that kind of defeats the purpose of an integer anyway, since ints are non fractional numbers.
 
In js we don't have these problems
I wish we did.. but yea
 
Ye hopes and dreams of js people
 
I'd love for an int and a double in js
 
The hopes of a JS coder
 
12:40 PM
Tradeoffs
 
!!> make some java
 
@KamilSolecki "SyntaxError: missing ; before statement"
 
also is something like this good?

`int x = int.Parse(Console.ReadLine());`
int x = int.Parse(Console.ReadLine());
 
Better to use try parse if you're receiving input from user.
 
^ If the user has control, they might input something like 9/5 and get a wrong result or "Banana" just to make you hate yourself.
 
12:41 PM
I hate OUT so much though
 
Yeah it happened in my case..
 
So some sort of measure to ensure that the user is actually giving you an integer.
 
var i = 9/4; = 2
var i = 9f/4f = 2.25
have to spell it out
 
9/4f would also = 2.25
 
I was thinking about something else, that does not work with properties before sorry have not had my caffeine yet this morning
 
12:44 PM
Thank you guys for all the help!!
 
Console.WriteLine("Enter Float: ");
int x = 0;
bool xIsInt = int.TryParse(Console.ReadLine(), out x);
Console.WriteLine("x = " + x);
That's what we mean @samjoe
 
didnt you mean an If statement as well? @Kramb
:D
 
basically. except you don't use xIsInt..hopefully he gets the idea
 
we have to check if xIsInt is true @Kramb
 
clearly you don't have to* ;)
 
12:45 PM
if (int.TryParse(Console.ReadLine(), out x)) {}
 
@KamilSolecki hahaha, oops. Man my head isn't on right this morning. You can tell it's Friday.
 
what is this out x ?
does TryParse return only True and False
 
why don't you read a book on programming?
 
it means that, if the Console.ReadLine() is an int, set variable x to the value. If it's not an int, leave the value of x alone.
 
Yeah reading it but its too slow.. will try to read it
 
12:47 PM
@samjoe tryParse returns bool, true if parsing succeeded and false if it didnt.
out allows it to pass a value back after parsing
 
@ABuckau He is reading, he just asked for clarification
 
no..
 
@ABuckau ahh yes, might I recommend the classic 'Hop on Array.prototype.pop'
 
you may.
 
TryParse will return a bool, but also modify x via the 'out' parameter. It's a method to kind of make sure what you have makes sense.
 
12:49 PM
in C# are True and 1 equivalent as in c++?
 
No
Not in the sense of bool y = 1
read that
 
They are not exactly equivalent, but if you do a bool check with a value > 0, you will get true
I think @KendallFrey has a post on that topic
 
Seems like it'd leave a lot of doors open to ambiguity to rely on ints for true/false conditions.
 
@KamilSolecki You still can't do that
C# is too strongly typed
 
I've never seen it in practice though, so I can't say for certain.
 
12:53 PM
anything != 0 is 'true'. how much ambiguity would that leave?
 
@KendallFrey oh boy, I havent done that in such a long while that I remembered its possible
@ABuckau it is in c++
 
is what, ambiguous?
nvm, i see.
 
@ABuckau this:
int main()
{
  int x = 1;

  if (x)
  {
    std::cout << "YOLO";
  }
}
will run the cout
 
I do this thing where I ask questions to see what you'll say...not because I don't know. But thanks for clarifying.
 
-_-
 
12:57 PM
Whatchu doin Confucius?
Askin riddles just to get a rise.
 
hilli said "
Seems like it'd leave a lot of doors open to ambiguity to rely on ints for true/false conditions."
instead of saying "I think you're wrong" ...i gave him a chance to explain instead :P
 
I won't get offended if you think I'm wrong.
If I'm wrong I'm wrong, my feelings are irrelevant.
 
no rise intended. Just trying to save myself a little embarrassment incase I was wrong..
 

« first day (2414 days earlier)      last day (2528 days later) »