Ognacの雑感

木漏れ日々

目次

Blog 利用状況

書庫

ギャラリ

タダや簡単なモノの代償は大きい

タダトモなどのMail無料サービスや、Google/Yahooの無料DISKサービスなど、利用料金無料の仕組が増えました。
利用料は無料ですが、リソースの運営費は発生しているはずなので、どこかが被っています。
安全と水は只という意識も依然としてあります。
サラリーマンは税金や社会保険料が天引きなので、納税意識が薄くなるのは周知の通りです。
面倒でも、自分の手を介したほうが、当事者意識が芽生えます。

WebServerのメモリーやリソースをあまり考慮していないWebアプリケーションを見かけます。
DBから取得したDataTableをViewStateやSession変数に格納して、画面間のやり取りに使っていたりします。
複数レコード(100から1000件単位)を扱い、変更、追加、削除を別のDataTableに保持して、n個のSession変数に格納してあったりします。
しかも1レコード長は1000byteだったりします。  100セッション確立したら、どれくらいリソースを喰うのか不安になります。
「感心しない作りだ」と述べたら、「動いているから、問題ない」。
サーバーでリソース問題が発生しても、アプリの問題ではないという意識が働くのかも知れません。
「目先の製造が楽ならそれでよし」との感じも見え隠れします。
無料サービスや、手軽につかえる機能は、機能に相当する負荷がどこかに掛かっています。
税金天引きと引き替えに納税意識を奪われました。手間や負担をなくすことと、無責任になることは諸刃の剣のように感じます。

投稿日時 : 2008年11月18日 0:29

Feedback

# re: タダや簡単なモノの代償は大きい 2008/11/18 8:12 Pasie.

>「感心しない作りだ」と述べたら、「動いているから、問題ない」。
 まあ動いていれば問題ないのではないかとも思います。
 本当に動いていれば。

 問題はそのシステムのスペックが、この例では100セッションを超えるのかどうかということでしょうか。定常的に超えてサーバーに影響を与えるようなら「使えない」と思います。
 反面、定常的には10セッションくらいしか積算されないなら、その作りもありかと思います。かつてVB.NETで、MsgBoxはDialogMessage.Showのラッパーだ、ラッパーだから遅いので使うべきでないという言説を聞いたことがありますが、こういうのは寝言だと思う派です。
 かといって、十分性能的に満足しているからと言ってwhileの中でreallocするコードはどうなん?って感じもします。
 そしてコーダーのセンスに直結する問題でもあったりするので、なかなか難しい問題です。

# re: タダや簡単なモノの代償は大きい 2008/11/18 10:20 みきぬ

> 手間や負担をなくすことと、無責任になることは諸刃の剣のように感じます。
>
今と昔を比べると、確かにそう思ってしまうと思います。
しかし、昔とさらに昔を比べた場合でも、同じことは言えるのでしょうか?
# この答えが「言える」だとこの話終わっちゃいますw

もし同じだと言えないとしたら、それは手間や負担がなくなったことではなくて、何か別の要因(e.g. 躾、教育)があるように思います。

# re: タダや簡単なモノの代償は大きい 2008/11/18 11:42 Ognac

>本当に動いていれば。
>そしてコーダーのセンスに直結する問題でもあったりするので、なかなか難しい問題です。
「イントラネットでユーザー数限定の元」という制約下では確かに、そうなのでしょうが、「悪癖は身につきやすく、訂正しがたし」といいます。開発者をならそうあって欲しくないです。......しかし、「目先の仕事を解決するだけで満足だ」 と言われれば、それ以上は言えないのですが、後々、迷惑が発生する可能性は潰して置くのが 本来だと思うのです。

MsgBox()はラッパーだけでなく、付加メソッドか何かがあったように思います。それを使いたいから、MsgBoxを多用した記憶が.....忘却してますが。

>whileの中でrealloc
Whileの中で 要素数 +=1 : reDIM Preserve A(要素数) as string とするより、マシですね。........そういう問題じゃないって?

string はGCコストが高いから、StringBuilderを使え としている規約がありますが、 StringBuilder のインスタンスコストを考慮してなかったりして、逆に遅くなることも........検証しないでルール化しているケースもありますね。

># この答えが「言える」だとこの話終わっちゃいますw
エジプトの 古文書に「今時の若い者はなっとらん」という文言があるそうですが、世代間問題と類似かなと一瞬思いましたが、どうも違う感じがします。
 世代間問題は価値観の相違と世代常識の適用度に左右されますが、技術の簡略化は、基礎知識(技術?)の伝承問題が絡むと思うのです。

知識には基本知識と運用知識があると考えてます。
運用知識の例として
  今の車にはクランク口とクランク棒がついてません、バッテリーが上がってしまうと、手動で始動させることが不可能です。
  ダブルクラッチでミッションの切替
などは知らなくても運転できます。4Cycle/2Cycleの仕組みも知らなくても良いですし、ボンネットを開ける必要も少なくなりました。
基本知識の例は
  真ん中のペダルがブレーキで、坂道ではエンジンブレーキを利かせて、止まる時は、Parking(or 1St)に入れる。
  などの共通UIとされる部分でしょうか。

「最近の若い者は、竈やガス火で飯を炊けなくなった」とぼやいてみても、調理器具は自動炊飯器が前提となっているので、仕方のないことです。
 しかし、精米して、米をといて、水を加えるという動作は基礎知識でしょう。(無洗米もありますが)
「米を洗って」といわれて、洗剤で米を洗ったり、 「この赤ちゃんを洗って」と指示されたベビーシッターが、洗濯機に赤ちゃんを放りこんだとか(真偽不明ですが)
 これらと、類似する危惧を感じるのです。

 Alloc()したらFree()する,, OpenしたらCloseする...というのが一対として身に付けて欲しいのですが、
.net系だと GCが自動的に働くので , new objectに対する Dispose()処理が不要になるのは一長一短だと思うのです。
 
Intel系言語特有の64kByte壁問題 Small Large modeがCodeとdataの双方にあり、コンパイル時に考慮する必要があった...などの知識はもはや不要な知識でしょう。昔話のネタになり、定期的に盛り上がるので、知ッ得ですが。

あけたら閉める、出したら片付けるというのは基本ですが、自動ドアでもWebセッションでも、放置したら一定時間後に自動的に閉じてくれます。便利さが進むと、後の人のことを考えなくなるのでは....と危惧するのは老婆心すぎますか。

底辺人口が増えると平均モラルは下がるが、Topレベルも向上するので、モラル低下を嘆くのは疑問を感じるのですが、基本知識の伝承は必要だと思うのです。

# re: タダや簡単なモノの代償は大きい 2008/11/18 15:33 Pasie.

 むしろ開けるけど閉めないからこそ、そういう仕組みができてきた。と考えた方がスマートな気がします。
 それとDisposeは不要にはなりません。ならないからこそ、そのパターンを掌握するのが大変で煩雑になりがちなところが、短所何ではないかと思います。個人的にはDisposeが不要になる処理系を今後に期待したいところですが…

# re: タダや簡単なモノの代償は大きい 2008/11/18 20:52 Ognac

>そういう仕組みができてきた。
そういう仕組みが普及する以上、文句言わずに慣れないとダメなんですね。ササヤカナ抵抗感が残りますが。
>それとDisposeは不要にはなりません。
そうでした。...orz:
リソースの解放も、自前で意識するケースもうりますね。 そのレベルでは、「閉じる」行為の必然性を意識付けする必要があろうかと。 リソースの所有者管理まで、システムが捕捉できれば可能かも...自分のCPU以外が所有するケースもあり得るなら厳しいかも。

# re: タダや簡単なモノの代償は大きい 2008/11/19 1:26 Pasie.

>そういう仕組みが普及する以上、文句言わずに慣れないとダメなんですね
 というよりは、Cがコーダーの技術力を信用した結果、強力な利便性を与えた反面、メモリリークやバッファオーバーフローという副作用を生んだ訳ですよね。
 現在の流行としては、そうではなくて、機械側でできることは機械側でお手当てするってことなのだと思います。
 ただ現時点のところ、リソース管理の考え方は今までとあまり変わらないのと、スタックじゃないんだヒープなんだってところは昔よりも強く押さえておかないといけないところなんでしょうね。特にBasic上がりの方々へは。

# What's up to every body, it's my first go to see of this webpage; this webpage consists of remarkable and really good stuff in favor of readers. 2021/09/01 3:15 What's up to every body, it's my first go to see o

What's up to every body, it's my first go to see of this webpage;
this webpage consists of remarkable and really good stuff
in favor of readers.

# What's up to every body, it's my first go to see of this webpage; this webpage consists of remarkable and really good stuff in favor of readers. 2021/09/01 3:16 What's up to every body, it's my first go to see o

What's up to every body, it's my first go to see of this webpage;
this webpage consists of remarkable and really good stuff
in favor of readers.

# What's up to every body, it's my first go to see of this webpage; this webpage consists of remarkable and really good stuff in favor of readers. 2021/09/01 3:17 What's up to every body, it's my first go to see o

What's up to every body, it's my first go to see of this webpage;
this webpage consists of remarkable and really good stuff
in favor of readers.

# What's up to every body, it's my first go to see of this webpage; this webpage consists of remarkable and really good stuff in favor of readers. 2021/09/01 3:18 What's up to every body, it's my first go to see o

What's up to every body, it's my first go to see of this webpage;
this webpage consists of remarkable and really good stuff
in favor of readers.

# My spouse and I stumbled over here by a different website and thought I should check things out. I like what I see so now i'm following you. Look forward to exploring your web page again. 2021/09/01 23:00 My spouse and I stumbled over here by a different

My spouse and I stumbled over here by a different
website and thought I should check things out. I like what I see so now i'm following you.
Look forward to exploring your web page again.

# My spouse and I stumbled over here by a different website and thought I should check things out. I like what I see so now i'm following you. Look forward to exploring your web page again. 2021/09/01 23:01 My spouse and I stumbled over here by a different

My spouse and I stumbled over here by a different
website and thought I should check things out. I like what I see so now i'm following you.
Look forward to exploring your web page again.

# My spouse and I stumbled over here by a different website and thought I should check things out. I like what I see so now i'm following you. Look forward to exploring your web page again. 2021/09/01 23:02 My spouse and I stumbled over here by a different

My spouse and I stumbled over here by a different
website and thought I should check things out. I like what I see so now i'm following you.
Look forward to exploring your web page again.

# My spouse and I stumbled over here by a different website and thought I should check things out. I like what I see so now i'm following you. Look forward to exploring your web page again. 2021/09/01 23:03 My spouse and I stumbled over here by a different

My spouse and I stumbled over here by a different
website and thought I should check things out. I like what I see so now i'm following you.
Look forward to exploring your web page again.

# I visited several web sites however the audio feature for audio songs present at this web site is really excellent. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars 2021/09/14 3:07 I visited several web sites however the audio feat

I visited several web sites however the audio feature for audio songs present at this web site is really excellent.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

# I visited several web sites however the audio feature for audio songs present at this web site is really excellent. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars 2021/09/14 3:08 I visited several web sites however the audio feat

I visited several web sites however the audio feature for audio songs present at this web site is really excellent.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

# I visited several web sites however the audio feature for audio songs present at this web site is really excellent. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars 2021/09/14 3:09 I visited several web sites however the audio feat

I visited several web sites however the audio feature for audio songs present at this web site is really excellent.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

# I visited several web sites however the audio feature for audio songs present at this web site is really excellent. quest bars https://www.iherb.com/search?kw=quest%20bars quest bars 2021/09/14 3:10 I visited several web sites however the audio feat

I visited several web sites however the audio feature for audio songs present at this web site is really excellent.
quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

# I quite like reading through a post that will make people think. Also, thanks for allowing me to comment! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery 2021/09/14 16:55 I quite like reading through a post that will make

I quite like reading through a post that will make people think.
Also, thanks for allowing me to comment! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

# I quite like reading through a post that will make people think. Also, thanks for allowing me to comment! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery 2021/09/14 16:56 I quite like reading through a post that will make

I quite like reading through a post that will make people think.
Also, thanks for allowing me to comment! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

# I quite like reading through a post that will make people think. Also, thanks for allowing me to comment! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery 2021/09/14 16:57 I quite like reading through a post that will make

I quite like reading through a post that will make people think.
Also, thanks for allowing me to comment! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

# I quite like reading through a post that will make people think. Also, thanks for allowing me to comment! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery 2021/09/14 16:58 I quite like reading through a post that will make

I quite like reading through a post that will make people think.
Also, thanks for allowing me to comment! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

# Right away I am ready to do my breakfast, when having my breakfast coming over again to read more news. 2021/10/25 16:45 Right away I am ready to do my breakfast, when hav

Right away I am ready to do my breakfast, when having my breakfast coming over again to read more news.

# magnificent points altogether, you simply received a brand new reader. What might you recommend about your post that you made a few days in the past? Any sure? 2021/11/12 15:43 magnificent points altogether, you simply received

magnificent points altogether, you simply received a brand new reader.
What might you recommend about your post that you made a
few days in the past? Any sure?

# A person necessarily assist to make significantly articles I might state. This is the first time I frequented your web page and so far? I amazed with the research you made to make this particular put up extraordinary. Magnificent activity! 2021/11/12 23:59 A person necessarily assist to make significantly

A person necessarily assist to make significantly articles I might state.
This is the first time I frequented your web page and so far?

I amazed with the research you made to make this particular put up extraordinary.

Magnificent activity!

# A person necessarily assist to make significantly articles I might state. This is the first time I frequented your web page and so far? I amazed with the research you made to make this particular put up extraordinary. Magnificent activity! 2021/11/13 0:00 A person necessarily assist to make significantly

A person necessarily assist to make significantly articles I might state.
This is the first time I frequented your web page and so far?

I amazed with the research you made to make this particular put up extraordinary.

Magnificent activity!

# A person necessarily assist to make significantly articles I might state. This is the first time I frequented your web page and so far? I amazed with the research you made to make this particular put up extraordinary. Magnificent activity! 2021/11/13 0:01 A person necessarily assist to make significantly

A person necessarily assist to make significantly articles I might state.
This is the first time I frequented your web page and so far?

I amazed with the research you made to make this particular put up extraordinary.

Magnificent activity!

# A person necessarily assist to make significantly articles I might state. This is the first time I frequented your web page and so far? I amazed with the research you made to make this particular put up extraordinary. Magnificent activity! 2021/11/13 0:01 A person necessarily assist to make significantly

A person necessarily assist to make significantly articles I might state.
This is the first time I frequented your web page and so far?

I amazed with the research you made to make this particular put up extraordinary.

Magnificent activity!

# It's truly very complicated in this active life to listen news on Television, so I only use the web for that reason, and take the hottest information. 2021/12/24 23:52 It's truly very complicated in this active life to

It's truly very complicated in this active life
to listen news on Television, so I only use the web for that reason, and take the hottest information.

タイトル
名前
Url
コメント