|
So, I got this new job, where the work is MVC, so I thought that while I waited for all the in-processing stuff to happen (so I can actually start work), I decided to start writing a MVC app.
So far, I've managed to eradicate Entity Framework in its entirety (in deference to my own DAL), created my own Identity code to replace the ASPNetxxx code, created a lot of the back-end static data (I've spent almost a week on this, and still have a ways to go before I'm done with it) so that I can exercise the app, and came up with a dark appearance that I really like.
I really hate everything javascript, but the reality is that it simply can't be avoided, so today, I took on the task implementing "fluff". I pretty much got a set of cascading drop-down lists working in relative harmony (using ajax), and implemented a custom jquery-ui progress bar that shows the percentage of characters remaining in the associated text input (or area) control as the user types The progress color changes from green, to yellow, to red depending on what percentage of characters is remaining.
I'm sure there are better ways to do what I did, but as much as I dislike javascript, if it works, it ships.
Just exercising my MVC muscles...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I feel your pain John
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
#realJSOP wrote: I really hate everything javascript, but the reality is that it simply can't be avoided Oh yes it can!
I'm currently working for a customer who has zero JavaScript.
They've done everything using Angular and TypeScript.
You don't have to use Angular to use TypeScript, of course, but when you use Angular TypeScript is mandatory I think.
Personally I prefer to keep things KISS and I just use JavaScript (with Vue.js), but try to keep it to a bare minimum.
I'd look into TypeScript if I were you.
It's like strongly typed JavaScript created by the creator of C# and people love it.
|
|
|
|
|
Angular and Typescript *are* javascript.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Sure, TypeScript is ultimately transpiled to JavaScript.
The difference is you don't have to write the JavaScript yourself.
Alternatively, you could look into Blazor and use C# in your front-end.
|
|
|
|
|
Can you use Blazor in a .net framework app?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
|
I don't want to jump through the hoops to do blazor in .netf.
The dev landscape (for lack of a better term) regarding typescript and scss (which i've only just now discovered) appears to be filled with land mines. I found out about buildwebcompiler, but that project was abandoned 5 years ago, and the last available version doesn't install in VS2017 (I get an error "An object isn't set to the instance of an object", and the install fails). There's a forked version being maintained by someone else, but they've removed the node.js dependency, so it only compiles SCSS files.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
A client of mine uses it and it involves manually running scripts
|
|
|
|
|
As realJSOP said, TypeScript is still JavaScript.
But yeah, way way better than working in JavaScript. I do find it amusing though how a file of interfaces in TypeScript transpiled to a file with no actual lines of code in JavaScript. So much typing just for type safety.
|
|
|
|
|
Marc Clifton wrote: So much typing just for type safety. Which is why I still use JavaScript myself
|
|
|
|
|
Saturday I went to a fantastic talk on honey bees by a local retired bee person, he and his wife founded Spikenard Farm – Honeybee Sanctuary[^] - learned a lot about their biology and life cycle and how they make honey and gather pollen and on and on. Sunday I saw a one man production of Faust done by my friend and playwright/actor Glen Williamson.
Oh, and I worked on the "community event planner" website I'm putting together (.NET 6 C# backend and TypeScript front-end).
|
|
|
|
|
I'm not sure what you mean by Typescript front end. Are you saying it's just HTML5 and typescript, with no MVC goodness thrown in?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Maybe you said it elsewhere and I missed it, is it a new role in the same org or completely different employer?
Or is it as classified as the last job?
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
No, different employer altogether, and yes, just as classified as the last one.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Well here's hoping the new place isn't as daunting as the last place.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
So are you away from the DoD environment now? I was always appalled when you talked about the idiocy in that.
Software Zen: delete this;
|
|
|
|
|
No, but the level of idiocy may be lower than the last place.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
That's good. It always sounded like an active conspiracy to keep you from doing your job before.
I'm fortunate in that the only adversary I have internally is corporate IT, and I'm not shy about playing the "but I develop products that make us money" card.
Software Zen: delete this;
|
|
|
|
|
The Pope decides to take a cross-country tour across America, beginning in California and ending in New York.
Somewhere in the Mid-West, the Popemobile breaks down, and while it's repaired, the Pope continued his journey with a limousine rental.
After a few hours, the limousine driver rolled down the glass partition, and spoke "I know I'm not supposed to talk to you, your holiness, or highness - I'm not even sure what to call you?" "It's okay, my son, say what you want to say".
"Well, when they told me who I'd be driving, I was really thrilled. It's such an honour, and if there is anything I can do to make it a better trip, I'll do my best to make sure it happens".
The Pope thought for a while, then replied "You know, before I became Pope, I really enjoyed driving. I would drive for hours. But now, no one will allow me to drive anywhere. Would you mind if we switched places and I can drive?"
The limousine driver agreed and the two switched places.
After a while, the Pope became relaxed, turned the radio on, hung his arm out the window, and just enjoyed cruising. However, not aware of his increasing speed, he was soon pulled over by a motorcycle cop.
The cop walked up to the limousine, saw who was driving, said "Excuse me, your holiness, for a moment" then returned to his bike and got on the radio.
"Chief, I think I have a problem. I believe I pulled over someone pretty important, and I'm not sure how to deal with it". The Chief responded: "Don't tell me you pulled over a state representative again, Johnson?"
"No, I think this person is more important".
"Not our Governor?!"
"No, I believe more important than the Governor".
"Johnson, tell me you didn't pull over a Presidential Motorcade".
"No, they may be even more important than the President".
"What? Really? Who's more important than the President?"
"Hell if I know, but the Pope's driving!"
To err is human. Fortune favors the monsters.
|
|
|
|
|
The most expensive tool is a cheap tool. Gareth Branwyn
JaxCoder.com
|
|
|
|
|
Here[^] is a similar one by President Reagan on General Secretary Gorbachev.
|
|
|
|
|
|
Awesome. I'm going to have to file that one in the Dad Joke File™.
Software Zen: delete this;
|
|
|
|
|
haven't heard that one in a while - it's good.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|