« first day (2006 days earlier)      last day (2951 days later) » 

user47589
10:00 PM
i had to turn off AdBlock and Disconnect before i could see the job ads
 
Hello
If a person is new to HTML & CSS - And they dont have a IDE
What is a simple and easy to use IDE for such a person, and do they need one? What is your recommendation?
I want to try and get a person interested in coding
I assume Notepad++ ?
 
VS for web
 
I think VS Community Edition is pretty nice IDE even for basic html & javascript development.
 
Ok
 
because you can easily evolve your app to server side with node or mvc.
 
But if we are just gonna concentrate on the very basics
 
VS for web is the best out there
 
sanity check
return uri == null ? null : uri.Host;

is the same as

return uri?.Host;

right?
 
A == B IF A:B - Is that your question ?
 
VS for web is the best Especialy if you want to dive into js
 
10:04 PM
Oops
its the L in SOLID :)
Or a very BRIEF version of it.
So is that VS Code ? @TylerGregorcyk
 
VS code?
 
no
That works too
This is just like VS for C#
but for web
 
Link please :P
 
So added stuff for CSS HTML JS
Microsoft Visual Studio Express 2012 for Web
 
10:08 PM
I ASSUME VS Code is a updated version of it
 
I have no idea
VS for web is just VS with added shit for web
So if you are use to VS because of your C# coding
VS for web will be easy to use
nothing new to learn
And its not in beta like VS code
 
I see, well the IDE will be used by someonne that is brand new to coding.
Friends in chat were going gramma nazi on my rectum earlier :D
 
Ive never used Visual Studio Code, but what i can see from reading the page it looks friendly to new programers
Dont worry my grammar is at a level of a 5th grader
Are you teaching a friend how to code?
 
The IDEA is to teach a girl how to code, we have been chatting for over a year. She is from my home town in Kurdistan
And she always seemed curious what i was doing
so i had a crazy idea to get her to get an IDE
and then we build something togheter
 
And just hope she learns
 
10:15 PM
Because I need to dive into Javascript
and meantime i can teach her HTML + CSS
is the IDEA
Use her kind of like a fuel source to progress.
 
I love it
 
This windows 10 bugs are going crazy when im developing in visual studio, destkop doesn't refresh and taskbar icons are invisible O.o
 
If you are going into JS just remember its nothing like C# or C++
if you code in C#
 
I do code in C#, SQL.
I have played some games meant for children and the syntax might not be 100% but if u have a grasp of coding a lot of things seem very familiar.
 
This is a great in depth video about how JS works: youtube.com/watch?v=Bv_5Zv5c-Ts
 
10:20 PM
Thank you, i will check it out tomorrow.
 
On the outside JS and all other Programing languages work the same, but im talking about under the hood js does some weird and cool things
 
I cant take in anything right now (12:20 in Sweden so my mind is tired).
 
That video will talk about some of the weird and cool things js does differently
 
@TylerGregorcyk "Magicians (you call them developers) do magical stuff with computers that make shiny things move on a website. Pay them $$ and they'll keep doing it". That's how JS works for beginners.
 
@RyanTernier I guess we should switch from developing in C# to JS and Webdevelopment
 
10:26 PM
@MatthiasHerrmann It's all magic, pixie dust and dragon slaying. Software development rocks.
 
I love pixie dust
and angel dust
wait i mean angle
i love that 90 degree angles
 
I'm working on a windows universal app for 1 week now and it is finally going to be released soon. Now I am doing the magic annimations :D
 
Started this job 8 days ago (Sr. Dev Team LEad (acting CTO)) and I've done 5 pushes to prod. At my last job, we pushed to prod 1x every 12 months
 
user47589
wow 5 pushes in 8 days
 
You should go back to your old job
 
10:30 PM
+1
 
@TylerGregorcyk I loved my last job at CGI (big corporate enterprise company). But I really love this opportunity.
 
@RyanTernier welcome to the 21st century
 
@Codeman Nah, there's a reason why companies / projects do releases on a slow scale
 
Hi guys
 
I wrote 10 pages of extra code so I can update the App more easily and finally It pays off
 
10:35 PM
One bug and hospitals can't retrieve : Blood types, demographic information, patient inforation, etc.
 
Do you know what causes the EditorFor (Dropdownlist) to not save a new value and instead post the old data?
 
@RyanTernier I know. On the flip side, if you do a giant release all at once, the chance of catastrophic bugs that are impossible to roll back is higher
when you do lots of small releases that you can easily roll back, you have more incentive to write fault tolerant systems that are atomic and decoupled
 
@RyanTernier How do you check your codes for errors, are ther mathematicians who calculate the risk of bugs?
I remember where there was something in the news about a bug in a program used by a hospitol and the pacient was harmed, the change was 1:1000 that the bug occurred
*hospital
 
10:49 PM
@MatthiasHerrmann 2000+ unit tests, 700+ system tests. ALl must pass. Then 6 months of regression testing done by a QA team and the clients.
then 1 month of testing for all hospital / health authorities on their own stacks.
we had ~18 stacks of servers (each stack has 3-5 servers)
Here at InvestX, ... it works on my machine haha. (that will change soon)
 
@RyanTernier Ok that will do it O.o
 
Can i write to a console form a library?
 
yes, but the console may not exist
 
Im working on a project with a friend. We are making a online market and im making the back end of the app and he is making the GUI. He is telling me he is getting a "System.Net.Sockets.SocketException" from my library from a try catch loop but the library is not writing to the console with my Console.WriteLine() in the catch
is called
So i dont know witch try catch loop it is failing on
 
11:07 PM
why do you call it a "try catch loop"?
 
Try catch
Happy
I know its not a loop
 
i just assumed he meant the socket listening loop w/ try catch in there some where
 
Well half my genes come from someone who would frequently use "if loops"
._.
 
lol your dad?
 
11:10 PM
how are you kendall
 
not sure what that means
are you missing one punctuation or two?
 
user47589
how would you be if you were Kendall?
 
!!wat
 
how? are you kendall?
how are... you kendal?
how are you, kendal?
Now which actors say those the best... Nick Cage... or Cane from CSI...
 
11:19 PM
how are you, kendall?
 
How are you
( •_•)
( •_•)>⌐■-■
Kendall
(⌐■_■)
YYYYYYEEEEEEEAAAAAHHHHHHH
 
user47589
KENDALL BEGIN QUERY SPECIFY CURRENT HEALTH STATUS END QUERY EXECUTE
 
@SteveG slightly bored, wishing I had someone to play a fun game with
 
well i'd play, but none of your games are fun
 
ditto
 
11:21 PM
night guys, i'm outi
 
night night
 
I'm definitely innie
 
lmao
hilariously random
 
not random at all
 
11:23 PM
I'm testing my fitness app for bugs, it is hard to do a workout at this time :D
 
Do you know what causes the EditorFor (Dropdownlist) to not save a new value and instead post the old data? I've checked the console and input has the new value...
 
@KendallFrey i didn't make the connection at first
 
Do you have more than one input with the name that you're binding to?
 
@Jakotheshadows No
 
No hiddenfor?
 
11:25 PM
Two:
@Html.HiddenFor(m => m.CaseId)
@Html.HiddenFor(m => m.FamilyTreeMemberId)
I even removed them and it was the same.
 
and what is the editorfor you're having problems with
 
It's a ComboBox for country, city... When I select a new City it doesn't save it.
I didn't have this issue last week.
 
What HTML gets generated for the editorfor?
and whats the code for it
 
I'm using Kendo UI.
EditorTemplate:
@model object

@{
    var bindto = ViewData.ModelMetadata.AdditionalValues["BindTo"].ToString();
    var fieldname = ViewData.ModelMetadata.PropertyName;

}



    @(Html.Kendo().ComboBoxFor(m => m)
          .Filter("contains")
          .Placeholder(ViewData.ModelMetadata.DisplayName)
          .DataTextField("Definition")
          .DataValueField("Code")
          .HtmlAttributes(new { style = "width: 100%", Id = fieldname })
          .BindTo((System.Collections.IEnumerable)ViewData[bindto])
Output:
<input id="BirthMonth" data-val="true" data-val-length="The field Month Of Birth must be a string with a maximum length of 2." data-val-length-max="2" name="BirthMonth" style="width: 100%; display: none;" type="text" value="8" data-role="combobox" aria-disabled="false" aria-readonly="false">
I'm using the EditorFor for Month as well.
Selection is August now
If I change it to something else, it saves "8"
 
I've never touched Kendo-ui before so I'm not sure what is all going on there
a combo-box is like a dropdown you can type text into right?
 
11:29 PM
exactly.
 
Ok. Yeah not sure, I've never done one of those in razor or worked with kendo-ui
 
I even tried with solid textbox and it was the same.
 
if it was just a dropdown I was gonna be like, erm wtf is going on there
 
I step debugged my controller, the weird thing is that it shows the correct value in Controller.
but it doesn't save it.
 
what do you mean by that
if it is binding correctly I'm confused about what your problem is
I thought it was still binding the old values
 
11:32 PM
I'm confused as well.
 
I mean, I don't know what you mean by not saving
 
It binds correctly to Controller but it doesn't save the new value and instead it returns the old value from db.
 
oh
well that has nothing to do with kendo ui or your view lol
we'd need to look at how you're attempting to save the value, the controller code and the exact scenario you're doing to get the bad result
 
yes, that's right. I said Kendo because they sent a new update during weekend and I thought it could be that.
 
Ok, I'd start by debugging that and making sure that the entity that you edit gets the right value by the time you do db.SaveChanges(); I'm guessing you're using EF?
 
11:38 PM
yes
 
also you said the problem is month?
ftmember.BirthMonth = await db.MonthDD.SingleOrDefaultAsync(x => x.Code == editfamilytreemember.BirthMonth);
 
Exactly, anything that has SingleOrDefault...
let's pick Month
 
Why are you updating the entity's month value from the database if you're trying to update it from the view model?
ftmember is the entity you're trying to update, right?
 
I'm doing this in order to get the Value from my Lookup table.
@Jakotheshadows yes
@Jakotheshadows Anything that has DD at the end means DropDown, which I've all the preset values for DropDown/ComboBox
 
what value are you expecting to get out of that?
 
11:42 PM
MonthDD:
Id:1
Code: Jan
Definition: January
.....
So the user will get the DropDown based on Definition
 
I'm so confused about the way you're doing this
so I mean
the way I would do it
if it was just a regular dropdown
the values of the options would all be the months you're trying to look up in the database
rather than the number for it and then looking up a month name in a database
are you afraid the month names are going to change?
 
no
that's the only DD that it's fixed
we don't have any 13th Month
but for other properties like Country, City, I'll be adding more...
 
its fine to have those
but what I'm saying is
when you send your first edit view out
the values that they pick from should already have the full list from your DD as values in the select options
I'm not sure how that works with a combobox or kendoui
 
it's the same...
basically
these 3 lines are important:
.DataTextField("Definition")
.DataValueField("Code")
.BindTo((System.Collections.IEnumerable)ViewData[bindto])
 
its an extra database lookup, isn't it?
I mean, to populate the view in the first place you gotta give it those codes from the database to bind to the select options
then you use those codes to hit the database again
why
 
11:47 PM
My dropdowns are all showing data directly from db, so you mean there is no need to re-check everything.
It's logical
 
are you concerned that they'll change in between edits?
 
Why am I doing that?
yes that's one thing...
 
then maybe instead of having your entity store the string value they just have a foreign key to the table
 
Side information: Those ...DD tables have FK inside ftmember table
 
that way if the entity they're linked to gets updated
you don't have to worry that they will become stale
 
11:50 PM
so it seems I've already done the job in terms of no getting concerned.
FK will assure, right?
 
Well think of it like this
if you have an FK
its basically a reference to the other table right?
 
thats exactly what it is
so even if the row in the referenced table changes, its already up to date in the referencing table
no matter what
instead of storing the data in a bunch of places
store it in one place
and link to it
 
Mine looks like this:
This is the ftmember table
so, I only save the FK value
which is referenced to it's own table such as Month, Country and etc...
 
right
 
11:53 PM
as the conclusion, during the Saving process I don't need to check the value with db, I can trust the ViewModel value.
So, this:
ftmember.BirthMonth = await db.MonthDD.SingleOrDefaultAsync(x => x.Code == editfamilytreemember.BirthMonth);
 
you might as well
 
will be changed to:
ftmember.BirthMonth = editfamilytreemember.BirthMonth
 
if it isn't there you're going to run into an error either way
so why sweat it
yeah why not
I mean
It is hard to tell
I can't see your entities
but basically yeah, you should trust your view model
 
Ok, I just did it now and I get intell. error
Cannot convert string to DD...
I now why I was using the SingleOrDefault, because of this reason.
 
my guess is that BirthMonth is a virtual foreign key entity
like public virtual DD... BirthMonth {get; set;}
right?
 
11:57 PM
yes
public virtual MonthDD BirthMonth { get; set; }
lazy loading?
 
try instead of assigning directly to that,
do this:
ftmember.BirthMonthID = Int32.Parse(editfamilytreemember.BirthMonth);
or whatever the name of the foreign key column is
 
ftmember.BirthMonth.Id = Int32.Parse(editfamilytreemember.BirthMonth);
correct?
error is gone...
 
no
nonono
 

« first day (2006 days earlier)      last day (2951 days later) »