« first day (1491 days earlier)      last day (3475 days later) » 

10:07 PM
@FlorianMargaine I don't think C# encourages immutable objects, as much as discouraging mutable value types
 
C# is bad at immutability tbh.
 
oh, I thought it was encouraged and well supported
 
99% of types are not encouraged to be immutable
 
my bad then
 
And there's not really any intrinsic property of immutability
 
10:13 PM
Some types are, and you can operator overload.
 
@BenjaminGruenbaum 99% of the time, those are value types
 
So in C#, myVec.reverse() would just by -myVec and myVec.add(otherVec) would just be myVec + otherVec
 
@KendallFrey what's a value type?
 
@FlorianMargaine ints, doubles, dates, etc.
 
10:15 PM
and in your example, vector
 
(presumably fixed-size, nothing like C++ std::vector)
 
@SimonSarris around?
 
this is fun as long as you only press right and left arrows codepen.io/MateiGCopot/pen/LEYBER
the rotation problem is harder than I thought
 
10:33 PM
@towc why isn't it super-smooth and why doesn't it react to my keypresses in Chrome?
 
@JanDvorak doesn't react to keypresses? Super-smooth?
 
The maze crawler, I mean
 
you have to be facing an empty block to actually move, and it has to be inside the map
by super smooth you mean that you have lag issues?
 
I am facing a long corridor. I tried both rotating and walking forwards.
It is quite laggy.
 
@JanDvorak when pressing for example the right arrow key nothing happens?
 
10:36 PM
I've tried the left arrow key
 
and nothing changed?
@JanDvorak are you sure you're focused on the frame and not on the code? try using the full view instead of the editor
 
@towc I did click into the result frame. Where is the full view link?
 
a goes backwards
 
Either that, or the input takes a really long time to register
 
10:40 PM
try with qw
 
@KendallFrey refresh page... that was dumb
 
Also, rotations shouldn't take several seconds to execute.
 
@JanDvorak should be instant?
you can move or keep rotating as you rotate
 
yeah - that's super convenient - except I won't be able to see the direction I'm logically facing for a few more seconds anyways.
 
@JanDvorak it might just be extremely laggy
 
10:43 PM
it is
 
on my machine it works pretty smoothly and seems fine to use... you know how to see your fps, right?
 
7.5
 
@JanDvorak dang...
I'm running at 60
 
running in 1024x600
- browser frames
 
oh, 880x558
ok, it's not like resolution it's extremely useful here, let me turn it down
 
10:46 PM
let me try a smaller widow
Yeah - it's smoother in a tiny window - but still takes several seconds to execute a movement.
Slightly tapping a key doesn't always register it, and if I hold it down - wheeee!
Now I went sideways because I thought it only registered my input as one turn left
Also, outer wall please
Buffering input leads to unexpected movement, not buffering input leads to a really slow crawl.
 
@JanDvorak just tap once and not hold down?
@JanDvorak ?
 
@towc doesn't always register
 
ok, adding walls
 
The visual frame rate is much better, but the input lag is still unacceptable
 
@JanDvorak sometimes if you turn first and only then go forwards and your turn lead to a wall, it may look like you were facing somewhere without a wall, but in the logics you're looking at a wall, it just didn't get there yet
make sure it's not your case
 
11:00 PM
It's not. It might be a crappy keyboard, though
 
could you check your fps again?
 
20
It's due to a crappy keyboard. Forward movement registers just fine.
 
oh, ok then
 
Still, it takes several seconds to perform a move. Not good.
Also, it looks horrible with this amount of upscaling ;-)
 
@JanDvorak you can edit the proportions on line 3, right now it's scaled 8 times.
just play around with them and see what seems balanced to you
 
Sim
11:07 PM
am i allowed to ask stupid question here?
 
Only smart questions, please
 
Sim
its not really stupid i just need help on using set timeout i need help on time
 
well then...
 
Rejected
 
Sim
@JanDvorak can i ask?
 
11:12 PM
@Sim YEAH
 
Sim
thanks
 
!!welcome sim
 
@sim Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don'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.
 
Sim
im trying to set time out after 12 seconds
i just want to confirm if my math is right 12000*60 ?
 
Nope, not right
 
11:15 PM
@Sim explain your math
 
^
12 seconds = 12 000 miliseconds
Now if you wanted 12 minutes...
 
Sim
@JanDvorak so can i use like 12000*60?
 
umm... wat?
 
How many milliseconds are in a second?
 
Sim
1000
 
11:20 PM
So how many seconds are in 12 seconds?
3
 
Sim
12000
 
There are 12 seconds in 12 seconds
 
Sim
sorry read it wrong
 
ooh, I love trick questions
 
It wasn't a trick question though
 
Sim
11:24 PM
@Meredith so if i was to write the time withing code do i still use *60 like for minutes or do i just use 12000
within*
 
"*60 like for minutes" - well, are you working with minutes?
 
How many seconds are in a minute?
 
Sim
60 seconds
 
How many seconds are in a second?
 
Sim
@JanDvorak i was working with minutes now seconds and 10 seconds
 
11:28 PM
If you wanted the timer to wait 60 seconds, what would you write?
 
Is this a real conversation?
2
 
Yep :/
 
Sim
i finally get it so its seconds * milleseconds= results
or minute * milleseconds= result
 
The result is in units of milliseconds.
 
11:35 PM
result = milliseconds
 
You convert seconds to milliseconds by multiplying by 1000
 
milliseconds = 1000 * seconds
 
Sim
ithats what i meant
 
seconds = 60 * minutes
 
Sim
if its minite then *60*1000
 
11:36 PM
What would 5 1/2 seconds be?
 
Sim
@KendallFrey thats tricky
but i will try
5500
 
It shouldn't be tricky
5.5 seconds is 5500 milliseconds
 
Sim
used google calc it helps
 
You can't do 5.5 * 1000 in your head?
 
Sim
@Meredith to be honest math is biggest enemy
i donot why but i never been really good with numbers
 
11:42 PM
What kind of education did you have?
 
Sim
no school
self taught
 
You never went to school, ever?
 
...
 
No college or no school at all?
 
Sim
nop
 
11:44 PM
Nop to what?
 
Sim
i started working at young age
i was like 13
 
But what did you do before that?
most 13 year olds know how to multiply
 
But you learn how to multiply when you're like 9
 
Sim
i grew up in small poor town and school was like 50 miles away most of ppl i knew they nver been in school including me
 
Honestly, if you are struggling with basic math; you should be working on that before you work on programming.
 
Sim
11:50 PM
and the schools weren't cheap you have to pay for uniform, books almost everything
 
Sim
@Retsam wow thank you so much
 
My brother was on the team for: teh_bucket.itch.io/bot-slugger (cc @SomeGuy )
 
Sim
thanks everyone :)
take care
 
basic math 2nd grade
 

« first day (1491 days earlier)      last day (3475 days later) »