Posts by Caio Guedes • 322 points
6 posts
-
4
votes2
answers113
viewsQ: Generic types in Java method call
I wanted to understand how this works and the name they give it in Java. Follow the code snippet: public <I, O> SimpleStepBuilder<I, O> chunk(int chunkSize) { return new…
-
2
votes1
answer41
viewsQ: Method returns instance, after setting property
There is a name for the practice or pattern, for this code snippet? Example: <?php class Pessoa { //... public setNome($nome) { $this->nome = $nome; return $this; } //... }…
-
1
votes2
answers757
viewsQ: MVC PHP - Libraries - Directory Structure
I have a question regarding the folder structure of the application. Next, doubt arises when there is a need to write a class that integrates with a API Which part would this class be allocated to?…
-
5
votes2
answers117
viewsQ: Inheritance or Addiction?
Well, my question is this. I’m refactoring a system where I have an integration with a REST API, there’s a class called Marketplace (That queries the API) that I currently extend from the class Curl…
-
4
votes1
answer55
viewsA: How to include one vim configuration file in another?
You can use the command source to call other configuration files, just put in your main configuration file (.vimrc) the following: source ~/.vimrc.python source ~/.vimrc.ruby source ~/.vimrc.cpp…
vimanswered Caio Guedes 322 -
4
votes6
answers3344
viewsA: How is an agile way to add and remove code comments in VIM?
I use a plugin called Nerdcommenter he’s pretty cool and he’s got easy-to-use predefined shortcuts, check it out: Comment on the current line: \cc Comment multiple lines: \cm Undo the comments: \cu…