All Questions

2
answers

How do properties work in C #?

In Java, I usually create private attributes and create getters and setters methods because of encapsulation. I could not understand right how this works in C# .     
asked on 05.10.2016 / 14:44
4
answers

Best algorithm to calculate factorial

So, I'm learning to develop in Java. The teacher asked me to develop a method for the Factorial. And also show what is happening on the screen, for example: 3! = 3 X 2 X 1 = 6 In fact, I made it happen, but is there any way for the code...
asked on 02.09.2016 / 00:35
1
answer

Every HTTPS and HTTP connection is always attached to port 443 and 80 respectively?

Every HTTP connection always has port 80 and every HTTPS connection always has port 443? I realize that browsers do not require you to pass the port to make connections to those specific ports. Are all HTTP and HTTPS connections port 80 an...
asked on 10.07.2016 / 00:56
3
answers

What does this CSS code do?

This is looking at some snippets of code on the internet for a deeper learning of CSS, and I saw this code contained in a menu and would like to know what the functionality of it. .nav:before, .nav:after { content: " "; displa...
asked on 16.03.2016 / 18:42
1
answer

Socket "cutting" bytes in two packets

I am developing communication via Socket from my program with the server. This server is responsible for bridging between my program and the users who are connected to it, ie the user making a change in "program A", the user of "program B" will...
asked on 16.08.2016 / 21:56
2
answers

Search inside the html - without using a database

I wanted a <input> field on my page where, if I typed something, I would search for the word I typed within that section . I'm not using the database after all, you do not need it (the data is in HTML). Can I use some plugin,...
asked on 04.04.2016 / 19:23
1
answer

What is considered a "gambiarra" or a bad code? [closed]

For example, I create a code, and it works, but I'm not sure it's okay for me to do the same thing that way. Is this a gambiarra? Do I have to make sure that the code is made in such a way that it is considered a "good code"?     
asked on 28.06.2017 / 18:36
2
answers

Check if git is installed using Node

I'm starting in a desktop application with the use of Electron however I need to check if there is Git installed in the system because it must necessarily use git As the idea is to distribute in Windows, Linux and Mac and the verificat...
asked on 08.08.2017 / 16:15
2
answers

Daylight Saving Time with Old Dates

On my system saved all dates in UTC , but in the display for the user I show in GMT -3 . The problem is when I save a date in daylight saving time, because in case it will not be made the difference of 3 hours, it saves doing the conversion...
asked on 13.09.2017 / 20:45
1
answer

What does __ * (any word) __ or _ * mean in Python?

Reading a book from time to time it puts __init__ or __init and I do not know what those "_" means, I tried to search the internet for some explanations, but I ended up making it harder, could someone help me explaining more practi...
asked on 16.12.2017 / 11:14