Skip to content

Instantly share code, notes, and snippets.

@tonosaman
Last active August 9, 2024 08:25
Show Gist options
  • Save tonosaman/d68d624d68a61d59435f5b547c65782e to your computer and use it in GitHub Desktop.
Save tonosaman/d68d624d68a61d59435f5b547c65782e to your computer and use it in GitHub Desktop.
インターンシップカリキュラム
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"id": "c2f234cd-8652-4659-bfeb-d807de455004",
"metadata": {},
"source": [
"# Day2: システム開発とテスト\n",
"\n",
"- 社内システム開発プロセスの一部として、簡単なプログラミング演習を行います。\n",
"- 要件を満たしていることを検証する手段や、社内SEとしてシステムを継続的に保守・開発する上での考え方を学べます。\n"
]
},
{
"cell_type": "markdown",
"id": "0d43bb3f-f110-458f-99a6-72f9ff228550",
"metadata": {},
"source": [
"## 1. 開発環境を用意しよう\n",
"\n",
"- ローカルPCで開発\n",
" - Visual Studio Code\n",
" - Linux (Ubuntu, Debian) + Docker\n",
"- クラウド環境で開発\n",
" - Google Colaboratory\n",
" - GitHub Codespaces\n",
" - ~~Amazon Cloud9~~\n",
"\n",
"クラウドサービスの利用に際しては、社内規定(セキュリティ、課金など)の承認も必要\n",
"\n",
"### 成果物の管理方法\n",
"\n",
"- 分散型リポジトリによる管理\n",
"- プルリクエスト単位でのコードレビュー駆動\n",
"- 文字符号化方式(UTF-8)や改行コード(LFのみ)は統一\n",
"\n",
"### 課題の管理方法\n",
"\n",
"{アイデア, フィードバック, タスク, バグ追跡}を管理したい\n",
"\n",
"- 課題管理システム(GitHub Issues)\n",
"- バグトラッキングシステム(Trac, Bugzilla)\n",
"- プロジェクト管理システム(Redmine)\n",
"\n",
"### 演習1) 環境の再現性についても考えておこう\n",
"\n",
"- 開発機材の故障でプロジェクトが継続できなくなるのを防ぐには?\n",
"- 将来的にチームで開発することになるかもしれない\n",
"- 環境{OS, コンパイラ, ライブラリ}のバージョン違いで発生する不具合を防ぐには?\n",
"- 開発環境・テスト環境・本番環境など毎回実機を構築する手間は省きたい\n"
]
},
{
"cell_type": "markdown",
"id": "07396141-1e43-4271-9bf1-ba7997a40eb4",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"id": "9d6852f5-e463-466c-8c22-8ddc5e8e421e",
"metadata": {},
"source": [
"## 2. プログラム実装体験"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "409a4ab7-64eb-490c-b332-d97ac9e47fdc",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello world\n"
]
}
],
"source": [
"print(\"Hello world\")"
]
},
{
"cell_type": "markdown",
"id": "63d064c6-7ad1-43b6-ac49-39428423a01a",
"metadata": {},
"source": [
"### Excelファイルの読込"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "966ffd54-06f2-4ae6-a559-54947846d3c6",
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"\n",
"dfs = pd.read_excel(fc_xlsx, na_filter=False, sheet_name=['当月', '翌月'], header=3,\n",
" engine='openpyxl' if Path(fc_xlsx).suffix.lower()[1:] == 'xlsx' else None)\n",
"\n",
"df = pd.read_csv(path, header=None, skiprows=[0,1], encoding='cp932')\n",
"display(df)"
]
},
{
"cell_type": "markdown",
"id": "7d0d2cbe-f1c7-4c3d-a3eb-c10188fb8816",
"metadata": {},
"source": [
"### データクレンジング・整形"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "5b56eccd-9f92-4118-995b-1c7c84807c6e",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "e4113896-7b9a-41c0-9f59-c858e7cc72d2",
"metadata": {},
"source": [
"### CSV出力"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e6040d5a-df83-4dfe-bc05-ed9d67a5aab1",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "4af8956d-f3ac-46dc-9bbd-5728856ab6bf",
"metadata": {},
"source": [
"### テストの作成"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "dcfe18d0-3eb1-4cc9-a0bb-6f1a49d37d12",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment