Connecting the topic to accuracy in an application, windows (Microsoft) services (.NET, ASP.NET etc) comes with lots of tools, frameworks and programming, facilitating application development, neatly.
seen from Ireland
seen from France
seen from Japan

seen from United States
seen from T1

seen from United States
seen from Singapore
seen from Türkiye

seen from Malaysia

seen from Indonesia

seen from Netherlands
seen from Poland
seen from Singapore
seen from Singapore
seen from China

seen from United States

seen from United States
seen from Netherlands

seen from United States
seen from Yemen
Connecting the topic to accuracy in an application, windows (Microsoft) services (.NET, ASP.NET etc) comes with lots of tools, frameworks and programming, facilitating application development, neatly.
NancyFx hits version 1.0!
NancyFX, AngularJS, Active Directory... oh my!
It has been a long time coming and I finally got a chance today to play with some new tools to help rebuild uManage. It's needed a refresh for a while and I just have not been able to get around to it. Spent some time tonight with NancyFX and the self-hosted model, which looks pretty cool. The guys over at Octopus Deploy have a great model and tool with this stack that I think will work well with uManage.
Testing Nancy module with Form Authentication
Suppose you have a Nancy module that is secured with form authentication.
using Nancy.Security; class MyModule : NancyModule { public MyModule(){ this.RequiresAuthentication(); Get["/"] = _ => "I'm secured!"; } }
In your test project, you have to include Nancy.Testing package and Nancy.Forms.Auth package (they can be downloaded from Nuget). You will also need an IUserMapper mock, which can look like following.
class UserIdentityMock : IUserIdentity{ public UserIdentityMock(){ Claims = new string[0]; } public string UserName { get { return "mock_user"; } } public IEnumerable<string> Claims { get; private set; } } class UserMapperMock : IUserMapper { public IUserIdentity GetUserFromIdentifier(Guid identifier, NancyContext context){ return new UserIdentityMock(); } }
and the test code.
[Fact] public void ShouldBeOk(){ var config = new FormsAuthenticationConfiguration{ RedirectUrl = "~/login/", UserMapper = new UserMapperMock() }; var bootstrapper = new ConfigurableBootstrapper(with => { with.Module<MyModule>(); with.ApplicationStartup( (container, pipelines) => FormsAuthentication.Enable(pipelines, config)); }); var browser = new Browser(bootstrapper); var result = browser.Get("/", with => { with.HttpRequest(); with.FormsAuth(new Guid(), config); }); result.StatusCode.Should().Be(HttpStatusCode.OK); }
Revisiting the darkside
It's been over two years since I've done any backend development; tell you the truth I haven't really missed it at all. It's great working with a team of developers who will take care of the backend.
It humors me because I've been asked why I don't do backend development and my answer is the same reason that I've been given when I ask backend developers why they don't do frontend? I don't really enjoy it.
If I have to do backend because I have no other choice, then I will. With that being said, as I stated previously it's been over two years.
So recently I decided to look into some javascript frameworks and started doing some tutorials just to get a feel if I would like it or not. Once I picked a framework I started working on a fictional project because then I can set certain goals and it will keep me interested rather than following a video tutorial which might go two series into one direction and then completely go in another direction mid-way just to show a feature. So the javascript framework needs to get data somehow and most of the time it's via an Ajax call returning it in a JSON format which is great except inorder to make that call that means something still needs to be able to get the data. Enter the darkside....
So at first I had the data in some sort of format, I honestly can't remember which... but I ended up creating a MSSQL database and putting the data there. Then I decided since I'm not a fan of PHP (Not my cup of tea) and I wasn't going to attempt to learn RoR again since half of the battle when I first tried learning Rails was just getting the environment set up, I decided I would stick with ASP.NET. So when I first started developing with ASP.NET, ASP.NET MVC was just showing up, so I didn't embrace it right away and then I stopped doing backend development because I was given the chance to get to focus on the frontend. So at work we've used ASP.NET MVC for the past year and it's been going well. So I started a new solution in ASP.NET MVC and suddenly thought - "seriously, what is this mess?". It turns out after seeing C# for the past two years at work, VB.NET is no longer as familiar as it once was. But before I really got deep into the project I realized that MVC was more than I needed.
All I wanted was to be able to make an ajax call, have the backend code pull the data out of the database and just return it to me, I planned to handle the rest via the javascript framework. So talking to a fellow coworker, it sounded that instead of going down the ASP.NET MVC route I might be better going down the ASP.NET WEB Api route instead. I can't remember the reasoning why, but I decided to use NancyFX. After watching some videos to get a better understanding, and making the jump to C# after not developing backend for 2 years - it took a bit of time and now I'm wanting to learn more C# because similar when I was doing VB.NET, I don't like not knowing how something works.
However, before I decide to return to backend development, or at least occasionally. I finally am able to continue with playing with javascript frameworks again now that I finally have a way to take care of handling getting the data from the database and returning it via JSON.
Three easy ways to create simple Web Server with F#
I have tried to find easiest ways to create a simple web server with F#. There are three most simple ways to do it.
The goal is to create a simple web service that maps web request urls to the files in the site folder. If file with such name exists then…
View Post
Kiev ALT.NET: NCrunch, FubuMVC, NancyFx, 24.02.2012
Тема зовсім не по плану, але виглядає дуже цікавою. Отже:
Continuous Testing
Anatoliy 'TLK' Kolesnick (профіль)
Термин Continuous Testing не так давно пришёл в .NET мир и ещё не успел завоевать достаточное количество поклонников среди адептов TDD. Об этом понятии как таковом, а также о том, какие утилиты предназначены для его использования и пойдёт речь.
NancyFX
Alexander Beletsky (профіль)
NancyFX web framework for the rest of us. NancyFX probably one of the youngest web frameworks in .NET. Started out as open source project by the group of software specialits around the world, currenlty there is 0.9 release. Being inspired by Ruby on Rails lighweight framework 'Sinatra', NancyFX tries to bring simplity in the world of web development in .NET technology stack.
As any young project it is both has week sides and very powerful sides. Knowledge of both sides of medal will help you to do right choice while selecting tool for new project.
Alexander will show you the approach of building Nancy applications, avalilable view engines as well as testing tools.
It's gonna be short look to alternative world.. It's gonna be interesting.
FubuMVC -- нафига оно мне?!
Serhiy Kalinets (профіль)
Продукт, который называется "For Us By Us" (рус. -- "сами для себя") должен быть крутым по определению. Действительно, что может быть лучше штуки, написанной для себя, любимого? Тем более, выпущенного после конкурентов, с учетом всех их слабых мест. Fubu MVC позиционируется именно так: "Крутая штука, которая делает жизнь проще".
Однако, у продуктов написанных "под себя" есть и темная сторона. Когда вы пишете для себя, вы сильно паритесь, чтобы ваш код был понятным другим? Как тщательно вы описываете свой API? Какая у вас вообще документация? И FubuMVC является очень показательным примером. На сейчас документация по нему практически отсутствует. То, что было создано раньше, стало в какой-то момент неактуальным в результате развития продукта и было удалено. И, чтобы постичь всю крутотень fubu, нужно немного поднапрячься.
Сергей Калинец в свое время очень заинтересовался fubu, и потратил некоторое время, чтобы в нем разобраться. И на докладе "FubuMVC -- нафига оно мне?!" расскажет о результатах своих изысканий, набитых шишках и ощущениях после более тесного знакомства с таким неоднозначным продуктом.
Технічні деталі зустрічі
Дата: п'ятниця, 19:00, 24 лютого, додати в .
Адреса: м. Київ, вул. Амосова, 12, 2-га башта, 20-й поверх, офіс Ciklum. Або на мапі
Контактний телефон: +38 (097) 191 81 98
Пошта: [email protected]
Безкоштовно. Для реєстрації напишіть щось в твіттер, пошту або приєднуйтесь до події на Facebook.
Організаційний партнер заходу Ciklum.