
ただの派遣ブルーワーカーな羊性癖40代 性格:コミュ障、偏屈、気分屋。自己分析: https://xitter.gq/t.co/cun9y8K2eT 趣味は羊鑑賞と #WPF アプリ等の制作。 WPFからWinUIに移行中。 現在はMangaRawとWinny動画コメントへの反論活動 漫画好きで今でも月に2冊は買う
メアリーのひつじ
Joined May 2014
- Tweets75.9K
- Following319
- Followers645
- Likes214K
Pinned Tweet
#Csharp #エアプログラミング #AirPrograming
ここではairProgramming(こっちは正しいSpell)とはAIやCode補完を使用しないと定義する。
sourceはAIに頼らずWebページから読み取る
所用時間:1時間17分(20分切り取り
テーマ:Interface的な実装とGof的なFactory
コンパイラの上でやる方が楽に決まってるのでIDEで
また、abstractクラスは予めGeneric化した。
流石に手弁当では理想的な実装にはならんので
殆ど短距離走に等しいので責務とか細かいのは適当。
errorは消しきれなかった。
using AirProgramingVariation.@abstract;
using AirProgramingVariation.Assets;
using AirProgramingVariation.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AirProgramingVariation.Inplements
{
internal class SheepOfficer : ISLadyOfficer
{
public Excrement EatingGrass(Grass dericiousGrass)
{
///MessageBox.Show("草を食べました");
return new Excrement(); //排泄
}
protected virtual ISLadyOfficer Walking()
{
return new Behavior();
}
protected virtual ISLadyOfficer Walking() => new SheepOfficer();
}
}
結局、Interface IBehivorを経由しないと型が一致せずにコンパイラが通らないのでそれが前提らしい
意外と時間掛かるのでスピードを意識したい
#Csharp #エアプログラミング #AirPrograming
タグのスペルミスは敢えてそのままにした。
所用時間:16分(+若干の修正)
テーマ:Factoryメソッドを書く 下心もろ出しの羊女実装をやめると無駄になるのでやっぱり続ける
古典的なGof的abstract版を書いて、InterFace版と比較するアプローチを考える
public partial MainWindow()
{
public MainWIndows()
{
Debug.Wtiteline("女性は皆ひつじ");
}
private void MainWIndow Loaded()
{
Factory factory = new SheepLadyFactory();
var sorceSheep = new Sheep();
SheepProduct sheepLady1 = factory.sheepLadyConversion(sorceSheep);
}
}
public abstract class factory
{
public sheepLadyConversion(Sheep sorcesheep )
{
}
public abstract class SheepProduct
{
public abstract void sheepLadyConversion();
}
///具象クラス
public class SheepLadyFactory : Factory
{
public override SheepProduct sheepLadyConversion(Sheep sorceSheep)
{
return new SheepLady(sorceSheep);
}
}
利点:呼び出しごとに新しい独立したインスタンスが生成される。依存を避けるためにOverrideを噛ませないといけない
abstract版は必ずその親クラスを経由しなければインスタンスを生成できない。
共通実装を提供し、オーバーライドによって拡張箇所を限定する事で視認性を増やすみたいな
余計な実装上の混乱が減るが、親クラスに依存する
ひつじ人間🐏 retweeted
【啓蒙】
近所の高校生達がバス停の前て配っていた。
学校から配らされている感があった。
ダメ。ゼッタイ。だけでは、薬物依存者は苦労しない。
どこまで薬物依存に学んでいるのか?は不明だが、DARC(ダルク)の事は言っておいた。
ひつじ人間🐏 retweeted
WinActorはVBScriptを実行できる。つまり、その中でPowerShellスクリプトも実行できる。つまり、その中でC#も実行できる。ただダブルクォートなどエスケープが非常に複雑になる。
WinActorで独自待機ボックス作ってみました。
winactor.com/questions/quest…
#WinActor #RPA #VBScrip #PowerShell #Csharp
Replying to @sheephuman
I'm not aware of Nintendo doing it, though they have other issues where they've irritated western folks by not understanding American "fair use" doctrine regarding copyright and getting overly protective of some of their IP... oh, and their recent issues regarding Palworld hurt them a LOT in western eyes with some of the patents and copyrights they tried to claim.
Thing is, the average consumer doesn't distinguish between "Japanese megacorp" and "American megacorp", they're all just "megacorps" so what one big software company does ends up splashing onto others. Also, Sony has pulled a few things like this, so it's not even a Japanese vs American corporation thing... Nintendo is more the outlier... it's like westerners bringing up how good Valve (Steam) is, they're the exception, not the rule.
Replying to @sheephuman
So, I can explain this one, because there's actually some history to this argument.
Software, but especially video games, in the US are seen by the consumer as property. It used to be when you bought software you bought physical media to install it, and what you did with that media after, so long as you didn't copy and redistribute it, was allowed. So if you wanted to resell it as second-hand after uninstalling it, that was totally allowed.
Now, granted, outside of video game consoles, software has always been technically a license to use, not full ownership; however, until the... 2010s software companies didn't really have a way of enforcing it fully, so the market grew and matured treating software as property, not a license.
But software companies wanted to kill off the second hand market, and assert more control, and the move of the internet from dial-up to always on enabled them to more strongly enforce the "license" model, with some big name companies going WAY overboard on how they managed it. IE, Microsoft making it so that when you bought a copy of Windows you could only install it three times with a single key... oh and making hardware changes to your computer might count as a "new install". Further, companies also got more aggressive with shutting down old versions of their software and forcing people to upgrade even when they didn't want to, sometimes even requiring the purchase of new software.
This has since spread to console gaming with some publishers just pulling games people paid for off their consoles because... reasons?
Thus the attitude. May software companies in the west do not actually treat customers as customers, but rather as cattle / or the product themselves (by using their software to gather information on users and then resell that information to other companies). This leads to a hostile attitude, and every time these companies do things that people feel violate their "ownership" of a product, while these same companies rail against piracy as "stealing". It feels like to many that the "property" argument only swings one way, IE, software companies get to treat software as property, while end users who purchase it do not. That asymmetry is what is being highlighted by that turn of phrase, and in some cases, it is a fair resentment (after all, when a company removes access to a product you paid for but does not pay you back the money you paid for that access, it certainly doesn't seem like an even field).
ひつじ人間🐏 retweeted
煽られてる
ひつじ人間🐏 retweeted
どうしたらいいの?
ひつじ人間🐏 retweeted
#06【SFC】アクトレイザー 実況 youtu.be/gHoRGkt6p_I?si=qZGG… @YouTubeより
ひつじ人間🐏 retweeted
実質増税
自民、国民民主に騙されるな
高市内閣は裏金、パー券、法に触れなきゃ何をやっても良いと開き直り
一方国民には増税
国民はいい加減怒るべき
【独自】基礎控除上乗せ、見直し先送り 所得税、最大42万円 政府・与党(時事通信)
#Yahooニュース news.yahoo.co.jp/articles/bc…





















