« first day (287 days earlier)      last day (1051 days later) » 

7:28 AM
Morning everyone!
 
 
3 hours later…
10:54 AM
Hi all
Hi Luca
 
Hey Alex
How u doing?
 
Doing all right. How are you, Luca?
 
Doing great! I have to make a presentation about Machine Learning in Domotica
 
Nice
 
Yeah, it is pretty interesting
We have to do the presentation with a group, and they wanted ML, but I wanted Domotica. So I just combined them to get what I want haha
 
11:08 AM
Look into Prezi for your presentation
It gives you an online, infinite canvas to showcase your stuff
 
Yeah on my previous school I've seen a lot of people use it
 
It beats Powerpoint by light years
 
But I never did my work so had to do everything in the 30 minutes before class, so PowerPoint it was haha
 
 
7 hours later…
6:34 PM
I have a question. I have two or three long strings that are repeated across two or three views in my app (In an html tag title attribute). I want to place that string in one location. I just heard about HtmlHelpers and Razor Helpers. Is this the way to go for this, or is there a better way?
asp.net mvc core, if it matters
 
6:46 PM
The string itself can be stored in web.config's AppSettings
 
it could be, but that doesn't really feel like the correct place for it either. Then, I'd have to get the configuration object in the view for one. Also, it's not something that's likely to change, and would only ever be changed by developers anyways.
 
Then you can create an HtmlHelper to return that value: docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions-1/…
Hmm. If it's a long string, it doesn't belong to web.config
Throw it into a Constants.cs helper class as static readonly strings
 
htmlhelper it is then. Thank you!
 
If you're not doing anything with the values and just displaying them directly, HtmlHelper might be overkill. If you need to wrap the strings in a DIV/SPAN/LABEL etc., then HtmlHelper makes sense
 

« first day (287 days earlier)      last day (1051 days later) »