Click here to Skip to main content
14,450,441 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
PraiseRe: Little Feat Pin
Slacker00716-Oct-19 4:53
professionalSlacker00716-Oct-19 4:53 
GeneralRe: Little Feat Pin
Dave Kreskowiak16-Oct-19 10:45
mveDave Kreskowiak16-Oct-19 10:45 
GeneralRe: Little Feat Pin
Mike Hankey16-Oct-19 12:17
professionalMike Hankey16-Oct-19 12:17 
GeneralRe: Little Feat Pin
jeron115-Oct-19 15:58
Memberjeron115-Oct-19 15:58 
GeneralRe: Little Feat Pin
Majerus15-Oct-19 17:50
MemberMajerus15-Oct-19 17:50 
GeneralRe: Little Feat Pin
Sander Rossel16-Oct-19 0:08
professionalSander Rossel16-Oct-19 0:08 
GeneralRe: Little Feat Pin
Mike Hankey16-Oct-19 3:59
professionalMike Hankey16-Oct-19 3:59 
GeneralI pretty much despise all of Microsoft's web development technologies Pin
Marc Clifton15-Oct-19 8:47
communityengineerMarc Clifton15-Oct-19 8:47 
ASP.NET, yuck.
Razor, yuck.
Even ASP.NET Core, ok, the pipeline concept is cool but it's so obtuse as to how to actually use it, and when you don't need it, how do you get rid of it, etc., etc.,

Basically, all of these technologies I've had to spend more time figuring out why they don't work than actually getting work done.

For example:

My latest adventure with Razor was refactoring an email template to handle multiple "you have been assigned a task..." messages, rather than one email per task.

So I thought, ok, I'll just add a models field and code it like this:

foreach(var model in @Model.models)

and refactor the rest of the code to use @model.whatever rather than @Model.whatever

Well, something about Razor is arbitrarily case insensitive, so the above worked in some places and not in others.

And geez, look at the code it generated:

public class RazorEngine_2468f450d36643faac8694a9733cba74 : RazorEngine.Templating.TemplateBase<.entityType in Foo.</a>> {

That piece, "entityType in Foo" is supposed to be part an inner div, like <div>@model.entityType in Foo<div>

But foreach(var modelInfo in @Model.models) and used as @modelInfo.whatever, well that worked fine.

POC.

GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
PIEBALDconsult15-Oct-19 8:57
professionalPIEBALDconsult15-Oct-19 8:57 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
Slacker00715-Oct-19 9:24
professionalSlacker00715-Oct-19 9:24 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
PIEBALDconsult15-Oct-19 9:30
professionalPIEBALDconsult15-Oct-19 9:30 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
Kent Sharkey15-Oct-19 9:31
staffKent Sharkey15-Oct-19 9:31 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
kentgorrell15-Oct-19 21:50
professionalkentgorrell15-Oct-19 21:50 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
Jan Heckman17-Oct-19 0:44
professionalJan Heckman17-Oct-19 0:44 
PraiseRe: I pretty much despise all of Microsoft's web development technologies Pin
PeejayAdams15-Oct-19 23:08
MemberPeejayAdams15-Oct-19 23:08 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
#realJSOP15-Oct-19 9:38
mva#realJSOP15-Oct-19 9:38 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
dandy7215-Oct-19 10:17
Memberdandy7215-Oct-19 10:17 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
abmv15-Oct-19 10:18
professionalabmv15-Oct-19 10:18 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
0x01AA15-Oct-19 10:56
professional0x01AA15-Oct-19 10:56 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
Dar Brett15-Oct-19 16:23
MemberDar Brett15-Oct-19 16:23 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
Nathan Minier16-Oct-19 2:28
professionalNathan Minier16-Oct-19 2:28 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
  Forogar  16-Oct-19 4:40
professional  Forogar  16-Oct-19 4:40 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
Nathan Minier16-Oct-19 4:42
professionalNathan Minier16-Oct-19 4:42 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
  Forogar  16-Oct-19 5:23
professional  Forogar  16-Oct-19 5:23 
GeneralRe: I pretty much despise all of Microsoft's web development technologies Pin
Sander Rossel16-Oct-19 0:16
professionalSander Rossel16-Oct-19 0:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.