« first day (3420 days earlier)      last day (1535 days later) » 

10:00 AM
@CaptainSquirrel drink super bock
 
@Harry sagres > superbock
superbock is nice, don't get me wrong
 
No only leaked a little
 
but sagres is better
@Squirrelintraining ur lucky
 
10:01 AM
 
guize, can we stop with the loading
 
I love loading
 
but why is bear inside freezer
 
This is much better
 
10:03 AM
@nyconing if you have a bear in your freezer, you have problems
 
@CaptainSquirrel you know temocos?
I bought like 4 jars of them yesterday :D
 
Bear?
 
But putting beer in the freezer helps it get cold quicker
@Squirrelintraining temocos?
wat
 
10:04 AM
did you mean tremocos?
 
bare bear
 
@CaptainSquirrel ya
Typo
 
@Squirrelintraining i have never tried them
any good?
 
They are super tasty!
 
10:10 AM
lmao
 
What is a tremoco
 
trivago
 
mr5
ugh
do you guys know a more elegant way to check against a flag?
 
flag.Check()
 
mr5
if ((flags & Enum.A) != 0)
in C, there is
wtf is that wiet?
 
10:15 AM
@CaptainObvious some type of bean apparently
 
or... FlagCheckerFactory.CreateFlagChecker().CheckFlag(flagToBeChecked).Status.Equals(FlagCheckStatus.Enabled)
 
Go away Java man
 
its C#
 
I don't believe you
Anything with factory in HAS to be java
 
@mr5 it's something similar to that
It's not an easy thing to check if you're using bitwise enums
 
@CaptainObvious lupin seeds
 
TIL
Console.WriteLine("{0} includes {1}: {2}",
                        myOrder, flagValue, myOrder.HasFlag(flagValue));
That's valid
 
mr5
@Wietlol noice
 
you mean the format or HasFlag?
 
YOU MEAN ALL THIS TIME I'VE BEEN USING string.format AND I DIDN'T NEED TO
 
10:18 AM
or the newline?
 
mr5
yeah, that's more "elegant"
 
why would you do that
 
Well, string.format // $"{somevariablehere}";
 
^
 
10:19 AM
@CaptainObvious because when i started coding that's what was used
Sec, lemme turn on the 007 filter
 
when I started coding, goto was popular
 
Console.writeline($"{myorder} contains {flagvalue}: {myorder.hasflag(flagvalue}");
 
do you see me using goto nowadays?
 
mr5
In C, you can use union and access each bit by fields
 
Back when I was a young snapper, we didn't have this fancy formatting without string.format, we had to make do with an orange and some paperclips
 
10:19 AM
@mr5 union?
 
Have we had jibberish guy back yet?
I feel like he just joined the room again, but the account has 1 rep so
 
I used XOR style flag checking when I wanted to obfuscate my easter egg
 
@CaptainSquirrel It was added in 2015 tho
 
@CaptainSquirrel klingon guy?
 
mr5
union {
    struct {
        int A: 1;
        int B: 1;
        int C: 1;
    };
    int alphabet;
};
@Wietlol ^
something like that
iirc, you can access the mantissa(?) and the sign of a float/double using that approach
 
10:24 AM
@Wietlol ye
@CaptainObvious ..................it was?
is it home time yet?
I have to work late tonight :(
 
Ya, added in C# 6.0
 
well
shut up
:)
 
It's fine I only found out about it about 18 months ago
 
@mr5 I still dont get how that makes sense
 
mr5
search for bitfields
 
10:29 AM
such effort
many cry
 
BitArray
 
mr5
haha
I'm busy lol
will answer you later
 
Strng Interpolation FTW
Was one of those things that when it got added as syntactic sugar for String.Format I was like "Why the fuck didn't you just do it this way to begin with?"
 
because its MS?
why didnt they add in null awareness at the beginning?
why didnt they add properties at the beginning?
 
i hated string.format, let's create a way to avoid string concatenation, but make it take twice as long to type
 
10:34 AM
why didnt they make generics at the beginning?
 
i dunno, go email them :P
 
basically every feature you can name should have been there at the beginning, but you cant just think of all of them
 
some things are difficult to do, but considering string interpolation is just sugar for string.format, i couldn't understand what took so long lol
yeh but string.format always looked clunky
 
I know a few more syntax sugar things that takes them way too long
also, string interpolation is one of the deadly features for the lexer
most lexers have strings as a single token
 
lexer?
 
10:37 AM
interpolated strings, when done properly, require multiple tokens
lexer is the thing that parses your string into meaningful stuff for the compiler
 
ooo, and that doesn't happen with string.format? thought when i read up on it it had no performance hits using string interpolation?
 
its a compile time thing
so no performance difference really
 
ah now im with ya
only during compile
 
hi
 
probably adds o.o5 seconds or something
 
10:39 AM
the lexer will look at your code Console.WriteLine("Hello World!"); and give you a list of tokens
 
0.05 (how did i somehow use the o character instead of a zero?)
 
does anyone have experience in deploying Microsoerves using Azure Devops
i have a project that has several microservices
 
[
    Token(text: "Console", type: "Identifier"),
    Token(text: ".", type: "Dot"),
    Token(text: "WriteLine", type: "Identifier"),
    Token(text: "(", type: "OpenParen"),
    Token(text: "\"Hello World!\"", type: "String"),
    Token(text: ")", type: "CloseParen"),
    Token(text: ";", type: "Semi")
]
 
not me sorry, I have no Azure xp :(
 
I have Some experience with devops
 
10:40 AM
oh yeah that is a few tokens
 
then, your parser will go through them and find out what kind of syntax this sequence of tokens represent
 
I imagine deploying microservices would be v similar to just deploying a regular app
@techno if i can help i'll try to
 
oh well, that's the whole point of computers, make them work harder so we dont have to :P
 
with interpolation, your "String" token, must be split up in different parts
 
so please ask away :)
 
10:41 AM
and many lexers just cant do that properly
 
@CaptainSquirrel Thanks
 
gotcha
brb
 
!~shiba
 
kawaii
 
10:41 AM
dayum son
 
 public async Task<bool> ExecuteNonQueryAsync(SqlCommand cmd)
        {
            using (SqlConnection sqlConnection = (SqlConnection)sqlHelper.CreateConnection())
            {
                sqlConnection.Open();
                cmd.Connection = sqlConnection;
                using (cmd)
                {
                    return await cmd.ExecuteNonQueryAsync() > 0 ? true : false;
                }
            }
        }
Will using block in the above code, dispose command ?
 
not before return
but it will dispose it, yes
 
@Wietlol command is being sent from outside
 
I noticed
 
It's been a while since i've done things directly against sql, but don't you need to specify a connectionstring to be used?
 
10:45 AM
You might not want to dispose a command you were passed in. The caller might not expect that.
@CaptainSquirrel sqlHelper.CreateConnection encapsulates that.
 
lol method invoker will angry and blame your method, you broke their own object
 
the sql api is soo sad :( makes me cry
 
@Squirrelkiller The project has several microsservices,a gateway a Front end .net Core project with Angular 8
i have uploaded the project to Git on Devops
the next step is to create PipeLines for the build .. right?
 
@AvnerShahar-Kashtan right you are
 
@CaptainSquirrel
 
10:47 AM
my code that does sql stuff is similar but not
using (var conn = new SqlConnection(_connectionString))
{ ... }
 
lots of squirrels here ...
 
how should i proceed ?
 
@techno ok so what are you actually trying to achieve
do you want CI/CD?
 
I need to Continious Build
 
10:48 AM
ok
 
you definitely do want to have CI/CD
 
and Deploymnet using Devops
 
so build on every push and deploy to a server
not overly complex
 
so when the code is pushed ..
 
with a microservice architecture, the one thing you should focus on is automating everything
 
10:48 AM
The biggest problem you might run into will be correct dependencies on the build server
 
it should be built and deployed
 
every manual task stacks up huge
 
@CaptainSquirrel (SqlConnection)sqlHelper.CreateConnection() takes care of getting connection string
 
Ok, so @techno do you ust build via visual studio and test your stuff locally that way
 
@CaptainSquirrel okay.... @Wietlol okay
 
10:49 AM
or do you use like gulp or something
 
hmm... okay
what should be the pipeline rules for this?
i guess Building Microservices will produce some Dlls
 
do you use serverless?
 
and a Windows Service can be used to host the service
@Wietlol
no...
 
hmm... that is what we use to build and deploy...
 
@techno I wouldn't want to suddenly spring up a whole new set of options, but perhaps a better option for microservices would be to create docker images for each service, and host them in Kubernetes.
 
10:51 AM
@AvnerShahar-Kashtan okay....
will need to think about it
 
In an aside, I've finally started writing actual code in the project, which is nice.
 
but we need Git support
and azure provide all
 
doesnt azure also provide a docker service?
 
@Wietlol Yeah, you can either take a whole managed Kubernetes service, or simply host a docker image.
 
don't know ....
will need to check ......
 
bk
 
@AvnerShahar-Kashtan The Services wont be deployed in Azure
it will be deployed in some other systems
in that case .... will Docker and Kubernetics work ?
 
still, I'd assume that Azure Functions would be a nicer hosting than docker containers
 
You'll probably have to do more work on your own to push the docker images into your kubernetes, then.
 
@Wietlol I'm a Noob don't know much about Kubernitics
and Azure ...
@AvnerShahar-Kashtan Could you please give more detail ?
Where can the code be hosted ?
 
10:56 AM
we basically have the same options in AWS, either go for AWS Lambda (serverless function) or AWS EKS (kubernetes service) but the AWS Lambda is definitely our preferred hosting service
@techno how do you deploy at the moment?
I assume you already deployed a few services to try stuff
 
Actyally the application is not deployed
 
You don't need Kubernetes because you're not Google
 
we are testing by using a Host project
then the web application is run
 
what Azure service do you intend to use?
 
ie: Microservices are run
 
10:57 AM
if you want Microservices, I can highly recommend Azure Functions
 
then Web application is run --> .net core + angular 8
 
if you go microservices, please go for a serverless environment
you can thank me later
 
@Wietlol :)
The team lead asked me to do some research on this
i'm not the one who makes decisions
i have heard the term 'serverless'
but i actually dont know what it is
 
Monolith is still better in some cases
 
there are two serverlesses I am speaking of actually
there is the concept of a serverless environment
 
10:59 AM
basically he needs CI/CD
 

« first day (3420 days earlier)      last day (1535 days later) »