Skip to content

Instantly share code, notes, and snippets.

@laurocaetano
laurocaetano / deleteVowels.java
Last active September 26, 2017 09:22 — forked from princessofpain/deleteVowels
exercise in Java to delete all vowels in a typed string
package uebung07;
import javax.swing.JOptionPane;
public class Vokalloescher {
static String eingabe = JOptionPane.showInputDialog("Geben Sie einen Text ein:");
static String klein = eingabe.toLowerCase();
public static boolean istEinVokal(char ch){
switch(ch){
<%= javascript_tag do %>
container = $('#task');
new app.Task(container, container.form);
<% end %>
  • root
    • domain (just my models, like Rails :trollface: .. Doesnt' know shit about the rest of the app (such as repositories, and the framework you are using.)
    • repository (Create, update, search and delete your objects. This guy is just an interface and could have its specific implementation (DAO), but I don't think it is necessary)
    • service (business rules)
    • controller (this guy just know the service)
  • view (know nothing about all items above)
1) Failure:
MysqlConnectionTest#test_bad_connection [/Users/lauro/src/opensource/rails/rails/activerecord/test/cases/adapters/mysql2/connection_test.rb:20]:
[ActiveRecord::NoDatabaseError] exception expected, not
Class: <Mysql2::Error>
Message: <"Access denied for user 'rails'@'localhost' to database 'inexistent_activerecord_unittest'">
---Backtrace---
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/mysql2-0.3.15/lib/mysql2/client.rb:67:in `connect'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/mysql2-0.3.15/lib/mysql2/client.rb:67:in `initialize'
/Users/lauro/src/opensource/rails/rails/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new'
public class ClasseDoYamate {
@inject
private Yamate yamate;
//bla bla bla
}