All Questions

1
answer

Why can not you declare a variable within a case?

Why does not this compile? #include <stdio.h> int main(void) { int valor = 0; scanf("%d", &valor); switch (valor) { case 0: int variavel = 1; printf("%d", variavel); break; default:...
asked on 09.01.2017 / 16:02
1
answer

What is the purpose of Object.is?

I noticed that Javascript now has Object.is and according to the documentation:    Object.is determines whether two values match the same value. About this I had some doubts: Why Object.is , if I can compare the...
asked on 23.10.2018 / 18:56
2
answers

Using Java together with C

I'm working on a micro controller project. My source is all in C though I would like to interact with that program using Java. Is this possible? For example: The C program executes microcontroller control commands and through a graphical interfa...
asked on 15.01.2015 / 13:52
1
answer

Why does a return with status code 200 return before a 204?

I have noticed that every answer to Success (200) is also a response No Content (204) . I was curious and went to search the MDN on status 200 , the The only thing that says successful results for a PUT and a DELETE should r...
asked on 08.10.2018 / 23:12
3
answers

How to encrypt and decrypt data in MD5 using C #?

How to make MD5 encryptions with C # of a text or file? And once already encrypted, how to decrypt?     
asked on 26.05.2014 / 21:27
1
answer

How to use the facebook API?

I have an application in PHP, where I need to enter Facebook and count the number of likes in a particular post or page. I would like to know how to embed this in my application. I heard you should use the Graph Facebook API. Thanks for any he...
asked on 20.02.2015 / 09:35
1
answer

Project Standard

I use the following project pattern: WheretheInterfacewillonlycommunicatewiththeapplicationanditwillcommunicatewiththeRepository.Sotheinterfacewillhavenorestrictionsandnoknowledgeofhowcommunicationwiththedatabaseoccurs.InmycaseIusetheEntityFr...
asked on 25.08.2014 / 14:10
2
answers

#region is an antipattern or a code smell?

The #region of Visual Studio it hides the codes, everyone says that it is bad because it exists? Is it an antipattern or a code smell ?     
asked on 25.08.2015 / 14:01
1
answer

Regular expression and template are not working

I'm trying to create a template engine using JavaScript. The syntax will be more or less similar to that of Laravel (blade), with some modifications. I'm part of creating expressions. The first one I'm doing is if , but right away I've...
asked on 21.03.2018 / 18:00
1
answer

Is it wise to implement functions that just call other functions?

I've learned which functions should be small and concise. Would this rule also apply to functions like this? def run_game(self): process_input() update_state() render() What I mean is: run_game appears to be trying to do...
asked on 14.02.2014 / 23:13