« first day (3989 days earlier)      last day (949 days later) » 

user12761381
12:00 PM
how can a bike run without gas?
A: Take it Down hill
 
bikes dont run
gas does not power bikes
 
user12761381
fact
 
gas powers motorcycles though
and there are electric bikes
 
user12761381
hypothetically speaking 8)
 
user12761381
Just like killing a mosquito Joke:

https://www.news18.com/news/buzz/mans-hilarious-multilayered-trap-to-kill-blood-sucking-mosquitoes-deserves-a-medal-3900836.html
 
user12761381
12:02 PM
It is multi-layered xD
 
is this multi-layered hardware engineering?
 
user12761381
the issue in question.. no. I've been away from programming and in the meantime improved the way I code (well I like to think so - laughing). I miss having someone to work with or even being pointed out on good C# books.
 
user12761381
oh the joke? definitely!
 
mr5
C# books
hmm
 
user12761381
I've tried the jokes method to kill the darn mosquito.
I caught several exceptions.
A mop was simpler, cleaner and way shorter code
 
mr5
12:11 PM
I was about to read programming books back in the day but I was too excited to implement something.
Long story short, I haven't read any books until now.
 
user12761381
@mr5: yup. Thats me
 
user12761381
like: I feel that I've reached a point that I can adpat to almost everything. But I lack (and I guess a dev always will) some knowledge
 
mr5
but I think it would beneficial of reading something that is not language specific
 
learning the programming principles is very useful
 
user12761381
Hmm... How come? (Besides documentation)
 
12:13 PM
after that programming patterns
 
user12761381
like the book bellow?

https://www.amazon.com/Design-Patterns-Software-Paperback/dp/0321718933
 
I dont read books tho
not sure what is in it
books are a bit weird in software engineering
 
mr5
there's a "C#" though
 
user12761381
=p
 
because books dont get updated regularly
the subject does
 
user12761381
12:15 PM
true
 
mr5
fax
 
user12761381
also one of the things that kept me from getting books
 
faxes also dont get updated regularly
and it is a pain to distribute
better use printed books
 
mr5
up to this day, I still haven't seen a real fax machine
 
user12761381
I agree on programming principles.
I believe in my trial/error journey I have learned a LOT!
 
mr5
12:18 PM
!!friday
 
mr5
!!unlearn friday
 
You do not have permission to remove this command.
 
user12761381
Like: Disposing. and the Rule where the Dev is Always responsible for disposing the crap he/she creates.
Even tho GC will do the job by itself most of the times
 
mr5
nope. it's different
 
user12761381
12:18 PM
Laughing: I enjoy any day if I'm coding
 
mr5
GC only handles references
 
!!funfriday
 
@JohnConnor that is patterns though
and the disposing pattern is very easy to solve
 
mr5
||sadfriday
 
12:21 PM
Invalid command! Did you mean: friday, saturday, funfriday? Try help for a list of available commands..‍
 
mr5
||kys
 
Invalid command! Did you mean: aps, kfc, css? Try help for a list of available commands..‍.‍.‍.‍.‍.‍
 
mr5
||learn kys shutting down in 3...
 
kys has been added
 
||cat
 
12:21 PM
 
mr5
||kys
 
shutting down in 3...
 
mr5
||echo hey
 
hey
 
mr5
||echo ||echo hey
 
12:22 PM
||echo
 
Quotes
 
mr5
||echo "||echo heeey marena!"
 
||echo heeey marena!
 
mr5
izz self aware
self aware: if msg.userId == bot.id
 
12:36 PM
depends
James might be a scraper script
which would react to elements being added to the dom
which happens when messages are received from the remote
but it happens differently when messages are added locally
for hosted browser-pretending clients, it has to be a blacklist, yes
iirc, most bots here blacklist each other
 
user12761381
12:49 PM
@mr5: thank for pointing that out (about IDisposable)
 
user12761381
Like I said: I need to boost my knowledge.
 
user12761381
Thus searching for some books to improve my knwoledge or trying to find someone to work with
 
user12761381
Rather than books; I happen to learn better by seeing and with trial and error
 
user12761381
But can't exclude them (books). They certainly will get me knowledge that one usually finds when taking some degree on programming
 
user12761381
<br>
One thing about the other languages I've been Learning (HTML; CSS; XML, XAML):
They did help in finding better synonyms to define methods.
Several Fn actually makes sense using other languages definitions
 
user12761381
12:59 PM
Because: they are what they are, and nothing else.
I wouldn't call a dog , a lighter ^^
 
html, css, xml and xaml dont have functions though
(maybe css does, idunno)
 
user12761381
even tho in programming we can do so.
heck.. even in real life.
People call laws to rules
 
user12761381
i.e: a Placeholder
 
user12761381
Creating a Form with Placeholder in WinForms is by itself a little bit messy.
 
user12761381
(AFAIK in WPF that does not happen)
 
user12761381
1:01 PM
Defining proper names (in this case) placeholder perfectly defines what you are messing with
 
user12761381
Removes confusion
 
just learn kotlin-react :)
and then cry that every other front end framework is absolutely trash
 
user12761381
=)
 
user12761381
1:22 PM
Does it do same thing as HTML; CSS?
 
user12761381
I just have an Idea of what react is
 
user12761381
but I thought it was extra functionality / language for web design
 
[Hector] time to put some extra effort in the god damn app
 
effort?
whats that
its friday ffs
 
@JohnConnor react is just a fancy way of doing things
Kotlin just amplifies the fancyness
it does need you to think more in components than page templates
but it entirely removes templates and replaces them with builders
 
1:28 PM
[Hector] I know but I'm doing this for myself
 
builders are just much easier to work with because they follow the same rules as all the other logic
they use the same repetition, conditions, switches, reusability and separation
 
user12761381
Interesting
 
[Hector] Right now I'm stuck with something I believe was entirely possible
 
user12761381
I have to dig a little bit on that
 
[Hector] how does it say one property is more visible than the other
[Hector] Jesus I want a private attribute with public access property
[Hector] ah fuck me I know why
 
user12761381
1:33 PM
xD
 
user12761381
Same Name?
Is Trader within the same assembly?
 
user12761381
Class is Public?
 
[Hector] I had an enum and a class called the same way
[Hector] and it understood it was the enum
 
user12761381
;)
 
[Hector] from a previous shitty change I did
[Hector] because I really have no idea what I'm doing yet
[Hector] just you wait
 
user12761381
1:34 PM
I feel you
 
user12761381
having a shitty coding day here too
 
user12761381
but proble and problem of the problem just got fixed
 
C# is very good in making sure everything uses the same naming convention and optimizes the opportunity for name clashes
and ofcourse, it will whack you when you name one component identical to another
C# should have copied Java more
 
user12761381
I'm Grateful C# does that
 
[Hector] xD
 
1:43 PM
ofcourse you are...
 
[Hector] alright so one question
[Hector] when I import my trader, there's an enum property that looks ugly AF
[Hector] if I static import the type, then the name is bearable but I can't instance new traders
[Hector] how do you guys proceed with this
\[**[Hector](https://discord.gg/PNMq3pBSUe)**] https://i.imgur.com/8e59ufK.png
vs
https://i.imgur.com/uyu1O8I.png
[Hector] standard seems to be the real solution, but any way to make the enum a bit more useful?
[Hector] IDK how to implement the dictionary idea into this
[Captain Obvious] fackin ell
[Hector] I mean I could have a dictionary and construct the object instance using the name, but that's not going to help readability I think
[Captain Obvious] my internet is truly dogshit today
[Hector] Yo o/
 
user12761381
Im a noob but i think you can:
- Place the Enum outside the scope (above namespace); and make it accessible.
I think this only works if the class is withing the same assembly
 
[Captain Obvious] If you define the enum outside of the class, then you can simply have it new Trader(TraderNames.Prapor),
 
user12761381
Enums afaik are already static (if not defined otherwise)
 
[Hector] coolio
[Hector] IDK why that wasn't working before, it said I couldn't make it public at namespace level
[Hector] either way, it's working now
[Hector] I kinda feel intrigued now, wtf happened
 
user12761381
1:49 PM
Thumbs Up =)
 
[Hector] So, while we are at it. How do I make the Timer instance run at current time?
 
user12761381
"- Place the Enum outside the scope (above namespace); and make it accessible. "
|->> No Need to set modifier as public
 
user12761381
?
 
[Hector] BTW for those who don't know the background, I'm trying to build an app that puts a timer on several NPCs so, when they restock, it warns me so I can profit more
 
user12761381
create the Timer instance?
 
user12761381
1:51 PM
Game programming?
 
[Hector] No it's just a little tool I'm building for Tarkov
[Hector] There are 8 traders, each one restocks at different times
[Hector] when they restock, some goodies are gone in 10 seconds
[Hector] so you have to be there first
[Hector] it's boring to pick up my phone and set a new alarm every time
 
user12761381
Escape from Tarkov? (lol)=
 
[Hector] yes
 
user12761381
ok
 
user12761381
1 Question
 
user12761381
1:52 PM
How do you want to set the timer?
 
[Hector] Do you play EFT?
[Hector] Ah that's a good question
 
user12761381
I mean; how will you detect when the timer should run
 
[Hector] initially I thought
[Hector] I'd input the time myself
[Hector] until I knew the restock timers
[Hector] IDK if they are random
 
user12761381
(Dont play it - but ive seen gameplay)
 
[Hector] ah nice
[Hector] It's a cool game, though it's not going through the best times right now
 
user12761381
1:53 PM
are they random=?
 
[Hector] ^
[Hector] ah the quote thing doesn't do what I thought wait
 
user12761381
My Initial Though (Considering you will be playing the game):

- Create a Key Combination.
So that while you are playing: Press the Key Combo.
Also Would create some sort of visual notification (just to make sure it worked).
Like a Toaster App.
 
[Hector] not sure that helps very much, but I can do that later
 
@Botler basically this
 
user12761381
That way:
Once you Gather Game Resources > Press Key Combo > Get Notified Timer has Reset
then notify when timer reaches its limit
 
user12761381
1:56 PM
but.. Im not seeing your full picture (never played the game)
 
[Hector] well yeah that doesn't make any sense to me xD
[Hector] sounds like a mobile game
[Hector] it's just
[Hector] imagine a real life market
[Hector] you go to the market and buy sausages from Hector
[Hector] Hector has 10 sausages left
[Hector] Lee buys another 5
[Hector] Then Bob buys the other 5
[Hector] now nobody can buy sausages
[Hector] but Hector knows the delivery guy will arrive and restock sausages in 3 hours
 
user12761381
shitting myself laughing
 
[Hector] so you just go to other tents and buy other stuff: Bread, water, etc.
 
user12761381
xD
 
user12761381
the delivery guy will be fired!
 
1:58 PM
[Hector] xD
[Hector] I mean that's how it works
[Hector] When the delivery guy arrives, HEctor restocks up to 10 sausagtes
 
user12761381
So: Resources have limits
 
user12761381
its Players Dependant
 
[Hector] meaning, if Hector has 7 sausages by the time he's here, he only gets +3, not +10
[Hector] exactly
[Hector] some resources are virtually unlimited, like nobody gives a fuck about shit ammo, and there's 7 million rounds there
 
user12761381
Since Engaging (Coding) directly to the game will not be simple and likely not feasible:
 
[Hector] but
[Hector] there are items, like keycards, that restock 1 item every cycle
 
user12761381
2:00 PM
What I would try to do is:
- Get the Resource Reset Time
- Assign a Timer (Alarm) to Fire 5 or 10 min Before the Resource Reset
 
user12761381
and try to get there first
 
[Hector] Right that's the idea
[Hector] now
[Hector] there isn't 1 trader
[Hector] there are currently 8
[Hector] so that's 8 alarms
[Hector] simultaneously
 
user12761381
You working with WinForms?
 
[Hector] yesterday Lee said it would be better to just have 1 Timer and 8 dudes who know when their alarm should go off
[Hector] I'm on WPF
 
user12761381
2:02 PM
Ok. My Help May not the best for you. But I believe it is adaptable
 
[Hector] the point is I need the timer to run at a unirform time, and that should be real time I understane
[Hector] or retake the multiple timer approach
 
user12761381
So: 8 Key Combos
 
[Hector] design wise:
[Hector] what
[Hector] no
[Hector] forget key combos
 
user12761381
Can you get to knw when those 8 players gather resources?
 
[Hector] I'm not even there
[Hector] yet
[Hector] yes
[Hector] but that's what I meant with IDK if the timer is random, I know the timer, but not sure if there's always the same timer
 
user12761381
2:05 PM
if you know the time they go gather resources:
Your timer instance could check the time set for each player
 
user12761381
Using DateTime (or even TimeSpan)
 
[Hector] exactly
[Hector] And that's wher I am now
[Hector] It's a bit redundant because next restock and restock time kinda say the same thing
[Hector] but I only added the time 2 minutes before I left yesterday and didn't thing about it
[Hector] the point now is
[Hector] I have these 8 traders
[Hector] but the code is already a bit ooga booga
[Hector] wait how do I paste formatted code through Discord
\[**[Hector](https://discord.gg/PNMq3pBSUe)**] `_Traders = new Trader[]
{
new Trader(TraderNames.Prapor),
new Trader(TraderNames.Therapist),
new Trader(TraderNames.Fence),
new Trader(TraderNames.Skier),
new Trader(TraderNames.Peacekeeper),
new Trader(TraderNames.Mechanic),
new Trader(TraderNames.Ragman),
new Trader(TraderNames.Jaeger),
};`
[Captain Obvious] Wrap it in ```s
[Captain Obvious] For bonus highlighting, you can wrap it and specify the language, like this:
[Hector] big RIP
[Hector] I'll take a look at your relay later if I'm not like omega tired xD
[Hector] btw I forgot to upload the code to Github
\[**[Captain Obvious](https://discord.gg/PNMq3pBSUe)**] \`\`\`csharp
public Bum bum = null;
\`\`\`
[Captain Obvious] or maybe it's cs
[Hector] in the chatroom it is empty
[Captain Obvious] thats because SO chat suuuuuuuuuuuucks
[Hector] xD
 
[Hector] it does
 
oh damn it!! the voice doesn't work anymore
@mr5 wut happan
 
2:15 PM
[Hector] damn I created the project but I can't find the button in VS to open the github page
[Hector] how can i invite you guys to check the project from VS
[Hector] cus im lazy
 
git remote -v?
 
[Hector] why don't i have a powershell console
[Captain Obvious] WHY NOT SERIALISE NULLS
 
Because null means there is no value, therefore do not serialize it.
 
2:20 PM
who doesnt?
 
user12761381
Something like this?
 
user12761381
#region <Player Alarms> : (Data)
/* Return Time String : Usefull to Display the Time in Applciation. */
private string currentTime { get; set; } = string.Empty;

/// <summary> Variables to Store & Restore Player Alarm Times. </summary>
private DateTime p1Alarm, p2Alarm, p3Alarm, p4Alarm, p5Alarm, p6Alarm, p7Alarm, p8Alarm;

/// <summary> Enumerator : Player Reference </summary>
private enum Players { p1, p2, p3, p4, p5, p6, p7, p8 }
#endregion

#region <Player Alarms> : (Main Get & Set)
/// <summary> Retieve Selected Player Alarm. </summary>
 
@Squirrelkiller jsonconvert does :D
JsonConvert.SerializeObject(null);
 
why would you want to serialize a null
what benefit is there to doing that
 
What if you serialize {MyProp: null} though?
 
2:21 PM
usually not much
 
user12761381
Misses Time Comparison
 
If you do it right, not much
 
the differenc is mainly what meaning you attach to null
 
wym
null is null, no?
 
null is supposed to be "no value" or "I don't know"
 
2:23 PM
[Captain Obvious] But if you don't serialise the property thne you giuve the json to someone it's ambiguous what's meant to happen with the property
[Hector] right so the point is that looks very messy. It would be fast to do, but it looks like ass
[Captain Obvious] Is it meant to be there
 
you could say "null means that there is no value" and "missing means that the value is unknown (and might be null)"
 
[Hector] step by step
 
Except people make an enum that includes "NotDefined" so now what do you do
 
[Hector] first, is it possible to share a private repo?
 
or, you could ask the author of a book, null means that there is no author, and missing value means that you are not allowed to ask for the authors
 
user12761381
2:24 PM
@HéctorÁlvarez: The code above was a quick code run.
I think it simplifies what you're attempting to do.
It misses time comparison (don't have the time to continue right now).
Would be glad to help tho.
 
You can invite people to it I think
 
@Squirrelkiller enums are not always applicable though
 
[Hector] yeah but I'm trying to build something neat
 
user12761381
Leave Graphic Desing for Later
 
but generally speaking, you wouldnt want a difference between missing and null
because most systems cannot identify the difference
a C# object cannot for example
 
2:25 PM
[Hector] if I have to add a trader, that code would mean I'd have to remember wtf I did next time I checked, whereas if everything is properly done, I'd just add a new Trader instance
 
@Wietlol Right, it's just a simple example that is actually everywhere in our codebase :/
 
a property cannot be missing
 
user12761381
Code Simple; effective as possible; once done. Go for the Graphic part
 
For @HéctorÁlvarez and anyone else not knowing about the VS integrated terminal:
 
in JS it does work, where there is a difference between null and undefined
 
2:26 PM
[Captain Obvious] See also
[Captain Obvious] C# Immediate
 
@Squirrelkiller That opened a new window
 
Except now you have two no-values you have to give meaning to
 
[Captain Obvious] I think there's also F# immediate too
[Captain Obvious] why tf did it do that
 
Whoops
 
2:27 PM
[Captain Obvious] Develeloper PS works on mine
 
@Squirrelkiller more modern languages do it even better, they give you 0 no-values you have to give meaning to
 
@CaptainObvious You're mixing like, three different things here
 
that's a video clip
it looks better in discord
 
and serialization formats using strict schemas also embrace such designs
 
2:27 PM
1) immediate window: spontaneous coding during debug break in the current context of the application
2) C#/F# interactive: scripting, has its own context, can load DLLs and change framework at will
 
[Captain Obvious] Oh yeah
 
3) integrated powershell: it's really just a powershell in a VS tool window
 
[Captain Obvious] I knew it was something like that
 
well the point is, all that does is open a new window for me
so no luck
 
This one:
 
2:30 PM
now we are talking
 
Stupid to use developer powershell as a title lol
 
so I can't use that command how because I don't have Git installed
anyway
 
lol what
 
[Captain Obvious] AAAAAAAAAAAAAAA
 
If you have WSL, you can open that too
 
2:31 PM
[Captain Obvious] The thing is CALLED DEVELOPER POWERSELL
 
Right^^
 
i went the extra mile and actually typed github on Chrome so I'm now there
 
gotta figure out how to share the project with you guys
 
[Captain Obvious] Is it public
[Captain Obvious] If not, make it public
 
2:32 PM
I mean, move the repo to the C# SO chat org I guess?
 
[Hector] how do i do that
[Captain Obvious] That works
[Hector] I'll just make it public,I found the button for that
[Captain Obvious] Are you part of the org
[Hector] I think so
 
It's right there in the danger zone
 
[Captain Obvious] Hey you are
[Hector] can you guys see the project?
[Hector] cool
[Hector] I just noticed there's a live share
[Hector] or i could actually share over discord xD
[Hector] anyway
[Hector] so I have the trader structure down, I think
[Hector] will go back to it later
[Hector] I have a timer here
[Hector] I have a very simple grid with the dude's name on it and it should bind to that trader's time
[Hector] later i will add some warnings like sounds and a stoplight
[Hector] maybe more functonality
[Hector] but for now I think the idea should be clear
 
[Hector] this is what the traders look like in game
[Hector] you see all of them have a timer
[Hector] well some are blacked out IDK why
[Hector] but those are countdowns and when they reach 0, they reset their stock
[Hector] bro
[Hector] doing a data binding is so complex
[Hector] who the fuck thought this was a good idea in the first place
[Hector] isn't it StaticResource = Classname?
[Hector] ah shit i forgot the namespace
 

« first day (3989 days earlier)      last day (949 days later) »