Posts by SomeDeveloper • 18,074 points
129 posts
-
6
votes2
answers1395
viewsQ: Doubt in inheritance exercise in C#
I’m trying to solve an inheritance exercise and I found a question that I saw that you have a chance to show up in other places and so I thought I should ask here. The exercise asked to first create…
-
13
votes2
answers2568
viewsQ: OWIN and Katana - How does it really work and how to use it?
In recent times I have tried to understand better about OWIN in the aspects of why to use it, how it works and how to use it. About why to use I have asked here and already convinced myself that the…
-
35
votes3
answers1710
viewsQ: What is the role of architecture standards in object orientation?
This question seems to have an obvious answer, but I confess that I still don’t get the idea myself. I am working with object orientation since 2011, mainly focused on web development. As soon as I…
-
13
votes3
answers1131
viewsQ: Open/closed principle - how to understand this?
In object orientation there is SOLID and one of the principles is the open/closed one that I learned as follows: "software components must be open for extension and closed for modification" and…
-
76
votes3
answers5608
viewsQ: What does "immutable" really mean?
In that question I did about value types and reference types in C#, it was quoted in the accepted answer that instances of structs must be immutable objects. Reading on wikipedia confirmed that an…
-
36
votes3
answers1858
viewsQ: How to know the right measure of comments?
I went through PHP, C, C++, Javascript and now I’m working with C#. All this time I’ve always heard that it’s important to have well-commented codes, but I never knew the right measure of comments.…
-
30
votes2
answers5203
viewsQ: Methods and properties in C# - advantages and disadvantages
In C# we have properties with getters and setters, which facilitates the insertion and reading of data in an object when some logic should be performed. In other languages, such as Java these tasks…
-
26
votes1
answer1329
viewsQ: Is it good practice to make an exception in these cases?
I’m solving some object orientation exercises. One of the exercises asks to write a class that represents an airplane flight, containing the date, number and methods to check the status of seats.…
-
6
votes2
answers234
viewsQ: How to handle frameworks and ready-made technologies?
I’ve been having a question for a while and I think it may even be a common question. I don’t quite know how to put the question, but I’ll try. When I started programming I dealt with languages like…
-
4
votes3
answers4918
viewsA: Create table html and zebrar the same
You have a few options. With CSS 3 you can use nth-child(even) and nth-child(odd) to reference the odd and even lines and cells within these lines. Then you would have the style to…
-
18
votes3
answers5026
viewsQ: How to identify classes in an object-oriented system?
When we work with object orientation we need to know how to identify which classes are necessary for a certain application. Some classes are usually "obvious" in a sense: in a product management…
-
29
votes3
answers19104
viewsQ: Understanding threads in C#
I’m trying to figure out how to use Tasks and asynchronous methods in C#, but every place I see about it in internet mentions a "usual multithreading" form that would be different from the use of…
-
28
votes2
answers7111
viewsQ: What to do if client can be both PF and PJ?
I’m developing an object-oriented system. I need to keep a customer record. It turns out that these clients can be both natural and legal persons. If clients were just legal persons it would be…
-
1
votes2
answers2135
viewsA: How to replicate elements dynamically?
The angular only provides ng-repeat even to iterate over an array defined in $scope. But you can use this to make a mess and iterate over a "symbolic" array. Basically create in $scope a property…
angularjsanswered SomeDeveloper 18,074 -
2
votes1
answer495
viewsQ: What security breaches were found in Oauth 2.0?
Yesterday I read that text saying that serious security flaws have been found in Oauth. The content of the text, in particular, makes it seem like you can’t use Oauth, no way. The problem with this…
-
9
votes1
answer4141
viewsQ: How to load js scripts dynamically?
I am developing a web system that needs to load js files dynamically. The reason for this is that there is a necessary logic for selecting which scripts are required, so that unnecessary scripts are…
javascriptasked SomeDeveloper 18,074 -
50
votes5
answers2269
viewsQ: Is Nosql as troublesome as it seems?
I’ve been reading about Nosql lately, because the first impression I had about the technology was good. I did tests with Mongodb specifically and found it very practical and much easier than…
-
1
votes1
answer142
viewsA: Load var into jquery with data from BD by Controller
In your code there is no ajax call to the server to recover the data you want. Basically, you need to make a call via ajax to the server in the URL responsible for recovering this data. This can be…
-
51
votes2
answers4996
viewsQ: Memory allocation in C# - Value types and reference types
In C# there is a difference between the form that memory is allocated by the CLR for reference types (classes) and value types (structures). The difference, from what I’ve always heard, would be…
-
28
votes3
answers1436
viewsQ: How does method management work in C#memory?
In C# there is a clear distinction between value types (structs) and reference types (classes), this distinction being basically the way in which the CLR manages instances of each type. Value type…
-
45
votes7
answers2227
viewsQ: Agile methodologies - a single programmer
I have heard a lot about agile methodologies and I really liked the idea. Of course, from what I saw, the client needs to cooperate, but it seems to me that for own projects (that is, whose idea is…
-
5
votes1
answer270
viewsQ: Motivation for OWIN
These days I read about OWIN on the MSDN website but I still can’t find a good motivation for it. What I read is that OWIN is a way to uncouple the server application so we can swap the server if…
-
10
votes2
answers2720
viewsQ: View control via authorization with Angularjs + Webapi
I am working on an application built with Angularjs and ASP.NET Web API. For now, using ASP.NET Identity I have already been able to implement authentication and authorization in the API using Oauth…
-
8
votes2
answers1301
viewsQ: Techniques for setting requirements and writing use cases
A while ago I saw a Lynda.com course called "Foundations of Programming: Object Oriented Design" and the course guy gave a 5-step list to create a domain template: Collect requirements Describe the…
-
48
votes7
answers6727
viewsA: In object orientation, why are interfaces useful?
Interfaces are useful because they establish contracts. If a class implements an interface you will be able to reference class instances by the interface having only access to the members defined in…
-
6
votes7
answers20675
viewsA: What are lambda Expressions? And what’s the point of using them?
Lambda expressions are nothing more or less than types of methods that you encode in summary form, without specifying the entire structure of a method. In fact, they return a reference to that…
-
26
votes3
answers2363
viewsQ: What does it mean: "functions are first class objects in Javascript"?
Several times I have heard this: "functions are first class objects in Javascript". Functions being stored in variables and passed in methods and so on was not something that surprised me so much in…
-
1
votes6
answers8101
viewsA: How to take the current date and add "n" minutes in this value?
When you have a Date object, calling the method getTime you have the representation of that date in milestones since 01/01/1970. The Date type constructor accepts that you pass a parameter…
-
16
votes4
answers4778
viewsQ: How do value types and reference types work in Javascript?
I know that in C# there are value types and reference types and one of the differences between them is in memory management. What decides how the variables will behave is their type, so if it’s a…