Ninject sample application? [closed] - ninject

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to get started using Dependency Injection and IOC and I want to get more into using Ninject.
Are there any good application with sourcecode available that is written using Ninject that I can look at as a reference?

Shameless plug: I have put together a very basic tutorial to get started with Ninject. Have a look at Ninject Mini-Tutorial Part1 and Ninject Mini-Tutorial Part2. That should help go get you started.
There you can find a reference to the source code on Github.

Ninject can be used with various types of Applications. It could be an ASP.NET WebForms application, ASP.NET MVC application or others.
For a detailed (with screenshots) step-by-step tutorial (with sample application to download) have a look at the following in addition to the Ninject "dojo" walkthrough that bryanray has mentioned.
http://peakbyte.wordpress.com/2009/09/28/how-to-use-ninject-ioc-with-asp-net-mvc/
Please note that this tutorial was written when ASP.NET MVC 2.0 was NOT released. Tiny modifications would be needed to get it working with ASP.NET MVC 2.0, like obtaining the appropriate Ninject.Framework.MVC.dll

Also take a look at these screencasts in DimeCast. Good starter.

Have you look at the ninject-contrib project at Google Code?

The Ninject "dojo" has a great walk through for getting started as well.
Update: The link that was initially provided was no longer valid. All the current documentation can be found on the Github wiki: http://wiki.github.com/ninject/ninject - Thanks, Martin.

You can take a look at Rob's MVC Starter site MVC application (MVC2 and Ninject): http://mvcstarter.codeplex.com/

I would recommend the book Pro ASP.NET MVC 3 Framework. It has some excellent samples and explanations on how to implement Ninject as well as Moq and Unit Testing, in an easy-to-read format that doesn't make you feel like a Dummy.

Related

Best practices and architecture for SPA [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I realise this may be an opinion based question, but I am am curious if there are any best practices regarding setting up a new SPA in Visual Studio.
I have some experience with TypeScript, Knockout, Underscore, Moment, Razor and MVC4 framework (and EF6).
What interest me the most is:
-Is there a VS SPA template that is considered "the best" or do I start from scratch?
-What kind of projects and naming conventions should i use in VS?
-What libraries is considered as good combinations in SPA (Angular.js is something I'm looking into) ?
-What is consideres best practices regarding client call to retrieve data from a database (first and foremost Ajax call)
-Best practices regarding HTML/CSS coding
Do you know about about a tutorial or documentation that you have used and found very helpful on the subject(s) and that is regarded as a "must read"?
Maybe somethings in the lines of this:
http://isobar-idev.github.io/code-standards/
http://msdn.microsoft.com/en-us/magazine/dn605877.aspx
UPDATE (what I learned so far):
Client:
Ember or AngularJS for main framework
TypeScript and DefinatelyTyped for getting type completion
If Angular: Drop RequireJS as it does not play along with Angular -> http://developer.telerik.com/featured/requiring-vs-browerifying-angular/
Lo-dash (replacement for underscore -> Differences between lodash and underscore)
Ditch the Razor view engine as it does not play very well with Angular -> Razor templates, views and angular.js
Moment.js (for handling dates -> http://www.techrepublic.com/blog/software-engineer/momentjs-simplifies-working-with-date-values-in-javascript/)
Client-Server communication:
Breeze for quering the server for data and exhange of metadata(?) -> http://www.breezejs.com/
SignalR (under consideration as I am building a forum/chat system in my webapp)
Websockets (if I need realtime solutions...)
Server:
Asp.Net WebApi for HTTP services
EF 6 (for creating entities)
Database:
SQL server express for now (for ease of entity generation), other suggestions?
VS directory structure and project definitions:
Not sure about this yet..

Pentaho Java API [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am brand new to Pentaho and have the task of trying to integrate it into some Java applications I have been working on. So far my experience with Pentaho includes downloading the community BI-Server and setting up a couple of things in the admin console (new users/datasources). I was able to get access to the datasource in my PUC as well for reports and analysis.
Now I am trying to do practically the same thing in Java (Add a new datasource and configure it). I have been looking for different Java APIs and I must admit it is quite overwhelming with all the different APIs that are available (BI Platform, Kettle, Mondrian, Weka, Reporting). I decided to go with the BI Platform as this is the one that seems like it will fit this need. However the javadocs that are provided here seem to be out of date. I have imported the 4.8.0 dependency into my Java project via Maven and it seems I do not have some of the classes that are specified in the javadocs. Pentaho's APIs will probably begin to make more sense the more I dig into them, but as an overwhelmed n00b I need help in the following three ways.
1) Is pentaho-bi-platform-api the correct API to connect to and administer datasources?
2) Are there any useful java examples of the API that I could look at? (havent been able to find much on Google)
3) Does anyone know if these javadocs are out of date and if so are there any more recent versions?
Thanks a bunch
Many of the Pentaho projects have been moved to GitHub:
https://github.com/pentaho
This includes the data-access plugin, which handles the creation and configuration of datasources. The 4.8 branch is here:
https://github.com/pentaho/data-access/tree/4.8
And the latest 4.8 release tag (4.8.1-GA) is here:
https://github.com/pentaho/data-access/tree/4.8.1-GA
So I found out a good place to get examples. If you go to http://community.pentaho.com/getthecode/ you can find all the SVN repositories for the projects. After pulling in the projects from SVN do an ANT build on the build.xml using the resolve function. After that I was able to look at all the Unit tests that are included in the project and figure out how everything works.

ASP.NET MVC eCommerce solutions (either commercial or open source) [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Okay, so we have a development infrastructure that utilizes the following:
1. MVC 4 (Razor views)
2. Entity Framework 5 code first
3. Ninject
What I'm looking for are eCommerce solutions that are as close as possible to our existing infrastructure in hopes of integrating as seamlessly as possible.
I've looked at many, many options including:
1. NopCommerce
2. Magelia
3. dashCommerce
4. DotShoppingcart
So far NopCommerce and Magelia (NopCommerce especially), seem to be the closest I can find. I'm looking for suggestions of other eCommerce solutions that might better integrate with our existing infrastructure mentioned above. Cost is really not an issue, so it can be open source or commercial.
Any and all suggestions are welcomed.
Thanks
Nick
try this http://virtocommerce.com/ and enterprise open source ecommerce solutions using the latest technology of .Net
Nick,
I haven't had a chance to evaluate it yet, as I literally just came across it right before finding your post (I'm doing a similar search for my company,) but you might consider http://merchanttribe.codeplex.com/
As I say, I haven't even looked at the code yet, but they have an open-source MVC eCommerce platform.
Drew
Nick,
You can also check Cart42 (GitHub). It utilizes ASP.NET MVC with Razor views, Entity Framework 5 with code-first. However for DI it uses StructureMap rather than Ninject.

How to develop web desktop using ExtJS 4? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have learned basics of ExtJS and developed some web apps using ExtJS. Now I have to develop web desktop using ExtJS (like desktop app which is present in examples folder) but I am not able to find any documentation or tutorial or book about how to develop it.
Does anyone knows how to develop web desktop application using ExtJS 4? Where can I get any tutorial/ book/ video about developing web desktop?
I doubt you'll find a book or tutorial dedicated to exactly what you're looking for, but you can put together enough resources across the internet to do the trick.
A Google search of "extjs 4 cookbook" turned up a book called "Ext JS 4 Web Application Development Cookbook" that seems to have plenty of information. However, it seems very new and I personally haven't read it, so I can't vouch for it. But it's there.
Other than that, Sencha's own documentation site will have most of what you need. The series of articles on App Architecture may be of some use if you're planning to take the MVC approach, as will the articles on components and layouts.
That will cover the basics, but there's no real definitive guide to making a web desktop app that I'm aware of. It all depends on what your requirements are, how much time you have available, etc. If you're looking for help with a specific component (like creating a Windows-style file browser system) then you'll probably have better luck asking more narrow questions.
You can just use default Web Desktop Sample provided by Sencha and modify it a little bit.
I am also interested in, I did what I advice you, so you can look what I have received now:
http://www.bdovhan.orgfree.com/
Hmmm, these free hosting providers use lot of ads if your site becomes clickable.
I created another mirror, there should be no ads: http://www.julfysoft.16mb.com/index.html
but it can take a while to load it...
We inspired from the desktop sample and we build a full functional web app using Extj 6.7 along with Unigui Framework (Delphi), and the result is awsome:
Just implementing the idea step by step.

"Reverse Engineering" App Architecture [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I inherited an old app, written in C#/.NET 2.0. (un)Luckily there was no documentation - not even comments. So as I'm adding enhancements to the application based on new requirements I'm also building a mental model of what the app does and how it does it - architecture in other words.
I was wondering what tools exist out there to "deconstruct" the app and go from raw code to something higher level? The app's not really heavy in OO - in fact one of the objects used is called a "function". It's mostly just a bunch of methods - a lot methods that seem to jump out of nowhere.
I want to translate the raw code to some sort of requirements doc stating what the app does and how it executes. What's the best way to do it? Are there any apps out there that can help me? Maybe templates of what I should/should not include? Maybe books/sites that you recommend? The goal is to provide documentation for me and for future developers maintaining the app.
Personally, I would start with Robert C Martin's Agile book, and Eric Evan's book on Domain Driven Design. Those are theory books, but Uncle Bob's book specifically talks about revamping code to be manageable, just like your situation.
It's pretty essential to layer your software so you can start to remove dependencies, which will make everything very simple and easy to maintain.
I am a database guy, so I started with a good ORM like Entity Framework or Fluent NHibernate. I prefer websites, so I went with ASP.NET's MVC 2, then started writing all the parts of those books, namely a data Repository, Services to pull data and Control to push it. MVC is a very nice separation of data concerns and "View" concerns which are your screens. Before long, you would have very clean and easily maintained software.
If you are using VS 2010, you can see a menu with the name: Architecture. Using this tool, you can create a dependency graph of your application, you can use it as described in the following:
Link