« first day (3335 days earlier)      last day (1605 days later) » 

12:51 AM
I forgot how you add new resources to the current project, anyone remember?
nevermind
 
 
5 hours later…
mr5
5:29 AM
o/
Can you guys help me find the implementation for Device.StartTimer for Android? Here's the repository: github.com/xamarin/Xamarin.Forms
My search skills is deteriorating
I should have gone to Google instead of GitHub search
 
5:46 AM
Ben Popper on December 03, 2019

This week we chatted with Charlton McIlwain, a professor of media, culture, and communication at NYU. He is the author of the new book, Black Software: The Internet & Racial Justice, from the AfroNet to Black Lives Matter. We discuss how a demand for more diverse clip art helped lay the foundation for some of the first black owned and operated software companies in the United States, and the ways in which social media has helped to empower a new generation of voices to demand change in the tech industry and beyond.  …

 
 
1 hour later…
6:46 AM
Buenos dias
 
7:19 AM
Squirrel flavored Wrigleys doublemint
 
Morning
 
@nyconing Excuse me what the fuck
 
7:55 AM
jack is back!
but still with 19 rep
 
GoOoOoOoOoOoOoOoOoOoOoOd Mornin' squirrelerinos!
 
@CopperKettle I like the standard winforms icon
 
I want to add this large output field (at the bottom) to my form but can't find the proper element
It's a task from a textbook.
I've created all elements as shown, but what do I pick to create the bottom output field?
 
I'd say a deactivated Textbox
 
8:03 AM
Ah! I thought there was some special element for output, distinct from input elements.
Thank you!
 
Don't thank me yet, WinForms was quite some time ago...
 
WinForms
Yay welcome back to 2005
 
There exists a "Toolbar" for the bottom aswell.
You can see this as the "blue bar" in visual studio
In VS Code the bar at the bottom containing information where the cursor is etc.
 
mr5
@CopperKettle is this used in production env?
It seems like every Windows developer are stuck with old UI fashion
 
10 mins ago, by CopperKettle
It's a task from a textbook.
 
mr5
8:10 AM
Oh
but I also see Buttler posted same UI theme
it was months ago
 
@Squirrelintraining Thank you!
 
nuget pack is looking for exe file in build but my project geerates dll :L
it's crying for not finding exe file lol
like a lilttle baby :/
 
23
A: Status bar in C# Windows Forms

JosephI think you're looking for the StatusStrip control. Here's an article about it. And here's an MSDN article.

that might help
 
mr5
give your IDE some milk
err, nuget pack
or whatever that is
 
good morning
 
8:20 AM
@mr5 nuget pack it is
but i am not sure how to give it milk lol
 
@mr5 I wouldn't dare tell a rookie to install nuget packages, the initial learning curve is steep enough to be handled as-is
 
@HéctorÁlvarez that's deep, my brain compiler estimated 5 hours to absorb that statement
 
mr5
indeed
hector is a poet
 
are you guys making fun of me ? indirectly :O
 
mr5
we only make fun of squirrels
 
8:24 AM
- My love, I've never told anyone anything so deep as what I'm about to tell you...
+ ...yes?
- ...volcano, sea bed, crater...
+ ASSHOLE
- No idea honey, we've never tried.
Fuck the formatter
 
8:35 AM
I installed nuget package explorer using choco now not able to find it lol
 
8:49 AM
Where's everyone today
 
There all in London, I definitely noticed a larger abundance of people than usual today.
 
I am everyone today
 
They're I mean tsk.
 
@BlackSquirrel why london
 
@BlackSquirrel What?
@BlackSquirrel What's the meaning of life?
 
8:53 AM
There is no meaning of life, that's the wrong question
 
sometimes in Turin, before a three-day weekend or something, you'll see the city pretty much halved of its population from people going to their houses in the mountains or whatnot
It can be sort of surreal sometimes
 
Hey all, what's your opinion of using generic interfaces in your implementation code vs using concrete interfaces? Example:

ICanDoSomethingWithPerson : ICanDoSomething<Person>

Where the ICanDoSomethingWithPerson interface is completely empty

Should I use ICanDoSomethingWithPerson everywhere in my code or should I use ICanDoSomething<Person> everywhere in my code and remove the ICanDoSomethingwithPerson?
 
I'd remove ICanDoSomethingwithPerson since it's obsolete.
 
And whenever you want to add something specifically for a Person, you have to rewrite the whole application from ICanDoSomething<Person> to ICanDoSomethingWithPerson whenever you add the ICanDoSomethingWithPerson with a specific method. Isn
Isn't it worth it to always use non-generic interfaces?
 
@ErwinOkken if you want that ICanDoSomething does something with Person, you make Person derive from an interface if anything
the point of using generics is that they're generic..
 
9:01 AM
@ErwinOkken If the IoC framework doesn't handle generic interfaces it's valid
 
The IoC framework handles generic interfaces, that's not the point
 
Morning children
 
than it's obsolete as Roel said
good morning
 
Generics are awesome and I don't understand why anyone wouldn't want them
 
But isn't it a valid point to make it future proof? If I have 100 references to IGenericInterface<Person> and then create a IPersonInterface : IGenericInterface<Person> with SomeMethod(). I then have to clean up my application to use IPersonInterface everywhere.
 
9:04 AM
especially, that C# generics are much better than java generics
 
Why would you create IPersonInterface if your code isn't using it
 
Never said I don't wanna use it. But only for interface 'inheritance', not using it directly in implementation code.
 
If you code has huindreds of IGenericInterface and you need to add something to it, add it to the interface
 
But if something is specifically for Person
 
If it's person specific, you should probably have planned ahead and considered that there may be specific things in the future
 
9:06 AM
I think I explained it poorly
 
@ErwinOkken what if you want add some functionality, that valid for all generics? You have to change back all places to a common ancestor or generic type
 
But at the same time there probably already is person specific things in the interface anyway, so you wouldn't have used IGenericInterface<Person> in the first place
 
@ntohl Not if IPerson is still inheriting IGeneric<Person>
 
@ErwinOkken but usages are all handling it like IPerson, so casting needed all the places, where the extra functionality is used
 
Interfaces are almost designed to be extended, if you create an interface and don't extend it you're a bit dumb
 
9:07 AM
@ErwinOkken Refactoring code to use the new interface where necessary is very easy to do. It also makes sense that only code that requires the new methods/properties uses it, and code that does not can use the more generic type. Approach it like that, create it when necessary, and not before... or your solution will be a pile of garbage containing mostly things "you might need at some point" (but realistically never will).
 
Also as Roel just said, find and replace is ezpz
 
abstraction for the sake of abstraction is only confusing and over-complicating your code neeedlessly
abstraction, like everything else we do, is just a means to an end
 
Yep. Keep it simple and as concrete as possible until you actually have benefit from doing otherwise.
 
Thanks guys, this is an answer I was looking for. Is this something that's debatable or just a generic rule? Because I get your point but I just have a different opinion at this moment
 
Like everything, this is all opinion. In my experience, there are an equal amount of people on the "abstract everything" and "keep things simple" spectrum. The former can often be found in Java jobs, and the latter in C#!
 
9:12 AM
hah, well here's one Java programmer who feels the same as the C# programmers ;)
 
The only opinion everyone can agree is that, whatever you choose, BE CONSISTENT.
(Waiting for someone to disagree)
@Neil That's why you're in this room! :-P
 
Thanks, makes sense
 
everytime you create an interface or an abstract class, you should be asking to what ends is the existence of this interface or abstract class fulfilling
There are ways of future proofing without using inheritance, such as Facades or Adapters
if you think the interface will change often, use one of these, and you'll only need to adjust the adapter
 
In my day-to-day activities and hobby projects, I very rarely need interfaces/adapters/decorators/abstracts. There often isn't a very good reason if you think a little more about what you're doing.
 
For some reason if I see a ISomething<X> in a controller, my heart rate goes up by 10. I just cannot find any concrete reasons :-P
 
9:15 AM
No, in fact it isn't concrete at all, it's an interface ;)
Also I agree with Roel here. I don't often need to use abstraction. I try to get ahead of the curve and use abstraction whenever I think something may change or I may need more than one of a certain type of thing
 
I've never seen a reason to use such level of abstraction. All the examples I've had to work with were either badly shaped or too niche to be of any use
 
That said, most of my classes don't implement or extend any interface/class
and honestly, the more experience I get, the more I feel that inheritance is overrated
 
Well thanks for your answers
 
Yeah, I agree totally on the inheritance being overrated. You generally don't need it and it just makes code more confusing to read.
 
9:21 AM
Well it makes sense to some degree
 
just don't make your code base work 100% on abstraction
But it's cool to have IEnumerable and IQueryable to work with
 
Vertical/business/functionality-kinda classes always have a concrete type interface. More technical stuff like Identity, Passwordhasher and stuff are used by referencing the framework's generic interface.
 
Wietlol will tell you to make every class have an interface
but lets be frank, he's an imbecile
Feel free to comment @Wietlol ;)
 
Can't argue with that
 
9:25 AM
Well thanks for this good discussion. :)
 
ohai
 
There he is
 
care to contribute?
 
Star worthy content if it was all in 1 message
 
how do people email templates these days in projects?
I am using razor for the last 5 years and sick of it
 
9:26 AM
@misha130 kotlinx.html
 
wat
 
WDYM with email templates
 
well when you have emails you want to replace some data and send them
 
The last one I did was hardcode a load of HTML into a vb project and fill in the bits as required, then render it out to a PDF for an email attachment
 
9:27 AM
oh
 
@ErwinOkken in my opinion, you should always use interfaces (as Niel said) because for several reasons
 
That was a few years ago though and 100% would not endorse
 
Use SmtpClient IDK what you mean
 
yea razor is like the next step after that
 
interfaces for example allow composition, decoration, module types and many more features that could really help you in the future
 
9:28 AM
after the html
 
Nowadays I'd put the content in a text file with curly braces containing replacement keywords and use regex to find them
 
also, avoid class inheritance when appropriate
 
@CaptainObvious no thats still a step before the razor engine
 
@Wietlol Your interfaces sounds suspiciously like Wickes
 
Wickes?
 
9:29 AM
In that case I don't know what you're on about
 
i dont get it
 
DIY shit
 
lmao
 
you dont have to do it yourself tho :D
 
omg
I mean like home improvement type stuff
Gardening, wallpaper, bathroom suites, etc
@CaptainSquirrel help me out
 
9:31 AM
I am confused
I fail to see your point
 
@ErwinOkken that's nice example. You could just use IIdentityParser<FacebookUser> if you are interested in the "Facebook" view of the user
 
I give up
 
me too
 
eh?
B&Q?
Are we naming random DIY stores?
 
Doesn't matter
The will to live was lost
 
9:45 AM
roger doger
executing myself
 
BB&Q?
 
oh my lawdy
want
i mean uhh
This user has executed themselves and are no longer available
 
mr5
wat
 
@CaptainSquirrel It's ok.. *whispers* embrace the dark side
Also I love how there's a tiny little portion of legit vegetables on that platter, served as a side so it doesn't incontaminate anything else.. All things balanced as they should be.
 
9:51 AM
do not want greens
give me mac and cheese
Also, like a genius, I've been ignoring the password reset notifs every time I've been on the VPN
Now i can't access the VPN or my emails
\o/
ALSO @CaptainObvious HALO ISN'T RELEASED UNTIL 6PM
AM DOIN' AN ANGER
 
Boo hoo
 
You're god damn right boo hoo
I took a half day with the expectation of being able to play it when i got home
Now i have to wait until the end of the god damn day
 
Everyone REEEing over Halo and I'm sitting here, waiting for Thursday for 5 Amazon packages to arrive.
 
I JUST WANT TO PLAY HALO
NOW I HAVE TO WAIT UNTIL 6 TO DOWNLOAD IT
(There's no fuckin preload)
 
Why do you want to play on minute 1
 
9:55 AM
I wanted to play for a good portion of the day
I am unable to
 
It's a game from 18 years ago, you can probably wait 1 day
 
Its a game from my childhood that cemented my becoming a G4M3R
I will always follow the halo franchise, but unlike valve i can only count to 3
 
I'd say that one goes to Halo 3 for me
 
And there's also Breed, the cheap brand of Halo
 
Reach & ODST are good as well, primarily because they were made by bungie
So there's a golden filter on them
 
mr5
@CaptainSquirrel play until 5am
 
@mr5 I mean i technically could
I do have tomorrow off as well
 
everybody calm down, its ok, THE CHAMP IS HERE
 
mr5
wow you have so many free time
 
Unnecessary is an unnecessary complicated word to write and mouth.
 
10:12 AM
@Harry No, I arrived around 20 minutes before you did
@mr5 I had holidays to use
 
@CaptainSquirrel shut up scouser
 
@Harry shut it runcornboi
 
@Squirrelintraining Unnecessarily*
 
Loads orever
Timeout
 
10:18 AM
what the hell it downloads a file immediate after click
 
Yours works?!
 
mr5
hmm
it's blocking per region
it was working earlier for me
if you paste that link in Safari, it will play the live TV show
 
then fake it
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:452248
#EXT-X-TARGETDURATION:13
#EXTINF:10.000,
tv_720-452248.ts
#EXTINF:12.520,
tv_720-452249.ts
#EXTINF:7.480,
tv_720-452250.ts
#EXTINF:5.600,
tv_720-452251.ts
#EXTINF:5.320,
tv_720-452252.ts
#EXTINF:5.840,
tv_720-452253.ts
^ the content is entire text
 
typescript?
 
mr5
that's just a chunk of live streams
it will get updated every certain interval
.ts is a file format for video container
it's working again
 
10:24 AM
.ts is definitely a file format for typescript files tho
 
!~wiki m3u
M3U (MP3 URL or Moving Picture Experts Group Audio Layer 3 Uniform Resource Locator in full) is a computer file format for a multimedia playlist. One common use of the M3U file format is creating a single-entry playlist file pointing to a stream on the Internet. The created file provides easy access to that stream and is often used in downloads from a website, for emailing, and for listening to Internet radio. Although originally designed for audio files, such as MP3, it is commonly used to point media players to audio and video sources, including online sources. M3U was originally developed by...
 
@HéctorÁlvarez FUUUUUUUCK
@mr5 works
@mr5 Only download is queued here
@Squirrelkiller I had a .ts file once which was actually a .mp4 file
 
@nyconing I met the guy that created the mp3 format
I didn't even know I was, honestly, but I met him in an interview for a job and that was the first thing he said. I think I got so nervous that I botched the interview :P
 
nice "stress" test
> Hello, welcome in this interview, I am Jon Skeet.
 
mr5
@nyconing m3u8 is a streaming file format mostly contains by chunk of video container format (.ts, .mp4, .mov, etc...)
 
10:30 AM
yep, pretty much
 
> Holy... wth... hyperventilates
> ok, you dont get the job
 
well I can't blame the guy
Usually when I imagine I'm red in the face, I'm red in the face, and that time I felt like I was the color of a beat
I can only imagine
 
my response would probably be "Nice to meet you Don."
pretending I didnt hear his name, pretending I dont know who he is
just for fun
 
mr5
I'm here for Java interview
 
I have met a few people that did "big" things, they are often quite... "normal" when you dont pay much attention to the fame
 
mr5
10:36 AM
Jon Skeet slaps the hell out of you
 
I also know Icefrog, who, afaik, still remains anonymous
 
mr5
no
 
no?
 
mr5
IceFrog is Wykrhm right?
 
I thought he was hunter2
:D
 
mr5
10:37 AM
have you seen him personally?
 
oh wait, that was his password, oops
I have... but at that time, I didnt know who he was :D
after I knew who he was, I havent seen him since
I pretty much come from the WC3 age... now I feel old
 
mr5
how does he looks like?
Is he intimidating in person?
Do you know Wykrhm though?
 
> they are often quite... "normal"
 
mr5
All of us here in ph believes IceFrog is concealing with his fb code name Wykhrm
 
I dont have fb, but I assume that Wykhrm and Icefrog are 2 accounts
Icefrog as Icefrog is his internet character
just as mine is Wietlol
it would be weird if I, as Wietlol would go "anonymous" as... lets say Wykrhm
because... it doesnt have any advantages
dont you think?
 
10:45 AM
\o
 
o/
I should teach wietbot that
 
stop jack the sparrow already spams
hammer time
oh no it doesnt
 
but not \o
 
mr5
Why do you think IceFrog wouldn't want to reveal himself?
stop
 
also, we could make jack stop
 
10:46 AM
HAMMERTIME!
HAMMERTIME!
 
come on dont put commands without prefixes
 
HAMMERTIME!
 
mr5
hammer time!
 
oh
ny is also doing it
 
mr5
Imagine if wietbot, jac, nycbot, and patrick reply all at once with those
lol
 
10:47 AM
imagine if wietbot, jack, ny and patrick all do \o and o/
oak has a rate limiter on it, no?
 
mr5
new comers would think they're real humans and start a convo with them
 
lets test something
TO THE SANDBOX!
 
@misha130 nope
 
:(
 
STAHP IT MISHA YOU ARE RUINING THE FUN!
 
10:49 AM
ok, I got this :D
when someone says "HAMMERTIME!", I will make wietbot say "stahp"
 
"When data has a relational structure, data access, storage, and scalability are very efficient, but writing efficient and maintainable code becomes more difficult."
 
TO THE SANDBOX YOU GO!
 
I don't understand how? :/
 
OFF WITH THEIR HEADS !
 
and when someone says "HAMMAHTIME!", I will make wietbot say "stop"
both ny and james dont have a rate limiter on it
but neither respond when the same "stop" trigger runs again (in x time)
 
10:51 AM
STOP
 
HAMMERTIME!
 
HAMMERTIME!
 
so, alternating between the two will prevent the rate limiter from blocking any responses
 
if I put that online and say "stop", it is up to SO chat to stop the bots
 
10:52 AM
That's until spam protection kicks in
 
but do ny and james and jack have a retry behavior when spam-blocker prevented them?
I think they do
so, they would just be sending messages to each other the ENTIRE day
I need to do this
 
@Shad It is pretty obvious yes
 
like how?
can't think of the example
 
how do you access an SQL database from C#?
 
10:54 AM
right now use EF
 
@Shad build a 5NF database
 
:o
what does that have to do with writing efficient and maintainable code for it?
 
how old is the quote?
 
@Shad Have you built a 5NF database? It's self-explanatory
 
10:56 AM
so, that article assumes you dont use an orm
 
Do you know what normal forms are?
 
never 5 nf
yes I knoiw
 
it wants to explain the benefits of the EDM, which EF uses
 
we keep breaking the table :D
but it is telling there how this is an issue
 
so, how do you access an SQL database from C#, without using EF (or any other ORM)?
 
10:57 AM
Oh I have seen
 
୧༼ಠ益ಠ༽୨
 
they used to use ADO.Net
some sql classes
datatable stuff
but about that...
what is wrong in having a query - "Select Top 1 from table";
^isn't this a maintainable code
 
we used to write sql queries in the code, getting back an SqlDataReader, reading stuff into lists of dictionaries
 
yes I understand the connecting part was stuff
 
then processing those lists of dictionaries to fill classes with the values
that is very difficult to maintain code
 
10:59 AM
oh
 
@Shad You stop doing that as you ascend NF
 

« first day (3335 days earlier)      last day (1605 days later) »