NUF's Programming Club

Discussion in 'Tech Discussion' started by holyshin, Mar 2, 2017.

  1. chillo

    chillo NUF BioTerrorist

    Joined:
    Mar 15, 2016
    Messages:
    1,991
    Likes Received:
    1,420
    Reading List:
    Link
    if any of you could teach me, count me in
     
  2. Owloid

    Owloid Well-Known Member

    Joined:
    Oct 20, 2015
    Messages:
    19
    Likes Received:
    15
    Reading List:
    Link
    git itself also has a trello-like feature called projects
     
  3. mykhaels

    mykhaels Active Member

    Joined:
    Dec 20, 2016
    Messages:
    15
    Likes Received:
    6
    Reading List:
    Link
    I know some java programing and html php and css also a bit jquery if u dont mind maybe i can join this project while learning
     
  4. holyshin

    holyshin Moderator

    Joined:
    Oct 20, 2015
    Messages:
    418
    Likes Received:
    1,222
    Reading List:
    Link
    Well, I might be able to get you started. What do you want to learn to do? Make games, design websites, develop mobile apps, or something else?
     
  5. NeoUsui

    NeoUsui [Melon Lord] [Unrivaled Super Hottie]

    Joined:
    Sep 4, 2016
    Messages:
    199
    Likes Received:
    165
    Reading List:
    Link
    Hello! I'm your curios newcomer who are fresh to programming. Please count me in! I'm interested in these kind of stuff~!
     
  6. horonxi

    horonxi Active Member

    Joined:
    Jul 28, 2016
    Messages:
    7
    Likes Received:
    0
    Reading List:
    Link
    Interesting club. Would love to join but I only know a bit of html, css, php, javascript and c language. Need to learn things first. :cautious::cautious:
     
  7. holyshin

    holyshin Moderator

    Joined:
    Oct 20, 2015
    Messages:
    418
    Likes Received:
    1,222
    Reading List:
    Link
    That's plenty. You can also talk about your progress in learning and things that you're currently doing to learn!
     
  8. idgetsxx

    idgetsxx The Real Life Snorlax

    Joined:
    Apr 21, 2016
    Messages:
    207
    Likes Received:
    123
    Reading List:
    Link
    Not that this is specifically programming, but does anyone know of a good place to go to learn how to animate 3d models?
     
  9. horonxi

    horonxi Active Member

    Joined:
    Jul 28, 2016
    Messages:
    7
    Likes Received:
    0
    Reading List:
    Link
    I only know of Blender. They have a big community if I remember correctly and lots of tutorials.
     
  10. holyshin

    holyshin Moderator

    Joined:
    Oct 20, 2015
    Messages:
    418
    Likes Received:
    1,222
    Reading List:
    Link
    I don't really know about animating models, but there are a few tutorials about using MMD models and transfering them for use in Blender or Unity if you want access to tons of free 3d models.
     
  11. donzel00

    donzel00 Well-Known Member

    Joined:
    Nov 27, 2015
    Messages:
    38
    Likes Received:
    17
    Reading List:
    Link
    Count me in!
     
  12. bartsimpsons

    bartsimpsons Well-Known Member

    Joined:
    Sep 26, 2016
    Messages:
    165
    Likes Received:
    106
    Reading List:
    Link
    I don't know man. This sounds fun and all but Software Engineers and real programmers barely get to write code. In a single project, if you were given 12 months to complete it you use 11 months for requirements specification, meetings, planning, drawing conceptual models, etc. while only 1 month for the actual programming/coding. 90% plan 10% code. Yes, this is how it works. Newcomers to programming might get frustrated on programming because its hard, welp thats because programming is 99% problem solving and 1% typing. \

    EDIT: I'll be stalking O - o
     
  13. Scrya

    Scrya Lurking all day long~

    Joined:
    Oct 22, 2015
    Messages:
    359
    Likes Received:
    1,355
    Reading List:
    Link
    NUF was supposed to be my safe haven from programming! What is this!? Why must you do this to me @holyshin !?
     
  14. MeReadin

    MeReadin Active Member

    Joined:
    Oct 20, 2015
    Messages:
    23
    Likes Received:
    9
    Reading List:
    Link
    @holyshin I know you said that you/we'll likely never get the sites code. But do you think it's possible that we'll be able to get the database structure so that if NU ever want to use something we make they can easily use it
     
  15. holyshin

    holyshin Moderator

    Joined:
    Oct 20, 2015
    Messages:
    418
    Likes Received:
    1,222
    Reading List:
    Link
    Hi everyone! I updated the original post with a set of challenges for everyone to do while we're deciding on a project.

    No guarantees.
     
  16. jaydes

    jaydes Well-Known Member

    Joined:
    Jun 29, 2016
    Messages:
    104
    Likes Received:
    61
    Reading List:
    Link
    count me in.Though I only basic knowledge in some programming languages.
     
  17. mykhaels

    mykhaels Active Member

    Joined:
    Dec 20, 2016
    Messages:
    15
    Likes Received:
    6
    Reading List:
    Link
    For medium type of challenge this is my result

    Code:
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.HashMap;
    import java.util.Map;
    
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.UIManager;
    import javax.swing.UIManager.LookAndFeelInfo;
    
    public class MainDecryptEncrypt extends JFrame{
        private static final long serialVersionUID = 1L;
        
        JLabel titleLabel;
        JTextArea contentText;
        JTextArea resultText;
        JButton decryptButton;
        JButton encryptButton;
        JLabel convertLabel;
        Map<Character, Character> plainMap;
        Map<Character, Character> cipherMap;
        
        public static void main(String[] args) {
            MainDecryptEncrypt main = new MainDecryptEncrypt();
        }
        
        
        public MainDecryptEncrypt(){
            initCharacterToMap();
            createGUI();
            action();
        }
        
        /**
         * Method to set the map for encrypt and decrypt
         */
        private void initCharacterToMap(){
            plainMap = new HashMap<>();
            cipherMap = new HashMap<>();
            char[] alphabetPlain = "abcdefghijklmnopqrstuvwxyz".toCharArray();
            char[] alphabetCipher = "xyzabcdefghijklmnopqrstuvw".toCharArray();
            for(int i=0;i<alphabetCipher.length;i++) {
                plainMap.put(alphabetPlain[i], alphabetCipher[i]);
                cipherMap.put(alphabetCipher[i], alphabetPlain[i]);
            }
        }
        
        /**
         * method to set every component in the frame
         */
        private void createGUI(){
            //Nimbus UI
            try {
                for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                    if ("Nimbus".equals(info.getName())) {
                        UIManager.setLookAndFeel(info.getClassName());
                        break;
                    }
                }
            } catch (Exception e) {
                JOptionPane.showMessageDialog(null, "Error Making Nimbus UI");
               e.getMessage();
            }
            
            setTitle("Encrypter Decrypter Programing Club NUF Challange");
            setSize(550, 500);
            setLocationRelativeTo(null);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setLayout(null);
            
            titleLabel = new JLabel("Encrypt and Decrypt Using Caesar Cipher");
            titleLabel.setBounds(50,30,450,50);
            titleLabel.setFont(new Font("Tahoma", 1, 20));
            add(titleLabel);
            
            contentText = new JTextArea();
            contentText.setBounds(30,100,200,200);
            contentText.setBorder(BorderFactory.createLineBorder(Color.black));
            add(contentText);
            
            convertLabel = new JLabel("<html> <b> >> </b></html>");
            convertLabel.setBounds(250,150,50,50);
            convertLabel.setFont(new Font("Tahoma", 1, 20));
            add(convertLabel);
            
            resultText = new JTextArea();
            resultText.setBounds(300,100,200,200);
            resultText.setBorder(BorderFactory.createLineBorder(Color.black));
            add(resultText);
            
            encryptButton = new JButton("Encrypt");
            encryptButton.setBounds(280,370,100,30);
            add(encryptButton);
            
            decryptButton = new JButton("Decrypt");
            decryptButton.setBounds(400,370,100,30);
            add(decryptButton);
            
            setVisible(true);
        }
        
        /**
         * method to convert the content String into result
         * @param code used to get type to encrypt or to decrypt
         */
        private void convertingString(String code){
            StringBuilder stringResult=new StringBuilder();
            if(code.equals("encrypt")){
                for (char c : contentText.getText().toLowerCase().toCharArray()) {
                    if(plainMap.get(c)!=null){
                        stringResult.append(String.valueOf(plainMap.get(c)));
                    }
                }
            }else{
                for (char c : contentText.getText().toLowerCase().toCharArray()) {
                    if(cipherMap.get(c)!=null){
                        stringResult.append(String.valueOf(cipherMap.get(c)));
                    }
                }
            }
            resultText.setText(stringResult.toString());
        }
        
        /**
         * Method to create action to button
         */
        private void action(){
            encryptButton.addActionListener(new ActionListener() {
                
                @Override
                public void actionPerformed(ActionEvent e) {
                    convertingString("encrypt");
                }
            });
            
            decryptButton.addActionListener(new ActionListener() {
                
                @Override
                public void actionPerformed(ActionEvent e) {
                    convertingString("decrypt");
                }
            });
        }
        
        
    }
    
     
  18. chillo

    chillo NUF BioTerrorist

    Joined:
    Mar 15, 2016
    Messages:
    1,991
    Likes Received:
    1,420
    Reading List:
    Link
    how about the language first, then let's say how to program for dummies(me) that doesn't know what to do to make a program work(I would preferred game programming, but reality would be a bitch, and the useful one would be web design)
     
  19. MeReadin

    MeReadin Active Member

    Joined:
    Oct 20, 2015
    Messages:
    23
    Likes Received:
    9
    Reading List:
    Link
    the challenge is a fun idea. I thought lets try the easy and medium. I just typed this in notepad with javascript in mind but since i've been coding with different languages lately tell me if I made a mistake somewhere.
    function coinToss() { 'heads' 'tails'
    return (Math.random() >= 0.5) ? true : false;
    }
    var plain['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];
    var cypher['n','o','p','q','r','s','t','u','v','w','x','y','z','a','b','c','d','e','f','g','h','i','j','k','l','m'];

    function encode(var text) {
    var encodedText;
    for (var i=0; i < text.length; i++) {
    for (var x=0; x < plain.length; x++) {
    if (text.toLowerCase() == plain) {
    encodedText += cypher;
    } else {
    encodedText += text;
    }
    }
    }
    return encodedText;
    }

    function decypher(var text) {
    var decodedText;
    for (var i=0; i < text.length; i++) {
    for (var x=0; x < cypher.length; x++) {
    if (text.toLowerCase() == cypher) {
    decodedText += plain;
    } else {
    decodedText += text;
    }
    }
    }
    return decodedText;
    }
     
  20. Sea Dog

    Sea Dog 『Rabid』『Mad Dog』

    Joined:
    May 30, 2016
    Messages:
    374
    Likes Received:
    251
    Reading List:
    Link
    i feel ashamed at my ignorance i'm only proficient in java and javascript