Posts by SomeDeveloper • 18,074 points
129 posts
-
14
votes2
answers511
viewsQ: What are nesting guys for?
I know that C# supports nested types, that is, it is possible for me to declare one class within another. For example: public class A { // Propriedades e métodos da classe A public class B { //…
-
8
votes1
answer1242
viewsQ: Relationship between requirements list and use cases
When starting to develop a system, and even throughout the development process, it is common to maintain a list with the functional requirements of the system. In my understanding we always start by…
-
17
votes3
answers8159
viewsA: When to use Entity Framework with Repository Pattern?
There are actually some people who advocate using directly the Entity Framework instead of using a repository. I’m going to expose here some motivations that I believe are valid for actually using…
-
19
votes1
answer1277
viewsQ: What is "Runtime Environment" really?
Studying a little about ASP.NET 5 I came across something I did not understand very well. To use it you need to install KVM (K Version Manager) and KPM (K Package Manager). KVM is responsible for…
-
11
votes3
answers483
viewsQ: Is it Unviable to use Domain-Driven Design working alone?
I have studied a lot about DDD and I am with this doubt that has been bothering me since I started reading about "Strategic design". I work with programming since 2009 and most of the time I have…
-
4
votes1
answer1163
viewsQ: A delimited context only has domain model code?
Reading about delimited contexts in DDD I was in doubt if this is an idea that relates only to the domain model layer or if this is an idea that involves more parts of the application. I’ll explain…
-
2
votes1
answer269
viewsA: Get last login of the user
You can do so, when you are logging in seven user property UltimoLogin for DateTime.Now and save the modifications. If this db is an instance of a DbContext Entity Framework would look like this…
-
7
votes2
answers1381
viewsQ: What are subdomains and how do you identify subdomains in Ddds?
Studying DDD I found the idea of subdomain. From what I understand, a subdomain is a subset of the problem space that the application has to deal with, that is, a subset of the domain. From what I…
-
21
votes1
answer3068
viewsQ: How Do We Really Understand Streams?
Work for a while with C# and . NET and several times I have seen the use of streams out there for reading files, writing HTML response, uploading files and etc. It turns out that I until today did…
-
6
votes2
answers618
viewsQ: Sending model along with uploading files
I have a web API built with ASP.NET Webapi, I have a model that references a file URI (for example representing a photo in a photo gallery, or a product in a catalog) and I need to send the data to…
-
10
votes2
answers8126
viewsQ: What is the service layer in DDD?
Reading about Ddds I’ve heard about the service layer and I’m having a little doubt about that because from what I read a service can count business logic. Basically the definition I saw is this:…
-
12
votes2
answers4565
viewsQ: What are DDD aggregates and how to identify them?
In DDD there is the notion of aggregate. A definition I’ve seen around is as follows: Compounds of Entities or Objects of Values that are encapsulated in a single class. The Aggregate serves to…
-
33
votes4
answers9005
viewsQ: Why is HATEOAS important?
I am studying REST and Web API development and I have heard about HATEOAS (Hypertext as the engine of application state). I understood the idea: when answering a request, in addition to what we…
-
5
votes2
answers524
viewsQ: Difference between Azure Queue and Queue Bus Service
I noticed that Microsoft Azure has two types of queue: Azure Queue which is part of Azure Storage and Service Bus Queue. In this tutorial the Azure website uses the Azure Queue service to exchange…
-
3
votes1
answer350
viewsQ: API’s web, REST and Object Orientation
I’m starting to study web Apis a little more in depth and I was a little bit in doubt with the following question: I work with ASP.NET Webapi and therefore with object orientation. I have in my…
-
5
votes1
answer238
viewsQ: What does this definition of resource really mean?
I’m studying about web API’s and REST and the book I’m reading says the following: The Web is built around three main concepts: resources, URI’s, and representations. A resource is anything that has…
-
5
votes1
answer1262
viewsQ: What are the limitations of the free Visual Studio Online license?
On the Visual Studio Online website there is a free account option. It says that this account offers the following benefits: 5 basic user licenses FREE Unlimited participants Unlimited qualified…
-
19
votes4
answers551
viewsQ: When are branches useful in Git?
I’m studying Git and from what I’ve seen about branches I’ve basically identified two major situations where branches are useful: When we have a stable version of the code in the master branch and…
gitasked SomeDeveloper 18,074 -
6
votes2
answers215
viewsQ: What are Git mod sets really?
I’m starting now to use Git and one thing I heard in the course I’m looking at is this: what Git actually stores is not the different versions of the files, but rather sets of modifications. That…
-
16
votes2
answers898
viewsQ: Are business rules always related to validation?
Since I started studying object orientation I hear a lot about business rules. Basically, from what I understand until today, an object must have methods encapsulated the rules of business and the…
-
7
votes2
answers417
viewsQ: Planning of user interface
I’ve already tried to develop the layout of some applications, but the only criterion I ever used was to check whether it’s looking good or not. It turns out that this criterion is not very useful…
-
3
votes2
answers865
viewsQ: ASP.NET vNext in Apache
I have heard a lot that ASP.NET 5 will work not only on Windows environment but also on Mac and Linux. I was wondering if you can run ASP.NET 5 applications on the Apache server. I searched a little…
-
4
votes1
answer1474
viewsQ: Scheduled tasks on the web
In Google Inbox allows the creation of reminders and allows you to postpone them to a certain date and time. The reminder is then taken from the main screen and when this exact date and time comes…
-
29
votes2
answers17231
viewsQ: Can Visual Studio Community be used in commercial projects?
I read this week that there is now an edition of VS called Visual Studio Community. Already has the 2013 version to download and will have the 2015 as soon as it comes out. From what I was reading,…
-
6
votes1
answer4622
viewsQ: SQL increasing ID by 1000 units
I have a database in SQL Express with a reasonable amount of data for over a year. Everything always worked well, but now is presenting the following problem: certain times the ID in some tables…
-
4
votes1
answer125
viewsQ: ASP.NET vNext is interpreted like PHP?
ASP.NET vNext is presenting a lot of news in relation to previous versions, among them is the idea of not compiling the codes, just modify and already see what happens on the page. This means that…
-
1
votes2
answers148
viewsA: Code refactoring in C
Think like that, if you go into that else if that means the first if failed. This equates to expression precoAtual < 30 || valorMedia < 500 be of value false. When an operation || returns…
-
5
votes1
answer2687
viewsQ: What is simple association in object orientation?
When I asked here on composition and aggregation I was thinking that any association between two objects fell into these categories (not counting inheritance). But then in the answer I saw that…
oopasked SomeDeveloper 18,074 -
2
votes1
answer999
viewsA: Dbcontext: use other connection strings - Entityframework
When you create connection strings on the web.config you pass names to them in the name property. To choose one in your implementation DbContext Simply pass the base class constructor the connection…
-
10
votes3
answers4376
viewsQ: What is an N-Tier application?
I’ve always heard a lot about N-Tier applications, but thinking about it lately I’ve been a little confused about what it really means. Searching on Google I found the wikipedia article on the…
software-architectureasked SomeDeveloper 18,074 -
3
votes1
answer54
viewsA: Defining the constructor of an Object
Basically the problem is that its variable amountOfDucks is encoded so that each object has its own copy of that variable. Each instance has a different version and its own values. So every time you…
-
3
votes2
answers101
viewsQ: Many Relationships for Many in Restful Service
I’m starting to work with Restful Services and I’m having doubts about many relationships for many. For example, suppose I have two entities Cliente and Fornecedor and that Cliente has a list of…
-
2
votes1
answer157
viewsQ: Azure services - what are the actual use cases?
I don’t know if this question is in Sopt’s scope, in case I’m not asking you to tell me to delete it or tell me how to improve it. I am developing Restful services with ASP.NET Webapi and…
windows-azureasked SomeDeveloper 18,074 -
43
votes4
answers67145
viewsQ: Composition and aggregation: what are the differences and how to use them?
Object orientation is common for objects of a certain class to have references to one or more objects of other classes. A very simple example is an object of a class Pedido with reference to a list…
oopasked SomeDeveloper 18,074 -
5
votes3
answers6516
viewsQ: What HTTP status code to use to indicate validation failure?
When a method in a web API detects that there has been a failure to validate the data of an entity to be added or updated, is there any HTTP code that is standard to be sent? For now I’m using code…
-
5
votes2
answers422
viewsQ: What are the possible cases of using a persistent connection?
I’ve been reading about Signalr for the last few days and basically realized that one of its main features is to maintain a persistent server connection with possible clients accessing the server.…
-
2
votes1
answer256
viewsA: Get Organization/Departament and Organization/Title with Userprincipal - AD and C#
You can use the class UserPrincipal together with a class called DirectoryEntry to access some properties of the main. This class represents a node or object of the Active Directory hierarchy. The…
-
5
votes1
answer1359
viewsA: Create AD user with C#
You can do it with class UserPrincipal. It represents a user of your domain. When you build it you can pass an instance of PrincipalContext. This last class encapsulates the server or domain over…
-
4
votes2
answers490
viewsQ: How to persist the status of a queue of requests?
I am working on a C# application that requires a row of items of the type Pedido. Basically whenever a new order is created it is queued and the application shows the orders in sequential order that…
-
22
votes1
answer1448
viewsQ: How do you decide whether an application is in alpha, beta, RC or RTM?
Each Windows has alpha, beta, RC and RTM versions, and as you advance from left to right in these versions it gets more "ready". As for RC and RTM, I don’t know if this is used in other software,…
-
10
votes2
answers5743
viewsQ: Level of detailing use cases
I’m starting to use use use cases to document object-oriented system requirements and I’m having a little doubt about the level of detail of a use case. Basically, I have doubts about "which should…
-
127
votes4
answers42803
viewsQ: What really is DDD and when does it apply?
When I first studied MVC in the book I talked a lot about DDD (Domain-Driven Design). From what I understood at the time, the idea of the DDD was simply to program software with a focus on…
-
1
votes1
answer2036
viewsQ: How to manipulate CSS property in Angular JS
I have a function written with jQuery (without Angular) to resize the minimum height of a div which in this case is the main content div of the layout of a web application. This function is…
-
7
votes1
answer6227
viewsA: How do you go through a binary tree?
When using a binary tree it is assumed that you can compare the elements. If this is not possible you need another data structure. The algorithm is very simple: Se a árvore A está vazia Construir…
javaanswered SomeDeveloper 18,074 -
3
votes5
answers9733
viewsA: How to get the index of a javascript object searching for the value?
You can iterate in properties like this: suppose your object is called obj then you can do for(prop in obj) { if (obj.hasOwnProperty(prop)) { if (obj[prop] === 137) { indice = prop; break; } } }…
-
1
votes1
answer865
viewsA: What is SOA and what are the advantages of its use?
I think two real-world examples can make you understand a little bit better why this is relevant. As a matter of fact, when I read your question I got interested and went to research and saw that…
soaanswered SomeDeveloper 18,074 -
22
votes3
answers624
viewsQ: Analysis and Project in Javascript
When we work with object-oriented languages like Java and C# we have a whole process of analysis and design that helps us to know how to design the application to write more cohesive, less coupled…
-
10
votes2
answers151
viewsQ: Relationship between Middleware and Application Delegate
I’m studying the OWIN and its implementation Katana by Microsoft. I’ve asked about it here and the answers already help to have a good overview of the subject. Going deeper I found this doubt. In…
-
32
votes1
answer7672
viewsQ: How does asynchronous programming work in Javascript?
As far as I know, asynchronous programming in C#, for example, uses the idea of threads. The tasks to be performed can be divided into threads and then run in parallel. I always imagined that…
-
46
votes2
answers2271
viewsQ: How do you really learn how to use Javascript promises?
For a while I’ve been trying to learn how to use promises and asynchronous programming in Javascript, but so far I haven’t had much success in it. I already understood that there are functions that…
javascriptasked SomeDeveloper 18,074