ほげほげ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<article> | |
<header> | |
<h1>カレーのレシピ</h1> |
- 元祖モブプロ発祥の地である HunterIndustries社(にいた) Woody Zuillさんの本です
- 洋書ですが余裕があれば読むと◎かと
- HunterIndustries社について参考になるブログ
2017年12月 WEB+DB PRESS Vol.102|技術評論社
- 特集1のテーマがペアプロとモブプロです
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import pandas as pd | |
from sklearn.datasets import load_iris | |
from sklearn.tree import DecisionTreeClassifier | |
%matplotlib inline | |
# すぐに試すためのmodelを作っておく(なので、データ分割とかしてない) | |
iris = load_iris() | |
X_train = pd.DataFrame(iris.data, columns=iris.feature_names) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass, InitVar | |
from enum import Enum | |
from typing import Dict | |
""" | |
Optimizerクラスの定義 | |
""" | |
from abc import abstractmethod, ABCMeta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 連想配列とif文の組み合わせ的なお題 | |
// 難易度: ★★☆☆☆ | |
// 3都府県のいくつかの駅名とある日の最高気温のデータを連想配列として持っています | |
$weather_information = [ | |
['prefecture' => '東京都', 'station' => '渋谷', 'temperature' => 6.5], | |
['prefecture' => '東京都', 'station' => '池袋', 'temperature' => 7.0], | |
['prefecture' => '東京都', 'station' => '新橋', 'temperature' => 7.5], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
ボトムアップドメイン駆動設計のリポジトリにフォーカスしたPython実装例 | |
参考: [ボトムアップドメイン駆動設計](https://nrslib.com/bottomup-ddd/#outline__4) | |
## Version | |
Python 3.7.0 | |
## 参考記事との違いなど | |
### Userエンティティではない | |
- このスクリプトでは単純なUserクラスにしている |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
class VersionNumber: | |
def __init__(self, value: int): | |
if value < 0: | |
raise ValueError("バージョン番号は0以上の整数でなければなりません") | |
self.value = value | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
参考: https://nrslib.com/bottomup-ddd/#outline__2_3 | |
""" | |
from __future__ import annotations | |
import dataclasses | |
import uuid | |
@dataclasses.dataclass(frozen=True) |
NewerOlder