|
Leslie Sanford wrote: I came across this[^] article today
Did you notice that it was dated 1998. Scripting is quite old and common today[^]
Leslie Sanford wrote: I'm looking for examples of where low-level languages are used, like the article described, for component building and scripting languages are used to glue them together.
That's going to be any of them. They are all similar in that regard.
Leslie Sanford wrote: How are the languages bridged?
By an engine or interpreter. They can be used at the OS level or even hosted in a process like a web server or web browser. The hosting environment normally supplies components that are relevant to the environment and integrates the scripts with the engine-interpreter and the process.
|
|
|
|
|
Hello,
Most of the articles I found about MVP talk about advantages it has and why we should use it. However, I could not find any guide showing how to actually develop a WinForms application in c# that follows MVP pattern. There are several articles on codeproject but either they talk about ASP.NET or have low rating. The only thing that I managed to find is MVC# - Model-View-Presenter framework for .NET[^] What's your opinion about it? Is the framework a good one for building MVP applications using WinForms? Is there any guide or tutorial explaining how to actually build a WinForms application in c# that follows MVP pattern?
Thank you in advance.
|
|
|
|
|
|
Thanks. Any other resources too keep in mind?
|
|
|
|
|
Hi guys,
I'm about to start a new desktop application. I've to use the following:
.NET - C#
WinForms
Oracle 10g database
In this project will be involved small team about 3 programmers. This application will be used by 15 users at most.
The application is CRM like. It will use Oracle database for retrieving and storing data.
I don't want to build everything from scratch. I have a tough time to decide what tools to use in order to achieve flexible and well structured solution. I've read about SCSF/CAB and Castle Project, but I'm not sure that I'm checking suitable tools.
Can you suggest good design open source projects that use same technologies and Oracle database?
Please help! What tools/Frameworks you would use? What design in your opinion is the best for described application?
Thanks in advance.
|
|
|
|
|
hi,
(I want someone to check if my idea is utterly stupid or ok??)
I have a mid complex app for a hotel that needs a fine grained user security system. In other words an admin should be able to deny/grant specific access to users like Ability to make a Reservation or the ability to print reports.
Now, I'm thinking the business objects could take something like:
enum UserPrivileges { various privileges....... };
IPrivilegedUser
{
public UserPrivileges Privileges
{
get;
}
}
The user class inherits from this interface, the business objects could take this user in a function and return true/false as per the needed privileges, or maybe throw an exception:
User user1 = new User(); //class User inherits from IPrivilegedUser and loads the right privileges from the DB
Reservations.LoadPrivileges(user1);//check the returned value..??
Reservations.EditReservation() // calling this should fail if the privileges are not enough!?
Is this a good enough design, will it break apart somewhere or is there a better way to do this?
Declarative security like CAS in .NET would be an overkill since its not a very large app, but I do need the design to be flexible enough so that if the app does grow big I'm not in a mess.
Thanks
Gideon
|
|
|
|
|
2 words. MembershipProvider. RoleProvider.
These providers will more than take care of your needs.
|
|
|
|
|
aren't those classes for ASP.NET?
I'm doing a Windows Desktop application.
|
|
|
|
|
Doesn't matter - you can use them with desktop apps as well - I've done it.
|
|
|
|
|
|
Hello there,
I am currently working on a project with a 3-tier datamodel.
The client will connect by a WCF as a custom services (NOT using IIS)
The Goal is to handle in a "central" way the data handeling an validation.
I looked at different technology's but I cannot put all the pieces togetter
I looked at using Datasets at the Business tier:
Which can nicly validate data on columns and rows
I looked also to DAAB as the Data tier. But looks to limited to me. But Maybe I am wrong
So decided to look to the Entity framework. Which looks nice to me. But it lacks data validation.
So though to combine that with Datasets but no idea how to do this.
Thx.
|
|
|
|
|
We tend to do this by using a custom validation engine, which hooks into the business layer, and provides configurable rulesets. Done properly, this is a highly flexible and highly scalable architecture.
|
|
|
|
|
|
That's a good example. Paul knows his stuff.
|
|
|
|
|
Hi,
I have a class as under:
public class ExampleClass : BaseClass
{
public int ExampleMethod(int _toValidate) {
ExampleValidator(_toValidate);
return 1;
}
}
The ExampleValidator method is contained in the BaseClass. It is used to validate the parameter _toValidate. The ExampleValidator check is very important and every method in the class ExampleClass should contain it. I want to create a unit test for this class ExampleClass, to test if every method does contain the ExampleValidator. How can I do that?
Can reflection help me?
Regards,
ap.
|
|
|
|
|
I'd like to learn more about the optimum color depth for .NET Windows Forms over Citrix connections. I'd prefer 256 (8 bit) for performance but some would like to use skins with some fancy colors if need be. Any ideas, pointers where I can learn more?
the confused are confused beyond confusion
|
|
|
|
|
Has anyone out there actually used inversion of control containers *within* compiler implementations yet? I know that by design, compilers need to be very fast, but I've always been curious about how IoC/DI could affect the construction of a programming language--hot-swappable syntaxes, anyone?
|
|
|
|
|
I've never come across any, but it does sound an interesting concept.
|
|
|
|
|
Pete O'Hanlon wrote: it does sound an interesting concept
Yes, it does sound very interesting.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi all,
In many situations I've encountered applications that are built using multiple tiers but user identification is limited only to few of these tiers (this is the opposite how I've usually done). For example in 3-tier approach, UI knows the user, calls to business logic are authenticated for example using Windows authentication, but commonly the database does not have any knowledge of the actual user executing the original request.
What I find disturbing in this scenario is that data protection in database (in my opinion) should be as critical as in any other layer (or even more critical). Also knowing the actual user in the database gives many possibilities that cannot easily be solved in middle-tier.
The question is: If you could share your opinion, which approach would be better and especially why? Should the actual user be used all the way down to the database or only between client and middle-tier?
Just to clarify, the question is not how to implement either scenario (that's already figured), but what are the pros and cons in either case.
Cheers,
Mika
modified on Saturday, September 20, 2008 1:27 PM
|
|
|
|
|
Having the actual user at the database level may be nice but it also presents a management complication in that now the database must be aware of all the users that could access the application. Usually, this level of restriction isn't practical.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Good point, thanks!
What if account management is centralized (with small effort). For example Windows environment + SQL Server this could be done using AD (applies also to several other databases) or even using logic in middle tier (in heterogenous environments). Would you still consider this an overhead?
The need to optimize rises from a bad design
|
|
|
|
|
If you could centralize it to specific AD groups and assign that group privileges in SQL Server it would probably work without too much overhead. This, of course, restricts you to running only in environments that have AD implemented.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
That's true and not always acceptable.
Thanks for your answers!
Mika
The need to optimize rises from a bad design
|
|
|
|
|
In the traditional 3-tier setup, the only thing that "should" be performing data operations is your business logic. Permissions may not necessarily make sense at the data level.
As an example a "loan manager" may have permission to "approve loans". The loan approval process may update a loan record, an audit table, salesman perfomance/manager performance/sales funnel tables, etc, etc.
Granted, there will always be "update contact details".
I generally find granting permissions based on roles/interactions causes less friction in implementation, especially when dealing with workflow and interception. Quite a few times I've seen teams struggling with a "well, it goes into the approval state, so you set user to read-only, the group to "managers", and make it read-write...".
|
|
|
|