« first day (4120 days earlier)      last day (821 days later) » 

6:33 AM
@Mr.Squirrel.Downy good talk
 
7:00 AM
@mr5 double you double you double you
 
mr5
7:38 AM
@EdGzi what is realtime firebase?
@nyconing yep, that's how I pronounced "w"
 
8:24 AM
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' pleberinos!
 
9:19 AM
just a fancy name for full online database
because firebase introduced in earlier as asynchronous cached database
 
mr5
So it's realtime database not realtime firebase
 
So its computer or mac?
 
10:12 AM
I believe you can subscribe to an listener, where you can see updated information in real time.
 
but it would probably be a pain to wait for the completion confirmation at your request
 
10:42 AM
[Captain Obvious] Why are Apple so bad at naming iPads
[Captain Obvious] They nailed the iPhone naming scheme
[Captain Obvious] iPhone <version> [<size>]
[Captain Obvious] But iPad? Nah
 
mr5
marketing team
@EdGzi It's already implemented on their SDK. Have you tried the samples?
 
[Captain Obvious] The format seems to be `iPad [<Air|Pro|mini>] [<version>] [<screen size>] [<generation>]
 
mr5
are you making an iPad name parser?
I've been dealing with this Android's DownloadManager for the whole day ffs.
If only I could make my own and not use their shitty SDK
 
[Captain Obvious] I'm trying to make a small sensible set of iDevices for building/testing against
[Captain Obvious] But picking which ones to use is a pain without just going "fuck it lets have all of them"
 
iPad mini Air max (5th generation).final (Copy 2)
 
10:49 AM
[Captain Obvious] ah but max isn't in the ipad names ((yet)
 
neither is (Copy 2)
but it will probably still happen
 
[Captain Obvious] Wait waht did the "New iPad" get renamed to then
 
"iPad the new one"
Apple can be happy I don't own them :D
 
mr5
iPaid, uPaid, everyonePaid
but I've heard their tablets are topnotch.
I was planning on buying one but I can't afford Apple products
 
[Captain Obvious] May as well get a mac these gays
[Captain Obvious] Literally runs all the same shit but you can attach a decent screen and run "real"(ish) apps
 
mr5
10:58 AM
meh. I prefer Android for that kind of thing
iOS still lacks a bunch of features
few more years and Android will replace Windows
 
[Captain Obvious] Exactly
[Captain Obvious] To shit for a tablet size display
[Captain Obvious] Not useful enough for a desktop usage scenario
[Captain Obvious] Tablets are such a weird market segment which shouldn't exist
 
mr5
Bring that M1 to Android and it would be closer
 
[Captain Obvious] It's just the same as all the other arm processors in android devices
 
mr5
For performance of course
M1 is the fastest chip now
 
[Captain Obvious] Android runs like ass and always will
[Captain Obvious] MacOS only runs well because it's hyper-optimised for the specific hardware config
[Captain Obvious] See also: iOS
[Squirrel in Training] MacOS: Closed system no foreign parts
[Captain Obvious] Windows doesn't run any better on apple hardware
[Squirrel in Training] OtherOS: Open: your machine you can do what you want
[Captain Obvious] It's amazing how well shit can run when you don't have to deal with zillions of edge cases of random bizzaro hardware configurations
[Captain Obvious] Largely the same reason why game consoles can perform as well as they do with the games they run despire their hardware
 
11:03 AM
@mr5 No not yet, any good?
 
TempleOS: pray for performance
 
11:59 AM
Tablet is good. Way better for reading/watch movie on a train than a mobile
also preferred in a toilet
 
12:59 PM
    var vm = result
        .Select(t => new MeetingVM
        {
          Boolean hasAddress = string.IsNullOrWhiteSpace(t.MeetingCity) && string.IsNullOrEmpty(t.MeetingState),
          MeetingName = t.MeetingName,
          MeetinPlace = hasAddress == false ? t.MeetinPlace : t.MeetingCity + ", " + t.MeetingState,
        })
        .ToList();
 
So I should be able to do something like this?
 
No, you're within the object initialiizer
 
so my only options is
MeetinPlace = string.IsNullOrWhiteSpace(t.MeetingCity) && string.IsNullOrEmpty(t.MeetingState) ? t.MeetinPlace : t.MeetingCity + ", " + t.MeetingState,
 
.Select( t =>
{
  Boolean hasAddress = string.IsNullOrWhiteSpace(t.MeetingCity) && string.IsNullOrEmpty(t.MeetingState);
  return new MeetingVM
    {
      MeetingName...
      MeetingPlace....
    }
  }
).ToList()
 
1:05 PM
thanks
 
I would probably review that logic there
"hasAddress" looks like it has the meaning of "hasNoAddress"
 
Right thanks
 
and the string concatenation might not really work as you intend
 
Yeah make an interpolation instead
 
Not sure what you mean
 
1:17 PM
considering your current logic, you would do t.MeetingCity + ", " + t.MeetingState if at least one of them is non-empty
so, if only one of them is non-empty, your result will either start with ", " or end with ", "
 
I see
 
this is where Optional<T> comes in very useful
 
what can I do with Optional<T>?
 
obviously, you would have to wait until .net 14, when MS finally decides to use well structured containers
but generally speaking, if you just encapsulate this logic into a function or property, you should be fine regardless
 
I understand thanks
 
1:22 PM
the implementation of MeetingLocation should be easy even if you dont use fancy tools
 
2:06 PM
@Jefferson This is your concat changed to interpolation: $"{t.MeetingCity}, {t.MeetingState}"
 
How is that different?
 
Interpolation is faster than concatenation
And from .NET6 it's even faster than before
Also just one string allocation
 
I see its speed
 
2:34 PM
Also it looks nice
 
2:44 PM
meh
I would prefer it without the string modifiers, but I suppose it is a better version (which is still backwards compatible) than introducing new quotes
 
I always have to think before using any strings in js :/
 
3:11 PM
meanwhile Groovy:
'single-quoted string'
'''triple-single-quoted string'''
"double-quoted string"
"""triple-double-quoted-string"""
/slashy string/
$/dollar slashy string/$
 
mr5
3:40 PM
How do I convince our CTO to use React?
 
mr5
4:00 PM
@mr5 start with showing a diagram how it can be beneficial for the product in terms of cost, scalability, ux
 
Dafuq is wrong with groovy
@mr5 Nice one mr5's other hand
 
mr5
kek
 
Also dev velocity
 
mr5
what are you doing that you needed groovy?
 
There's an old saying to prefer the tools you know
 
mr5
4:01 PM
I was pondering all day how do I convince the team that our frontend sucks so bad and their "templating" system affects the localizability of our texts
I think I got exposed a bit on groovy since that's where the Gradle/Kotlin based its syntax
 
Prashanth Chandrasekar on January 26, 2022
It’s hard to believe we’re already four weeks into the New Year, especially as everything we have to celebrate from 2021 is still fresh in my mind.
 
@Squirrelkiller groovy is a prime example of feature creep
@mr5 groovy is a dynamic programming language for the JVM
I used to use it for scripting purposes, and a bit for dynamic programming
 
mr5
what does feature creep means?
 
but now, I just use it as an example
> Feature creep (sometimes known as requirements creep or scope creep) is a tendency for product or project requirements to increase during development beyond those originally foreseen
 
mr5
yeah, groovy is like the JSON of programming languages
 
4:10 PM
hmm... not exactly what I meant, but still correct
nah, JSON is very strict
Groovy is like "just do whatever, I will figure out what you want"
with a million ways to do the simple things
 
Hey everyone, I'm a javascript/typescript developer getting into C# for Unity development. I'm curious if anyone knows a good resource for going from javascript to c#. For instance, in Javascript, I use maps/dictionaries all the time but then in C# tutorials I often see people doing array traversal.
 
@mr5 Gradle IS Groovy
 
mr5
@Wietlol so you're implying that if a devs is seemingly want to try Groovy, the workload would just increase?
 
@mr5 no
I mean, the designers of Groovy had an idea of what the language should be and as they were developing it, they just kept adding more and more "features"
so they were like "what if people dont want to use double quotes for their strings?"
and "what if people dont want any quotes for their strings?"
and "what if people want quotes but not having to escape the quotes?"
 
ye
 
mr5
4:14 PM
@kugyousha you're going to be in better hands. Statically typed languages is just way better.
 
and "what if people dont want to escape anything at all?"
and they just went "lets make a different language feature for every case we can find" :D
 
@mr5 I'm into it, I'm just a little confused about how I see people using the language
 
When you next online?
 
mr5
Choosing between a list vs map on JS is seemingly unnatural because the language make it appear there's very little difference
 
We don't know much about them, but we're sure Wietlol is great.
 
4:16 PM
@EdGzi I have never been online
 
:o
 
@kugyousha people use it in different ways... is there a particular way that confuses you?
I do apparently have 6 followers though... creepy
 
You'll have 7 soon
 
The exact scenario that I saw was for procedurally building maps they had an array of
@Wietlol Vector3 and they were searching the entire array on each pass to see if the same Vector3 was there before adding a new Vector3. This seemed unnecessarily expensive, I was thinking of having a dictionary where the keys are toString(Vector3Int) so faster look-ups.
 
 
4:18 PM
Sorry I added the name in the wrong place
 
Changes it quick
 
using a dictionary might indeed be faster
but unordered
also, takes more space
and it might be slower
depends on the amount of entries
 
The map is totally random so no problem if it's unordered
might be a 200-4000 entities
 
you could also use a sorted array
 
maybe more for bigger worlds
 
4:20 PM
if order doesnt matter
sort by x then y then z
or just use a HashSet
 
Any downside to using a dictionary?
 
not specifically
but in this case, a sorted array or a hash set are probably better
 
Why did you move to C#?
 
because you dont really care about how you can find the records, just to see if the records are there
 
For Unity game development
 
4:22 PM
What you developing?
 
I'm not familiar with a hash set so I'll look that up
 
a hash set is basically a dictionary where the values are the same as the keys
 
At the moment a procedurally generated old-school dungeon-crawler
oh that's perfect
 
"a collection of unique elements"
 
As a hobby I presume ?
 
4:23 PM
As a hobby
 
It's what maths define as a "set"
 
good luck !
 
Thanks!
 
but maths and programming dont align more often than they do
unless you use matlab for example
 
Wiet
do you every use delegates?
 
4:24 PM
Thanks for all the tips everyone I appreciate it! I'll come back sometime, no I gotta head to work
 
any questions..
ask Wietol
 
delegates are just aliases to Func<> and Action<>
so generally speaking, I just use Func or Action
but I do sometimes use it when I do want an alias
for example in combination with dependency containers
always ask Wietlol, but always doubt the answer
 
Wertical Take Off and Landing aircraft
 
Why the lion Wietol?
A green one too
 
4:27 PM
> Wietlol
 
WietLOL
How did you do the | ?
 
> its not weitlol, wietbol, weitol, wetlal, wietnam, wietlawl, wietrofl, wietroll, wietlmao, waldoil, walido, wiedol or wheat-lol, its Wietlol damnit
 
wietbot?
 
There's some kind of markdown going on here
No that's @Wietbot
 
wietnam hahahaha
 
4:28 PM
also, there used to be Wietbot, yes
 
Woah it's not even in autocomplete anymore
 
but he is currently sleeping
neither is captain obvious
 
awaken the dragon
 
its a lion
 
oh yes
Home time in 30 seconds
 
4:29 PM
and if I awaken it, there is a great threat to all other bots as they will be consumed by the blue lion
 
Need it awakening..
 
I guess I could make Wietbot just spam the other bots in the sandbox and totally DOS them on the other channels XD
 
mr5
@Wietlol example is vector in math and vector in c++ lol
 
||Should we awaken Wietbot?
 
Invalid command! Did you mean: gold, help, choose? Try help for a list of available commands.
 
4:30 PM
ffs I want Cap back
 
hahaha
By all
and Wietnam
 
mr5
would you quit your job just because the product is shit?
 
nah
I would quite my job if the team was
 
mr5
4:33 PM
yeah, that's a good perspective
I do hear a lot of devs quitting their job just because their wishes about which stack to use isn't granted
esp those who work a big techs
they are very privilege folks
 
I use C# almost exclusively at work
and I still work there :D
this year, we will get a few Kotlin applications though
 
mr5
have you tried working with coroutines yet?
 
not really
the only case I have used coroutines are with direct scopes
which is how Kotlin does yield returns
 
mr5
I am still confusion about suspend and launch and async thing. I think I understood a bit how coroutines continuation work, but still.
 
which is a major improvement over what the heck C# came up with
suspend is basically the same as async in C#
launch is basically the same as Task.Run()
 
mr5
4:37 PM
hmm, I don't think so
 
but you have to run said task in a specific scope
so the scope (for example runBlocking or globalScope) would be task factories
 
mr5
does Task pause and continues at some point? I think it blocks the entire thread if you have a blocking ops running in it
 
a task gets suspended, at which point the thread gets detached from the task
the thread would return into the pool of the scope
iirc, runBlocking uses a single-thread pool, which is the thread you used to call runBlocking
 
mr5
single-thread-pool sounds like it's not a pool
like it should be just a dedicated thread?
 
it is an adapter
 
mr5
4:42 PM
if it's a single-threaded pool, does it still belong to the other pool? is there a lot of thread pools?
 
coroutine scopes work with pools
the pool could be just a single thread
there are as many thread pools as you want
 
mr5
but if there are as many thread pools out there, I think they must have very good reason why they did that?
I was thinking it's more logical to have a single thread pool for the entire process instance
and this thread pool instance would be tied to the OS level thread pool
 
not really
 
mr5
which is also a single pool for each OS instance, but since OS to hardware threads is 1:1, it doesn't really matter
 
generally speaking, you can have a background process for example, and you can give it a fixed thread pool of 1 or 2 threads
then that thread pool uses a lot less processing than your (http service) controller threadpool of 8 or 16 threads
the amount of calls that can run in parallel also is a very important thing
 
mr5
4:50 PM
what I think it actually does is something like this: val processThreadPool = process.availableThreadPool.request(count: 8)
and this process.availableThreadPool count is logically just limited to a certain extent, but if the process asks for more, it will just create virtual threads
anyway, I'm done with this. I think I don't even have an idea if any of what I said is true or makes any sense lol
@Wietlol and the prioritization is an OS level thing or VM thing? Or depends on the language?
 
mr5
5:07 PM
@Wietlol are you familiar with artifact registry vs container registry?
 
5:58 PM
 
6:16 PM
@mr5 kind of, but not really
@mr5 "artifact registry" makes me think of a package store like nuget or npm
and "container registry" makes me think of containerized application hosting like docker or aws lambda
 

« first day (4120 days earlier)      last day (821 days later) »