Posts by Gustavo Almeida • 661 points
4 posts
-
4
votes2
answers295
viewsQ: In bash, what is the difference between a null string and an empty string?
I wonder if there is a difference in how bash represents variables with null values var= and with empty strings var="" What care should I take when manipulating variables like these?…
-
2
votes2
answers136
viewsA: Release only the last line for writing
I don’t know if it’s possible to do that directly. But you can create a simple Jtextfield and send the typed text to a Jtextarea, which would not be available for change. Jtextarea would work only…
-
22
votes3
answers1767
viewsQ: What prevents an array from being initialized with a variable size in C?
Why does an array need to have a constant size? What prevents it from having a variable size?
-
26
votes4
answers6194
viewsQ: Best practices for naming functions
I would like to know which tenses are most used to name the functions. For example, there is a more suitable in this hypothetical case? Calculadora calculadora; calculadora.soma(3, 4);…