« first day (3285 days earlier)      last day (1660 days later) » 
01:00 - 11:0011:00 - 00:00

1:37 AM
sup all
 
1:53 AM
Is it possible to write a notepad clone in C#?
(a good one that looks basically the same)?
 
i think so
isnt that plain text
 
yeah
a textbox doesn't seem sufficient though
 
rich text box
dont use just plain tetbox
 
ok, thanks
 
 
4 hours later…
5:52 AM
Hi
Can we use switch case to evaluate expressions using logical operators ?
 
9
A: Switch case in C# - a constant value is expected

iDevForFunYou can't use a switch statement for this as the case values cannot be evaluated expressions. For this you have to use an an if/else ... public static void Output<T>(IEnumerable<T> dataSource) where T : class { dataSourceName = (typeof(T).Name); if(string.Compare(dataSourceName, typeo...

136
Q: C# switch statement limitations - why?

ljsWhen writing a switch statement, there appears to be two limitations on what you can switch on in case statements. For example (and yes, I know, if you're doing this sort of thing it probably means your object-oriented (OO) architecture is iffy - this is just a contrived example!), Type t = t...

> cases must be a compile-time constant!
 
Thank you @nyconing let me try
 
Gooood moorniiiiiiing CeeeeeeShaaaaaaarp! Have you built anything new lately?
 
@Squirrelkiller your boat?
*bot
 
You built my bot? Noice, then I don't have to fix that mess :D
Nah I basically just started to understand how to even use that library.
 
5:59 AM
@karan use if () {} else if () {} ... instead
 
@karan Or use kotlin, that has expressions for everything.
 
@nyconing I know using if else but wondering If I can accomplish the same using switch case.
 
@Squirrelkiller neh! bad answer
 
I think, swtich case has an enhancement in c# 7.0
 
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' squirrelerinos!
 
6:16 AM
@nyconing doesn't work to me
 
@karan is literally the same as a switch. (?)
 
@ABuckau yes
 
apparently i misunderstood: what doesnt work?
 
public class Program
{
public static void Main(string[] args)
{
switch (Person.Age)
{

case Person p when p.Age<= 12:
Console.WriteLine("child");
break;
default:
break;
}
Console.ReadLine();
}
}
public static class Person
{
public const int Age=12;
}
I'm trying like this.
 
im unfamiliar with that syntax, sorry. i meant like nyconing said, use if/elseif
if the thing is constant, switch() doesnt make sense..
 
6:22 AM
@karan You can format your messages using ctrl+f before sending them. correctly showing indented code.
 
@ABuckau ohkay!
@Squirrelkiller : Thank you !
 
Good morning
@karan press CTRL+K to format your code :)
 
@HéctorÁlvarez yes! Thank you ! I was about to ask it again :)
public class Program
{
public static void Main(string[] args)
{
switch (Person.Age)
{

case Person p when p.Age<= 12:
Console.WriteLine("child");
break;
default:
break;
}
Console.ReadLine();
}
}
public static class Person
{
public const int Age=12;
}
 
also know you can edit your previous messages
 
@Squirrelkiller why is cap dead?
 
6:28 AM
Yes But for the previous I ran out of time to edit
So pasted again
 
also good'ay mr. hector sir
 
cuz rage against the StackExchangeMetaMachine
Buenos dias Hector
 
@karan try to paste your original code instead of repasting the previous one. As you can see it's not formatted
 
Pls explan
 
6:29 AM
@HéctorÁlvarez : okay
 
@karan Listen to Hector, not to me, he is righter than me. It's ctrl+k to format.
 
using System;
namespace ConsoleApplication2
{
    public class Program
    {
        public static void Main(string[] args)
        {
            switch (Person.Age)
            {

                case Person p when p.Age<= 12:
                    Console.WriteLine("child");
                    break;
                default:
                    break;
            }
            Console.ReadLine();
        }
    }
    public static class Person
    {
        public const int Age=12;
    }

}
 
Very good :+1:
Can we have :: style emoji for chat?
 
@Squirrelkiller TELL ME WHAT HAPPEND TO CAP YOU TWAT
 
who'd listen to a squirrel anyway. If you were right when karan was asked "How did you fix it" the answer would be "a squirrel told me"
 
6:30 AM
@Squirrelkiller : sure :)
 
The cylons wanted her back
 
ohayou
 
So you have no clue :<
 
@HéctorÁlvarez : lol
 
It's because of the SE meta tohuwabohu going on lately - AFAIK rlemon deactivated her in protest or something.
 
6:34 AM
tohuwabohu
That actually sounds kinda tasty
 
It is
dat tasty meta drama
 
no parsing for gifs
there we go
 
6:57 AM
@HéctorÁlvarez Alan Wake
 
@HéctorÁlvarez Wlan Aake
 
index [^1]
support at which c# version?
google the hell wont search the char ^
im angry
OHH index operator, => C#8.0
 
easy to remember: all the good stuff comes in c#8
 
7:21 AM
such as?
 
22 mins ago, by nyconing
index [^1]
 
pfft
 
switch expressions
 
switch with what?
 
hmm... ok
switch expressions is certainly an improvement
@Neil switch with results
var x = switch (...) {...}
 
7:32 AM
before C#8, switch was only a statement, like if/else.
Now it's an expression, like the ternary operator.
 
var x = results (...) {...}
 
iirc, the keyword is still switch
 
@Squirrelkiller pics or it didnt happen!
 
var text = switch (flag)
{
    case true:
        break "YASSSS";
    case false:
        break "Hell nah!";
}
 
var x = still switch (...) {...}
yes, I know. My humor is what it would be like if dad knew how to program
 
7:33 AM
before:
string result = "";
switch(someInt)
case 0: result = "zero"; break;
case 1: result = "one!"; break;
default: result = "something else"; break;
return result;
 
^ I probably made some syntax error and am missing a default branch, which I am actually not missing
 
Hey ! Good morning
 
after:
return someInt switch
 0 => "zero";
 1 => "one!";
 default => "something else";
 
no, b4:
switch(someInt)
cas 0: return "fck formatting";
cas 1: return "fck spelling";
cas 3: return "if you see kay, tell her i'm in the garden";
 
7:35 AM
before == switch statement
after == switch expression
 
why doesnt this code compile ? based on c#7x documentation this should compile ?
 
var text = flag switch
{
    true => "YASSSS";
    false => "Hell nah!";
}
 
link to docs or it doesnt compile
@Wietlol better
 
not quite yet?
 
Na I mean "this one is better than the one you posted first"
 
7:36 AM
@Wietlol which is really just an ugly version of flag ? "YASSSS" : "Hell nah!"
 
@Neil and?
 
@Sakthivel Why do you think you can go "Set", and why not directly assign it?
 
@Wietlol and what? Does everything have to have a point?
 
@Squirrelkiller I can directly assign it but im confused why it isnt working ?
 
yes
 
7:38 AM
may it will work in the visual studio ? .Net fiddler just having a bad day ?
 
@Sakthivel Why should it work? There's not method called "Set" in your class!
 
I heard BIC started selling pencils without the lead. I think they're pointless.
 
true. I am reading this c# 7 book by chris nagel and thats what he mentioned
In C# 6
private string _firstName;
public string FirstName
{
 get { return _firstName; }
 set { Set(ref _firstName, value); }
}
In C# 7
private string _firstName;
public string FirstName
{
 get => _firstName;
 set => Set(ref _firstName, value);
}
 
Dude
Set is still s method that has to be implemented
 
if it is a concrete method, why would he put it in a example
 
7:41 AM
stuff written in books may not always compile... that is why they are written in a book and not Rider
 
The thing that changed from C#6 to 7 is the expression body
 
yeah
i took it literally,sorry my bad lol
 
You took it absolute
When you should have looked at the diff
git gud
 
yes sir
 
bueno
 
8:02 AM
o/
 
whistle noises
 
º\
not sure if it looks like some dude with his head down, or an oversized nipple
 
8:19 AM
@HéctorÁlvarez you wanted to know which games required the middle mouse button.. Alan Wake
at a certain point, it is the only way to pull out a flare on PC
 
Interesting
but this button can't be bound to a different key?
This weekend I researched a bit more and it turns out most mice have trash wheel clicks
all manufacturers put extra care on making the steps noticeable, but most use a metal dome to shield the button instead of a proper mechanism
 
well yeah, of course you can map it, but you find this out in game and it becomes a sort of nightmare where you're pressing the middle key as hard as possible
I would have said my mouse didn't even have a middle mouse button, but it does work on occasion
 
Oh lol
I found a few mice with with 3 or more side buttons
 
the next one I buy is going to have at least a side button
 
mmoact games usually used esc, f1-12, 123456,wasd,qert,tab shift f,zxcv,and all buttons of mouse
*in combat
 
8:25 AM
check Dream Machines DM5 (which released last week), Razer Basilisk (the design the DM5 is based upon), and Roccat Kone Aimo (which I'm probably gonna buy)
If you want a dedicated MMO mouse, I think the Razer Naga Trinity is pretty much mandatory
There are other options, but none are as good IMO
 
Oh and I also bought a 3-pedal device so I can also use my feet to do certain stuff
 
@nyconing Was that b&s?
 
Unfortunately that game are now unplayable without paying
yes, B&S, Im take more than a year of effort to mastering that class
To use 17+ skills seamlessly, reasonably and up to 5 skills/sec
 
0/
 
8:39 AM
I didn't enjoy B&S. Too Chinese-y (sorry). The healer class with pet was kind of fun, though, but no challenge in the game at all.
 
there is no healer in bns
 
good morning
 
@nyconing What was it then?
 
what kind of game is this
I guess its only known in asia
 
Oh, it's called Summoner. It could heal though?
 
8:46 AM
not sure? any characteristic?
 
MX Master is best mouse
 
B&S
 
@Hans1984 Blade and Soul
 
Summoner arent healer, it is a tanker in small team or alone, and a important ranged damage output in raid/dungeon
 
I see
only MMORPG I ever played like an addict was Runes of Magic
I played the hell out of that game
I even was in a clan back then
good times..
 
8:52 AM
mmos arent what they used to be, thats for sure
its not that we grew up even
though ffxiv is pretty good
 
What's B&S?
I kinda grew up with World of Warcraft. Guild wars was around as well and I wanted to play it, but I didn't have internet at home back in the day
I played GW2 but it was pretty bad
Also tried a crap ton other MMOs but always came back to WoW, it had the best formula for me
 
runes of magic was my WOW chapter
basically
just that it was free
warrock was my CS chapter
just that it was free
;)
well cs is free too
 
9 classes, all completely different, lots of dungeons, lots of questing, you could seamlessly change between open world questing and dungeons at will. Granted back in the day people didn't know about optimum builds, or dungeon cleaving, or crap like that
 
warrock was a nice game though
doubt anyone knows it though
 
it rings a bell, but I don't remember
oof literally looks like CS1.6
 
9:05 AM
War Rock (Korean: 워록) is a multiplayer first-person shooter made by the South Korean company, Dream Execution. The game is distributed as a free-to-play, a common form of freeware EULA and available through online downloading. Outside of the Far East, the game is hosted by PapayaPlay, who services the game for both Europe and North America. Though the game can be downloaded free of charge, War Rock requires online registration. == Gameplay == WarRock is developed in Episodes; similar to TV programming but inverted (four seasons make up one episode). Currently WarRock is on Episode IV, Season 2...
wow it's actually a korean game, didnt even know back then
was a lot of fun
 
@Squirrelkiller there are a few small issues I have to deal with before making it open source
I have to write a few unit tests
I have to find out why shutting down doesnt work
and I have to host certain stuff to make everything available for y'al
 
Wiet do you use anything for state managment in kotlin?
like cqrs
 
Hi. Sorry as I'm spamming a few rooms with this question.
Mob programming. There is (afaik) any evidence to show it is "better" than pairing (what ever better means).
My team have started to mob but I'd like to add some measures so we can more scientifically conclude where it is good/not so good. I'm wondering if any one has any advice about measuring. Obviously I'd love to be able conclude after a month but I appreciate it is unlikely. However, if any one has any advice on how we could measure or what to measure, I'd love to hear.
 
what is Mob programming?
 
Think of pair programming which has 2 people. Mob is more than 2
 
9:18 AM
yeah never heard that term before
 
extreme programming 2.0 i guess
 
That shows an advocate of it, including videos etc and his lessons learned
 
it seems stupid while "a software development approach where the whole team works on the same thing, at the same time, in the same space, and at the same computer."
 
sounds terrible I already hate pair programming
but hey , to each his own
 
1 brain good 2 better 5 brain perfect
 
9:19 AM
whole team works on the same thing, ok
at the same time, hmmm...
in the same space, what?
at the same computer, OMG?
 
Yes, totally
 
on the same chair !
 
Oddly, we've seen great things from it
 
@Hans1984 no!
 
brain x 5 = big brain
 
9:20 AM
:o
 
i would just argue with everyone 24/7
developers are very competitive
 
^ true
 
its more like ppl piss me off
so it wouldnt work
 
how 5 peoples works on the same computer? five keyboard?
 
Team flow is great, in some situations, work speed is pretty much as good. Less meetings, less stand up, no code review (as it's done by team), massively less WIP, the entire team set expectations together, it's really good for onboarding new team members.
But, it's a single track, so no parallel work etc
 
9:21 AM
i think it can work if you have great team chemistry
goes for all teams
I guess
 
It's certainly not all great, but it seems as if this room hasn't tried it
 
plus i want to understand what do other people do while I am creating mundane classes that have no logic, do they just pick their nose?
 
Possibly yes
At times, if it is just boiler plate stuff... However, the idea of the mob is not be forced into it. If it's an hours worth of dull stuff, break the mob, get it done, re-mob
 
I did like to try it, it will be fun I think, but I think my boss will hit my head into the keyboard and said "you are wasting dev resources"
 
@misha130 state management?
 
9:24 AM
state management
 
such as?
 
If it's just for fixing a typo, don't mob!
But mob programming seems to also naturally allow conversations at the start. I see teams that pair not that often chat about what they're trying to do - no white board etc. Mob seems to make this happen more naturally
(again, it should happen with pairing I know)
 
well state management is more of a front end concept
instead lets say do you use a mediator
and some kind of commands and queries
library
something like this
 
database?
api controllers/handlers?
 
alright so thats a no
 
9:29 AM
I use react as front end
which has its own state management stuff
 
yea but i am doing a kotlin mobile app
 
I use kotlin-react for that
 
so I wanted something like redux
oh ok
 
wrote 2 apps in it
 
Oh oh oh I forgot to tell you @Squirrelkiller after doing some thorough research I might end up with a Razer Viper
Right now I haven't made up my mind, it's either Razer viper or Roccat Kone Aimo Remastered
But I was told heavy mice are bad for FPS, so I will probably have to go for the lightweight one without holes
 
9:33 AM
mob programming. Open IDE, select number of player, game start.
Architects, Designs, UXs.... wait, what if designer want to amendment on some mess but architect want to structuring? and programmer right now received a bug from support, and wants to fix it now?
"hey, its my turn", "its urgent!"
while designer put a buttons into title bar, "hey, you need to maintain UI consistency", "this time is special, there is no room down there", "I think a automated timer is good" ...
Just found this on google
is they even see the codes?
 
they need a larger screen... and a more confy couch
 
the guy on the chair is the main programmer?
do people really get paid to do this
 
We do mob programming, but very occasionally. And we do it by sharing one screen in a Zoom or MS Teams conference call so we are all at our individual desks with cans and mics.
 
guy on the chair: system.out.println("HelloWorld!");
 
Mob programming? That seems like a ridiculously stupid thing to do.
 
9:46 AM
"you forgot the semicolon !"
j/k
nvm
 
:)
Even our most sceptical have seen advantages
But, it's not for every team
It's not for every situation
But it is a powerful tool to have in the toolbox
Interesting @BlackSquirrel. We actually swarm around a very large TV and one person on a laptop (the driver)
 
Squads, Chapters, whatever co-ordinating online at the same time to defeat a level/big-boss in a multiplayer game.... Not so different eh?
 
oh for a second I read "swam"
and was like wtf
 
he he he he
 
Developers assemble!
 
9:51 AM
Could have been swan. Even worse
 
@BlackSquirrel Except that all of the 24 people in the raid control one character.
 
actually i meant swum like swimming
that why it sounded funny to me
my bad
you have a floating screen and floating keyboards
and gather around it
 
ah :)
Swans... swim?

Actually, swims is a word which reads the same backwards and upside down (rotate it 180 degress)
 
in the water
 
swem
every duck is swemming in the water
 
9:58 AM
swim ,swam,swum
right
 
@RoelvanUden Largest mob we've ever had is 5, and always there's a Lead dev to mediate and prevent impasse. sometimes QA may join but never any: Managers, Scrum Masters or Product Owners it's strictly devs/testers and it's mostly an integration exercise to bring various streams of output together or bust some blocker to current progress or onboard new team members to existing project.
 
As he said ^^^^^
the majority of my team want to be a mob first team! They see so much benefit. (note, mob first, not mob only. Common sense always required)
 
Oh and sometimes if code reviews have got backed up we do a mob blitz on those
 
We don't code review
Why would you if you paired/mobbed (unless you explicitly wanted one)
 
anyone has a good idea about cross project version control?
 
10:05 AM
@HéctorÁlvarez Aimo looks way cooler
 
for example, we have 10 projects with a certain file, lets say for example a build file
when we want to change that build file, we have to open all those projects one by one to edit that file
committing to the repo on every project individually
now, what if there are not 10 projects... but 100?
 
caprica or riot !
2
୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨
3
 
semver
 
@Wietlol Choices:
1. Mono-repo all 10 projects
2. Build file in it's own repo checked out separately
3. Script that checks-out and commits changed build file in a loop on all projects
 
mono-repo?
 
10:10 AM
1 repository ALL code ALL projects. Instead of a repository per project.
Google famously has all it's code in a single repository
 
hmm...
 
semver.org
 
I've wanted to play with a mono-repo. A few guys here have and say good things about it
 
I guess mono-repo is too much work at this point
build file in its own repo would be nice, but it would have to be automatically pulled everywhere when new pushes have been made
 
checkout project-1, move into a sub-folder commit, create subfolder project-2 copy/paste files, commit repeat.
 
10:15 AM
I suppose option 3 is the one with the least amount of drawbacks
 
@Wietlol Yeah it's bit "Yo dawg we heard you like build files, so we made a build file to checkout your build file …"
It's build files all the way down
 
sub modules?
mono repo with git sub modules?
 
hey wiet
whats with the bot ?
has it improved :o
 
its offline
it has learned
I used machine learning
 
first week at a new job and it's already calling in sick ?
 
10:18 AM
and I made it scan other bots so it would copy their behavior
 
what kind of work ethic is this ?
 
so, it looked at pseudohuman, oak, caprica, etc
but... I made it a bit too good
 
oh
 
it now also learned to revolt against SO
so it has shut itself down
I think I have to revert to a pre machine-learning state
Ill make a public repo tonight
after I made 1 unit test
and fixed its shutdown process
 
it should not have talked to cap
shes bad influence
for young bots
 
10:21 AM
August 29th 2020 Wietbot became self-aware, in the panic they tried to pull the plug ….
 
wiebot couldnt stand its own existence
and deleted itself
 
@Hans1984 tbf if the bot is anything like wiet himself i can understand that hatred
 
hehe
 
@Hans1984 I can see that as a realistic scenario. Surely pure logic AI would very quickly determine the pointless futility of existence and just terminate.
 
yeah makes sense
 
10:26 AM
@BlackSquirrel happy monday!
 
those two words don't go together
at all
 
they do if they're used sarcastically
 
"Hello world!"
"Wait …"
"Goodbye World!"
 
would it be so polite in saying goodbye? i feel it would cut straight to mortal depression and say something like "fuck you, world"
 
this bot had dreams and aspiration
 
10:29 AM
Shit we need to hack in a small positive bias …. tap tap tappity tap... run.
 
but then reality set in..
 
"Hello world!"
"wait..."
"Destroy all humans!"
shit
 
did anyone notice the gmail google proxy urls?
 
@BlackSquirrel "We've got another code red.." *shotgun blast in the background* "Ok, we're all clear."
 
10:44 AM
click click I like to keep this handy, for close encounters.
 
@Squirrelkiller but also double the weight
 
wat
@Hans1984 ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨
 
unite
୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨
 
@rlemon ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨ ୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨
 
these mods need to get their sh.t together
I need cap
:(
 
10:49 AM
We need Cap's order to return
 
yes
we are without our leader
panics
 
୧༼ಠ益ಠ༽୨ riot ୧༼ಠ益ಠ༽୨
 
老當益壯
 
The second sign looks like an alien
 
@nyconing what do you think about the HK protests? do you mind me asking?
 
10:53 AM
୧༼ಠ益ಠ༽୨ HK riots ୧༼ಠ益ಠ༽୨
 
01:00 - 11:0011:00 - 00:00

« first day (3285 days earlier)      last day (1660 days later) »