All Questions

3
answers

What is the System.Linq in C #?

I asked this question here in SOPT What is the equivalent of PHP's array_map in C #? And I was curious to know what this System.Linq is about. Because when I tried to use the above response code without using it, I got an error...
asked on 27.04.2016 / 17:48
4
answers

How does C # lock work?

I was checking out an MSDN article, but it was not clear why use this. class Account { decimal balance; private Object thisLock = new Object(); public void Withdraw(decimal amount) { lock (thisLock) {...
asked on 12.08.2014 / 17:41
1
answer

Drawing Top Gear

I'm trying to make a game like Top Gear (SNES) to get a little bit of knowledge about 2D games, but I had a question about the clues: are they straight lines, curves or images? I'm using JavaFX. If I try to use curves ( QuadCurve ) it i...
asked on 21.09.2015 / 01:10
5
answers

How to get TimeStamp in Javascript?

Would you like to know how to Javascript to get Timestamp ? A number that represents the current date and time. I know we get the object for date and time through: var d = new Date(); But I do not know how to proceed from here....
asked on 17.12.2013 / 17:39
2
answers

Best practice to log system log

What is the best practice for registering a log system? public void inserirLog(string Acao) { StringBuilder csql = new StringBuilder(); csql.Append("insert into Log (Acao,data) values("); csql.Append(@"""...
asked on 26.02.2015 / 19:26
3
answers

How to calculate mathematical expressions in a string?

I'm making an application handle an expression. How do I calculate the result of an expression? For example: 3(-9)+50/2 . This expression is typed in TextView .     
asked on 19.02.2015 / 23:11
3
answers

What is the definition of verbose code? And why is it interesting to reduce it?

Recently I've heard about verbose code reduction (along with the term boiler plate code ), and also studying ES6 by falling into arrow-functions . Would you like a clearer definition of what verbose code would be? And why is it interesting to...
asked on 23.12.2016 / 12:26
3
answers

How to test my website on a slow internet?

When you finish developing a website or system, we always test the performance of your website or system with our internet. Given this, is there any way to simulate the performance of my system a slow internet to perform such tests without ch...
asked on 22.06.2017 / 20:30
3
answers

NSA Challenge - "Thirteen men and one shipment"

Browsing the internet looking for challenges (to be solved with programming), I found the "Thirteen men and a load", where said to be part of the NSA's random challenges (link ). The challenge : After your last trip, the 13 pirates of...
asked on 19.03.2018 / 02:22
3
answers

Where should be the business rule in the MVC standard?

A few weeks ago I started studying the ASP.NET MVC background, and since I came from Windows Forms, there are some things that have not been very clear yet. In all the applications I've done so far in this pattern, I've never bothered too muc...
asked on 19.02.2016 / 02:21