Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ひまプロプレゼンツ 「エンジニア格付けチェック 〜春の公開収録スペシャル〜」

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

 ひまプロプレゼンツ 「エンジニア格付けチェック 〜春の公開収録スペシャル〜」

2025/3/22に実施した第3回ひまじんプログラマーの週末エンジニアリングレッスンのLT会と公開収録で使用した資料です。

飯田嘉一郎

March 24, 2025

Transcript

45 slides
  1. public interface Operation { int compute(int a, int b); }

    public class AddOperation implements Operation { public int compute(int a, int b) { return a + b; } } public class SubtractOperation implements Operation { public int compute(int a, int b) { return a - b; } } 次スライドに続く 第⼀問 これは、どちらのデザインパターン?
  2. public class Calculator { private Operation operation; public Calculator(Operation operation)

    { this.operation = operation; } public void setOperation(Operation operation) { this.operation = operation; } public int calculate(int a, int b) { return operation.compute(a, b); } } 第⼀問 これは、どちらのデザインパターン?
  3. public interface Operation { int compute(int a, int b); }

    public class AddOperation implements Operation { public int compute(int a, int b) { return a + b; } } public class SubtractOperation implements Operation { public int compute(int a, int b) { return a - b; } } 次スライドに続く 第⼀問 解説 Strategy パターン
  4. public class Calculator { private Operation operation; public Calculator(Operation operation)

    { this.operation = operation; } public void setOperation(Operation operation) { this.operation = operation; } public int calculate(int a, int b) { return operation.compute(a, b); } } 第⼀問 解説 Strategy パターン
  5. 第⼆問 console.log()で表⽰されるのはどっち? // B const jmp = []; if (jmp

    == ![]) { console.log('Hello Jumpei'); } // A const jmp = { name: 'Jumpei', getName: () => { return this.name; } }; if (jmp.getName() === 'Jumpei') { console.log('Hello Jumpei'); }
  6. A B if (jmp.getName() === 'Jumpei') if (jmp == ![])

    第⼆問 console.log()で表⽰されるのはどっち?
  7. A B if (jmp.getName() === 'Jumpei') if (jmp == ![])

    第⼆問 console.log()で表⽰されるのはどっち?
  8. 第⼆問 解説 // B const jmp = []; if (jmp

    == ![]) { console.log('Hello Jumpei'); } // A const jmp = { name: 'Jumpei', getName: () => { return this.name; } }; if (jmp.getName() === 'Jumpei') { console.log('Hello Jumpei'); }
  9. public abstract class Character { public abstract void attack(); public

    void move() { System.out.println("共通の移動処理"); } } public class Pichu extends Character { @Override public void attack() { System.out.println("ピチューが攻撃!自己ダメージあり"); } } 第四問 解説 抽象クラス
  10. A B 第五問 本当にある⾔語はどっち? (予備問題) LoopLang   • 無限ループの中にしか処理をか けない⾔語 •

    どの処理も無限ループするた め、クラッシュすることで処理 が終わる Whitespace   • 空⽩やタブ⽂字などの不可視⽂ 字しか使えない⾔語 • 全て不可視⽂字だけで構成され るので、書いたプログラムが⾒ えない
  11. .shape { width: 100px; aspect-ratio: 1; background: #9138d4; clip-path: polygon(50%

    0%, 100% 50%, 50% 100%, 0% 50%); } 第六問 このCSS、何が表⽰される? A B 紫色のひし形 茶⾊の正⽅形
  12. 一流
 エンジニア
 普通 エンジニア 二流
 エンジニア
 三流 エンジニア 働く 価値無し

    かけだし さん じゅんぺい コモド ドラゴン チーム ノンアル ハンバー ガー まぐろ.js 五目 ビュッフェ チーム 初参戦

More Decks by 飯田嘉一郎

Other Decks in Technology