« first day (3231 days earlier)      last day (1710 days later) » 

12:02 PM
I read code much better than graphs...
what kind of service is it?
perhaps, you can use the decoration pattern instead of a list of services
it will significantly improve the understandability of the whole picture
 
hey i am being stupid
why can't this work
 
you already gave the answer
j/k
 
HMMM
 
how do you suspect it could work?
 
well what is conversion with interface
doesn't it just check if the interface fits
and if it fits then its ok?
I assume there are no actual data changes
 
12:07 PM
Hey, Im going to start making a basic inventory editor for a game of mine, I know the basic concept, Searching for hex values and changing them to other item IDs, and I also already know how to do said things.

What Im looking for is advice, If anyone here has any experience in this sort of thing, and wants to give me some advice or pointers before I start, Id Appreciate it.
 
x as T is a "safe" cast
as a result, you get exceptions everywhere
because that is how safe it is
if the cast failed, it returns null
so, foo as IFoo2 returns null
@TaylorSpark uhm... null
 
(I gave you a pointer)
 
the other way works too
if trying to convert to parent instead of child
 
tbh, what you are saying is "Hey, I am going to build something and it is going to use bricks and some wood, anyone has advice?"
I am not sure what kind of advice you are expecting here
@misha130 you are what?
 
12:11 PM
this way
it doesn't matter, I understand what is happening
C# kind of sucks
 
it sure does
but not because of your examples
this is pretty normal behavior of every sane language
apart from the x as T
 
morning....
 
Hey does anyone recognize this kind of encoding? thought it was some kind of koi or encrypted 256 bit.
Im really unsure.. It may be the Health variable, not 100% sure, but alot of the code IS unencrypted, but seems like important variables are encrypted...
"ïL+\•÷ýüC“ÔdJ^û\Z¸ÀV°üñ,ñÎÒ6ÃÙç"
 
morning cat :3
 
morning
if that encoding is some kind of custom keyed vigenere or something, Im probably never going to figure it out lol
 
12:16 PM
why do you want to know the encoding?
 
@Wietlol except stuff like js
 
ew js
 
I just wanted to make an alias to my injectable service :(
thats all I wanted
 
you want a typealias?
 
yes
 
12:17 PM
why?
 
I want to know the encoding so I can create a decoder/encoder for the .player files.

Im trying to make a "new" version of an old terraria mobile inventory editor
the current one is 9 months old, and only works on 32 bit windows with specific settings
 
its probably just a weird binary file
 
ok its not exactly an alias I decorate a class implementation and just want to have the same interface
 
I know how to read and re write the hex for the items
 
perhaps search google if there is anyone that did it before you
 
12:18 PM
but alot of the variable names and locations are the wierd jibble jabble
 
@misha130 you mean a wrapper?
(a decorator is also a wrapper tho)
 
Meh ive been googling for a couple hours looking for one to use, Im just so iritated that im trying to make my own.
 
umm no a decorator
a wrapper wouldn't be exactly the same
doesn't have to be atleast
 
I read the basics on "inventory editing" and it seems as long as you can find the item ID's bytecode, read it, and then write it, it should work
 
like as far as I understand you can have a wrapper as an adapter or a decorator
 
12:20 PM
I reaaaaaallly dont want to have to go the point of changing items in my slots until I find which text characters change lol
 
a wrapper is an object that has behavior wrapped around another object
 
yea
 
a decorator is an object that has behavior wrapped around another object using the same api
 
and an adapter is an object that has behavior wrapper around another object without using the same api
 
exactly
 
12:21 PM
why are we talking semantics
 
but not additional behavior to the wrapped object tho
 
yes
 
an adapter should only map input/output to be able to be applied on the different api
@misha130 can you give an example of what you are trying to achieve?
 
I really dont want to since I kind of lost motivation to do this
 
do what?
 
12:23 PM
well this whole situation I am describing
 
because of our conversation?
 
no not really
 
so a bit yes?
 
more because of the unnecessary complexity
think i am over abstracting
 
it doesnt have to be complex
keep in mind, adding more classes often doesnt make stuff more complex
adding additional layers of indirection does
 
12:24 PM
this is what i have to do
 
I dont see the additional value in such a thing
I dont see the point of an IoC container at all
 
nice
 
at least not on the level C#'s IoC containers do it
 
having modules is kind of fun
 
modules?
 
12:32 PM
yea a set of services that you can package as a module
 
Well im going to go request help on an RE forum, because I guess asking for decryption help here isnt the best idea, considering its for C# and the encoding is unknown
 
:looks around:
:whispers: W A T E R
 
I suppose that its all fun and games, but the problem it solves is just non-existent in my applications
 
A Q U A ?
M E H I C O ' S :

A G U A ! A G U A !
 
same as async/await for example
 
12:35 PM
WATER !
!!water
 
@Hans1984 That didn't make much sense. Maybe you meant: faster, weather, wat, wat2, wat3, wat4, watrg, war
 
:(
 
Ughh been trying to get this ASP form to load for the past hour and I'm still getting an exception in ScriptResource.axd @.@
 
aguax1 != aquax1

aguax2 == aquax1
 
whatever lol
 
12:41 PM
No one gets that joke unless youve seen alot of the walking dead tv show
 
is anyone even still using classic ASP?
 
@rlemon H Y D R A T E
 
Nope
 
which no one has because TWD went to shit @TaylorSpark
 
@AlRey yes
 
12:41 PM
@AlRey someone, somewhere
 
Well I just remembered, the agua agua joke actually came from "Fear the walking dead" the prequel show
 
ok
 
Ok well im bored, so Im going to go make a debian packaging program that will convert ios applications to debian applications so apple cant revoke my shit... IDk why I want to do this but I know how so I will
bai
 
ok
 
12:43 PM
@Failsafe got my 40oz right here bub.
 
40oz?
weak
 
@TaylorSpark Good fucking luck.
 
Yeah, that immediately sounds like it won't work
 
@CaptainSquirrel if you immediately know the candle light is fire...
 
@rlemon then it's probably water......right?
 
12:45 PM
then the meal was cooked long ago
 
wait wat
!!wat
 
@rlemon HYDROGEN!!!
 
Isn't there a command that has that picture, but replaced with kendalls face
 
!!kendall
 
thats not it
 
!!kendallwat
 
@CaptainSquirrel That didn't make much sense. Maybe you meant: kendalwat, kendall
 
!!kendalwat
 
12:46 PM
HEH
It was the other way round
much better
 
rip wat woman
 
that will do
 
hey, I gimp'd that
@CaptainSquirrel it's a quote from SG1
god, figure it out
 
ah
I see
 
I see ascension is not withing your capabilities right now.
much too young.
 
12:49 PM
I started to rewatch sg1 and then nowtv removed it >:(
Indeed
 
I have it on DVD
 
I must rewatch sg1.... again
 
but I'm too lazy to find a DVD player
 
I have it on the internet
but i too am lazy
 
I also have it on internet, but Amazon only has like the first 5 seasons
 
12:49 PM
whaaaa
amazon has it?
 
prime
 
that'll do for now
 
but not the entire show
just the first handful of seasons
 
just go to the piracy subreddit
to the megathread
 
stargatecommand.co has them all for free
 
12:50 PM
and find a stream service
 
i forgot that site existed.
 
just a FYI
but the quality isn't that great
720p max
 
Quality isn't great for the first few seasons anyway
 
aren't the first few seasons in SD
 
ya basically
 
12:51 PM
720p is fiiiinee >v>
 
the player is also a bit janky.
I watch them there sometimes, but it's usually if no other service has them
 
1:05 PM
Hey All, is there a general term for code related to closing db connections, closing file streams, dereference C++ pointers, disposing of an object in C#? (stuff code that reduces the chance of memory leaks)
 
@rlemon I dont get it
 
@crazyTech garbage collection
 
@Wietlol what is there to get? it's a website that is about startgate franchise and lets you watch them
 
but the website is down
 
@Failsafe ok that seems fair. Thanks
 
1:07 PM
so I assume that it is some kind of reference
 
add www.
I just typed it from memory
looks like it needs www.
because, stupid.
 
@rlemon >needs www
 
ah, now it works
 
yikes
 
a lot of sites are configured like that
 
1:08 PM
they are?
 
it's unfortunate
 
I know some sites require https:// tho
 
well, sites do need a protocol.
your browser can infer it most times
 
because they dont have a rewrite rule on http, which is picked by default and they block port 80
 
www. is just an archaic thing that used to make sense but no longer does
however. a lot of apache installs still redirect to www. or just don't serve off www.
 
1:09 PM
as does https:// imho
 
no, https is a protocol
you always need a protocol
www. is just a subdomain.
having http 301 to https is just securing your clients for the future.
 
http:// then
you shouldnt have to write that
 
you don't
 
your browser should add it
 
the browser will infer it from //
 
user10864482
1:24 PM
morning wizards
 
 
@rlemon 1 line in dns can solve www problems
 
user47589
1:37 PM
The www has been around for like 30 years. When are we upgrading to wwww?
 
The current dominant species isn't that great, though.
 
@Amy we have to move to www1 first
 
user47589
I heard that Google tried www1 and it didn't work.
 
1:52 PM
Does IPv6 count?
 
user47589
IPv6 can count, but not very high.
 
It can count to 340,282,366,920,938,463,463,374,607,431,768,211,456.
 
@Amy wery world wide web?
 
@Squirrelintraining world wide web wow
 
@Amy we're moving forward to vvvvvv.
 
2:06 PM
@Failsafe what does the wow stand for?
world wide web world of warcraft seems a bit redundant
 
did you guys know in Australia it's mmm˙
 
qǝʍ ǝpᴉʍ plɹoʍ ?
ʇᴉɐʍ
ʍoɹlp ʍᴉpǝ ʍǝq
better
 
l stays pretty miuch the same eh?
dissapointing really
 
this is magical
 
user47589
2:24 PM
I'm staying hydrated today with ovaltine.
 
That unexpected gagnam style
 
I appreciates the effort he put into that parody
it's super well done
 
user47589
Stack overflow just went offline for maintenance
 
user47589
I'm scared. What if it never comes back
 
rejoice.
 
2:29 PM
what's your guys sleep schedules like?
 
user47589
Circadian
 
@AlRey schedules?
 
yea...I'm trying to make a schedule where I go to sleep at around 8:30 and wake up at 4 so I can write for a couple hours before going to work
 
Or take a walk outside, what ever floats your boat
 
@AlRey day drink
you'll be in bed by 8:30 no problem
😉
 
2:44 PM
Alternative: do an all nighter and go to bed early
 
@AlRey i'd write some after you come home from work and use it to decompress
The last thing you want to do is make yourself mentally exhausted before going in for a full shift
 
Did you just assume his mental capacities?!
 
Maybe
But Developer burn out is super duper real
 
user47589
5 reals. That's how real it is
 
2:54 PM
@AlRey I wake up at 4:30-4:45. You have to be hitting the bed by 9. The easiest way I found to transition is to just wake up that early one day and let the natural exhaustion kick in at the end. Then just do that forever.
 
user47589
If it were any more real, it would be imaginary.
 
@CaptainSquirrel that's kind of what I was doing, but I've found I can do better at work if I start waking up earlier
and @JonathonChase yeahhh…..that's the plan :P
 
user47589
Whoa, forever? @JonathonChase that's quite a commitment
 
but what if you die
 
11-6 is prime sleeping time
 
2:55 PM
Then I'll sleep in that day
 
change my mind
 
Do people die when they're killed?
 
user47589
Amazon prime never sleeps.
 
@AlRey i'm all for getting up early for productivity's sake, however you could use that time to make yourself a coffee, take your time getting ready for work, having breakfast etc
 
2:57 PM
I know if i personally coded for a few hours before i went to work, i'd never go to work because I wouldn't want to stop
 
HAMMERTIME!
 
I can't do stuff before work. I just end up spending the time counting down until work
time before work === a wash
 
oh dont' worry; I'm definitely gonna eat a better breakfast with the extra time given ;P
 
user47589
I can't do stuff before I'm activated.
 
I'm done with poptarts
 
2:58 PM
so up at 6, clean myself, empty myself, refill myself, feed my pets and get my recycling / garbage out
then off to work
well, I do that on the way to work most days.
ideally tho I'd eat at home
 
3:47 PM
hey at least my workplace doesn't feed us donuts every morning :P
I used to think the whole "police love donuts" thing was just an urban legend, but I've since found out that every time I got to the one gas station with a donut stand, there's always a police car
 
user10864482
I looooove linq
 
user47589
4:04 PM
How much do you love LINQ?
 
user10864482
4:14 PM
@Amy my love knows no limit
 
user47589
4:41 PM
We will put that to the test.
 
user10864482
@Amy how dare you test my love?! ><
 
mr5
@Wietlol can you explain for me the advantage of using async IEnumerable?
@Squirrelintraining ahh a free man. It's rare to see someone have no team rooting for.
It's a sad day for my bois TNC. We placed 9th-12th place :(
 
5:21 PM
@mr5 it has many advantages
1, it is much easier to create unmaintainable nested monad hell
2, it is extremely good in clutting your code without much effort at all
3, it is very efficient in making sure you want to stop using C# and go to more sane languages
there are many more advantages of async IEnumerable, but these are the biggest features of it
 
user47589
Async has its uses.
 
user47589
I try to avoid it.
 
user47589
Only use it when needed to solve a performance bottleneck.
 
you know what's better than Async?
water.
 
user47589
Ovaltine?
 
user10864482
5:35 PM
darn that's rude
 
user10864482
not even dr pepper. water. that's FLAT
 
user47589
You consider it rude to use optimizations only where it's needed?
 
user47589
What do you think the word "rude" means?
 
user10864482
@Amy in depends on the nature of the code. Take a server. I think the code should always be non blocking by default. I wouldnt call that as much of an optimization as "I expect a server to work async, that's its nature"
 
user10864482
"rude": offending. Phrase: "darn, that's rude" is like saying it's terrible. It mean near nothing.
 
user10864482
5:39 PM
like if code could offend me
 
user47589
Rude means "offensively impolite or ill mannered"
 
user47589
It doesn't just mean offensive
 
user10864482
@Amy well. I find it funny to use overrated words
 
yea, it's rude to express dr.pepper is better than water.
that's ill mannered and very impolite
 
save water drink Dr. Pepper
 
user10864482
5:41 PM
yes. exactly because, well, dr. pepper contains no water. make total sense.
 
user47589
This is a non-issue. Just drink ovaltine like my decoder ring says.
 
pou,ʇ ɯᴉup ɯǝ' ɾnsʇ pɹᴉuʞᴉuƃ ʍɐʇǝɹ ᴉu ∀nsʇɹɐlᴉɐ
 
user10864482
@Amy what ovaltine taste like?
 
there is chocolate, and orange
 
user47589
Then you don't have to decide between gross water and drpepper
 
user10864482
5:42 PM
hydrazine is much more better, but harder on the belly i guess?
 
user47589
Ovaltine is a powdered chocolate mix
 
user10864482
@Amy ok
 
yea but the orange one is like malt, the OG is dark or something
there are different kinds
 
user10864482
is it a cultural thing or a local brand?
 
mr5
@Wietlol oh shit. it's shit again
 
5:45 PM
huh? it's a company selling more than one flavour
 
mr5
I have a story to tell everyone.
When I was coding in C++, I was told global constants are bad for loosely coupled design.
 
@mr5 it sure is :D
 
mr5
This philosophy stuck on me for every languages I am learning.
When I was writing this particular module called ICachingService in our project, I did find a flaw with this philosophy.
ICachingService is a Service that persistently stores an object in local storage using Key-Value approach.
We would write a variety of other services which would utilize this ICachingService to cache some stuffs.
So far so good.
Trying to avoid global constants located in a single place, I am forced to have a pool of keys located at different scopes across the project code base.
Obviously, this approach could result into key-clashing issue.
One solution is, to make a "helper" class that would generate a globally unique and deterministic key (shite adjectives right there).
Problem also with this solution is that, C# is not capable of creating "pure" function or generating a compile time constant from an expression, which means, it would somehow hurt startup performance.
@Wietlol how long will we wait before you make a pre-release of your wietlang?
 
42
 
mr5
in my story, how would you resolve the issue? Should I give up this philosophy cuz it seems MS itself is embracing the global constant? Or can I still stick with it and go for this "helper" class that would generate the key for me?
 
5:51 PM
I was told in my first C# class to not be like Microsoft, who wants to let the system be open -- whereas the teacher wanted things to be concatenated like a donut.
 
you can write pure functions in C#
I do it all the time
writing pure functions is fun
 
mr5
I mean by pure is, the generated output can be marked as "final" or const
 
The laptop I was given for my new job has one of these ethernet ports that has the flap that expands out (because they're apparently making laptops thinner than ethernet ports now) and I can't get the cable out.
 
mr5
RJ-45 is long overdue. They should make a flat RJ-45 versison
 
@mr5 like this: ᵣⱼ₋₄₅ ?
 
mr5
5:54 PM
yeah I think that would fit with hypersapien's lappy now
 
@mr5 you mean compile time evaluatable?
 
mr5
I think so. I'm confused with those jargons
 
I dont think you need to use global values tho
 
mr5
const double HolyCrap = Math.Sin(Math.Cos(Math.Tan(Math.Pow(1, 2))))
 
but I dont really understand your design
 
mr5
5:59 PM
Imagine, you have a singleton instance of dictionary that can be used across the entire app
and keys are scattered everwhere
cuz ur a rebel who don't like global constants
 
ew singleton mutation!
ban the heretic
!!ban mr5
 
mr5
!!y
 
mr5
boring song
If C# would only have such feature of Compile time function execution, it would speed up a bit the Xamarin.Android
 
mr5
6:25 PM
Why was this only thought this year?
There is this [Pure] attribute available in most .NET implementations.
 
you ever come back from break and go to type in your password to the remote desktop and accidentally send your password to a slack chat because that was the last window you were clicked on?
now I got to go change my passwords
good job me
 
mr5
I wonder how it behaves. Is it compile-time evaluation? Does it inline function definition? Or is it still JITed?
 
user10864482
gosh. 2 computers, same build, same everything, same input, different output
 
mr5
@human if I write 1+1, does it produce 2 in other and 3 from another?
 
user10864482
6:41 PM
Yes, something like this
 
mr5
Can someone please confirm that this code right here: ideone.com/zna21M
can be evaluated at compile time using the [Pure] attribute
 

« first day (3231 days earlier)      last day (1710 days later) »