木曜日, 6月 5, 2025
No menu items!
ホーム ブログ ページ 3991

【JavaScript】MDNが推奨する最強の書き方 #初心者向け – Qiita



【JavaScript】MDNが推奨する最強の書き方 #初心者向け - Qiita

MDNのドキュメントを眺めていたら、JavaScript のサンプルコードの作成ガイドラインという章を見つけました。第三者にコードを公開するような人向けにまとめられたものですが、正しい書き方の実践としてみることができるので、クローズドなプロジェクトの中でも使えるかもしれません。ただ、モノによってはチームで決めた慣習と食い違うこともあるかもしれないので、採用はケースバイケースになると思います。

上記のページが紹介された記事があまり見当たらなかったので、折角なので共有してみようと思います。あと、ところどころ補足を付け加えています。

基本的には初心者向け
ただ、幾つかは中級者の方でもためになるものがあるかも?

  • ☆:よく見かける書き方。一般的
  • ☆☆:あまり見かけないかもしれない書き方。あるいは、意識的には規則づけられてなかった書き方
  • ☆☆☆:クローズドなプロジェクトの開発での慣行とは食い違う可能性のある書き方。好みで別れていたものを統一化する状況になるかも

(独断による分け方ですのでご承知おきください)

配列の定義☆

配列の定義では、リテラルを用いるるようにしてください。

わざわざコンストラクタを使わないようにしましょう。

const list = new Array(length)

new Arrayの挙動と使い所さん
const list = new Array(length)で定義されたlistには、”空のスロット”が入っています。これはundefinedとは違い、このままではmapメソッドを使って配列の値をどうこう操作することができません。もし0で初期化したいならば、new Array(length).fill(0)としてください。
これは例えば、Golangにおいてvar list [12]intでlistを初期化したとき、listに12個の0が入るのに相当します。

コンストラクタを使って配列を定義するのは、0から1刻みで昇順の数字が入った配列を作るのに便利です。Pythonでは、lis = [i for i in range(11)]とすれば楽に[0, 1, 2, 3, ...]と言う値が入ったlisを定義できるのですが、JavaScriptではリスト内包表記がありません。
その代わり、new Arrayを使ってconst list = new Array(11).fill(null).map((_, index) => index)とすれば同じような配列が作れます。

なお、nullをfillしているのは、配列の中身の値には興味がなく代わりにindex(添え字)を使うためです。別に0をfillしてもいいですが、初期化する値に意味があるわけではないことを明示するためにnullをfillしました。

単一コメント☆

スラッシュとコメントの間には空白を入れ、文末にはピリオド又は句点を付けません

// これがよく書かれたコメントです。句点を付けないでください

インデントレベルの最初の行にコメントがつかないときは、空白行を設けてコードブロックを作ってください。

class Member {
    // declaration without default values
    private name: string;
    private age: number;

    constructor(name: string, age: number) {
        this.name = name;
        this.age = age;
    }

    // getter functions
    getName(): string {
        return this.name;
    }

    getAge(): number {
        return this.age;
    }

    // setter functions
    setName(name: string) {
        this.name = name;
    }

    setAge(age: number) {
        this.age = age;
    }

    // complement function
    greeting(): string {
        const greetWord = `My name is ${this.name}, I'm ${this.age} years old.`;
        return greetWord;
    }
}

複数行のコメント☆☆

コメントは短い方が理想的ですが、長いコメントではすべての文の先頭に//を追加してください。/* … */は使わないでください

// This funciton generates lines of 'Commando'
// One sentence is returned from the function.
// You can change the name of an antagonist, Sully.
// Let's get it tried!

function qotesOfCommando(name: string): string {
    const generalQuote1 = `Matrix: Remember, ${name}, when I promised to kill you last? \n`
    const soldierQuote = `${name}: That's right, Matrix! You did! \n`
    const generalQuote2 = `Matrix: I lied.`
    return generalQuote1 + soldierQuote + generalQuote2
}

console.log(qotesOfCommando("Sully"))

これはダメ

/* 
    This funciton generates lines of 'Commando'
    One sentence is returned from the function.
    You can change the name of an antagonist, Sully.
    Let's get it tried! 
*/

function qotesOfCommando(name: string): string {
    const generalQuote1 = `Matrix: Remember, ${name}, when I promised to kill you last? \n`
    const soldierQuote = `${name}: That's right, Matrix! You did! \n`
    const generalQuote2 = `Matrix: I lied.`
    return generalQuote1 + soldierQuote + generalQuote2
}

console.log(qotesOfCommando("Sully"))

サンプルコードを書くにあたっては基本的に/* … */を使わないようですが、引数の省略を表すときには使うこともあるようです。
取りえる引数を用いないことを表すために使うようです。

array.map((value /* , index, array */) => {
  // …
});

サンプルコードを書く際に可能な限り以下のような書き方にするとよいと紹介されてありました。
関数の書き方は三つほどもあるので、どの時に何を使うかはクローズドなプロジェクトでも統一しておいても良いかもしれません。

関数の宣言☆☆☆

関数の定義は関数宣言を用いて、関数式やアロー関数を用いるのは避けてください。
よい例

function declareFunction(): void {
    console.log("function")
}

悪い例

const declareFunction = function(): void {
    console.log("function")
}

悪い例

const declareFunction = () => console.log("function")

関数宣言の巻取り
JavaScriptは通常コードを上から読んでいくので、定義前の変数やクラスを用いようとするとエラーが起こります。
ただ、関数宣言は「巻き取り」が起こるため、後の方で宣言したものを宣言前の段階で使ってもエラーが起こらないという特徴があります。

これは、スクリプトにおいて、「よく編集される関数を上部に、そうではないヘルパー関数などは下部に置くことで、認知的負荷やスクロールの手間を減らせる」という点で有用です。

"use client"

import { react } from "React"

// UIを担当するこの関数はよく編集される
export default function Home() {
    const path = getPath()
    return (
        
            p>{path}/p>
        />
    )
}

// このヘルパー関数が修正されることはあまりない
function getPath(): string {
    // ...
}

アロー関数の使い時と使い方☆

無名関数をコールバックとして用いる場合、アロー関数を使用して簡潔にしましょう。
また、アロー関数を用いる場合は、可能な限り暗黙の返り値(式本体とも呼ばれます)を使用してください。

const members = [
    {name: "Kirby", age: 30},
    {name: "Meta Knight", age: 30},
    {name: "Magolor", age: 14},
];

const memberAges = members.map(member => member.age);
const youngestAge = Math.min(...memberAges);
const youngestMembers = members.filter(member => member.age === youngestAge).map(member => member.name);
console.log(youngestMembers)
// ["Magolor"]

悪い例1:わざわざ式宣言は用いない。

const memberAges = members.map(function(member) {
    return member.age
})

悪い例2:一文で済むならわざわざ関数ブロックを作ったりしない。

const memberAges = members.map(member => {
    return member.age
})

React:関数コンポーネントはどう定義するべきか?
この話をReactに拡張するならば、関数コンポーネントを定義するときは関数宣言でやるのがベターと言う結論になります。
人によってはアロー関数で変数に代入して定義していたりしますが、もしこれを揃えたいなら関数宣言に合わせる方が有力でしょう。

もう少しいうと、(これは個人の感想なのですが)export するのも宣言時でよいかもしれません。
関数コンポーネントの定義時にexport defaultをしていない場合、「その関数コンポーネントが子コンポーネントとして、下で定義された親コンポーネントに使われているかもしれない」と考えなければならないからです。感覚としては、letで変数宣言されたときと似たような感じでしょうか(後で変更されるかもしれないと身構える必要がある)。

exportするかどうかを一発で理解したいので、宣言時にexportする方が無難でしょう。


・最後にexport

function UI1() {
    return />
}

function UI2() {
    return (
        
            {UI1 />}
        />
    )
}

export default UI2 // 最後まで見ないと結局何がexportされるか分からない。

・最初にexport

export default function UI1() {
    return (
        
            {UI2 />}
        />
    )
}

function UI2() {
    return />
}

Pythonならイテラブルのループはfor inで、Golangならコレクションのループはfor;;ないしfor range構文など使えるものが限定的です。
しかし、な ぜ か JavaScriptは割とたくさんあります。
古典的なfor(;;)だけでなく、for infor of、メソッドとしてforEachまで。
開発者の方が何を思ってこんなに実装したかは知りませんが、実務ではできる限り書き方は揃えることが望まれるでしょう。

ループの構文☆

コレクションの要素をすべて反復処理する場合は、for offorEachを使うようにしてください。

const nintendoIPs = ["Mario", "Kirby", "Pokemon", "Fire Emblem", "Pikmin", "Zelda"]
for(const ip of nintendoIPs) {
    console.log(nintendoIPs)
}

nintendoIPs.forEach(ip => console.log(ip))

for(;;)を使うことは推奨されません。
インデックスの i を追加しなければならないだけでなく、配列の長さも指定しなければなりません。配列を回すだけなら冗長です。

for(let i = 0; i  nintendoIPs.length; i++) {
    console.log(nintendoIPs[i])
}

もしインデックスを取り扱いたいならforEachを使ってください。コールバック関数の第二引数でインデックスを受け取れます。

for ofとforEachの違い
for ofは制御構文であるのに対して、forEachはArrayのプロトタイプメソッドです。これは、例えば関数の中でループする時に顕著に違いが現れます。
for ofのループブロックの中でreturnすれば、if文の制御ブロックでのreturnと同じように関数を終了させることができますが、forEachの場合単にその時のループで実行されているコールバック関数を終了するだけです。さらにその上の関数ブロックまでは終了できません。mapのコールバック関数でreturnしても早期リターンにならないことを考えると実感しやすいと思います。
このため、以下の二つの関数は同じような挙動になるわけではありません。

const nintendoIPs = ["Mario", "Kirby", "Pokemon", "Fire Emblem", "Pikmin", "Zelda"]

function loopList(list: string[]): boolean {
    for(const v of list) {
        if (v.length > 5) {
            return false
        }
    }
    return true
}
console.log(loopList(nintendoIPs)) // 期待通りfalseが出力

function loopList2(list: string[]): boolean {
    list.forEach(v => {
        if (v.length > 5) {
            return false
        }
    })
    return true
}
console.log(loopList2(nintendoIPs)) // 常にtrue

もう少しいえば、forEachは返り値が常に棄却されundefinedとなります。他のArrayプロトタイプメソッドで連鎖することはできませんし、元の配列が変わることもありません(即ち破壊的メソッドですらない)。
配列を回すことだけに特化した特殊なArrayメソッドであると解釈することが大切です。

for ofを使う場合は、変数をconstなどで定義してください。
これがないと暗黙の裡にグローバル変数を定義していることになり、意図しない変数の定義・上書きが起こる危険があります。

const nintendoIPs = ["Mario", "Kirby", "Pokemon", "Fire Emblem", "Pikmin", "Zelda"]

for(v of nintendoIPs) {
    console.log(v)
    // Kirby
    // Pokemon
    // Fire Emblem
    // Pikmin
    // Zelda

}

console.log(v) 
// Zelda
// 最後に代入されたvがここでもアクセスできる

より意味の分かりやすいコードへ
forループをまったく使用しないようにすることを検討してください。 Arrayを使用している場合は、代わりにmap, every, some, findIndex, find, includesのようなより意味づけされた反復処理メソッドを使用することを検討してください。

制御文のブロック☆☆☆

もしif文がreturnで終わっている場合はelseを追加しないでください。ネストを浅くするためです。
ただし、if, for, while などの制御フロー文は、単一の文の時は{}の使用を要求されませんが、常に{}を使用してください。文を追加する際に{}を追加するのを防ぐためです。

if (flag) {
    return "success" // {}の中でreturn
}

// else文は作らない

よくない例1

if (flag) return "success"

よくない例2

// 実はreturn文が直後になくてもjsは賢いので制御フローのreturn文だと認識してくれる
function func(flag: boolean):string {
    if (flag)
        // ただし、ここに何かを追加したらエラー
    
        return "success"

    return "failure"
}

例えば、Golangでは書き方が非常に限定されているため、頻繁にif文を丸ごと書かないといけません。三項演算子は使えませんし、{}を省略することもできません。しかしそのおかげで条件分の書き方は個人の好みが入る余地はほとんどありません。

短文で終わるのにわざわざ{}を省略しないのは非効率に見えるかもしれませんが、複数行にしないといけなくなった時に{}を追加し忘れる問題や、Golangのようにできるだけ記法は統一しておいた方がよいという話もあります。

switch文のブロック☆☆

breakとreturnは共存しません。return文を使う時はbreakしないようにしてください。

function monthStringToNumber(month: string): number {
    switch (month) {
        case "January":
            return 1
        case "Febrary":
            return 2
        case "March":
            return 3
        // ...
        default:
            return 0
    }
}
console.log(monthStringToNumber("December")) // 12

caseブロックの中で変数を宣言したりする必要がある場合は、{}で囲ってください。

switch (role) {
    case "admin": {
        const privilege = new Admin()
        member.accessibility = privilege
        break 
    }
    case "alumni": {
        const oldAccess = new Alumni()
        member.accessibility = oldAccess
        break
    }
    case "normal": {
        const normalAccess = new Normal()
        member.accessibility = normalAccess
        break
    }
    default:
        member.accessibility = null
        break
}

変数の宣言☆☆

基本的に変更する予定のないものはconstで宣言してください。
varはグローバルスコープを汚染するため避けてください。

const comsumptionTaxRate = 0.1

1 行で複数の変数を宣言したり、カンマで区切ったり、連鎖宣言を用いたりしないでください。

let var1, var2;
let var3 = var4 = "Apapou"; // var4 は暗黙にグローバル変数として作成され、厳格モードでは失敗する

なじみ深いものもあれば、そういう書き方が推奨されていると初めて知ったものもあると思います。
繰り返すようで恐縮ですがこれはあくまでもサンプルコードを書くときにどういう風に書くべきかというものです。ただ、実にいろいろな書き方ができるJavaScriptにおいて、根拠をもって(即ち個人の好みでなく)書き方を統一するための一つの指標・ガイドラインになるかと思います。
実際に採用するかはともかく、目を通しておくのも意味はあるかなと思った次第です。

元サイト





Source link

Views: 0

「デモンエクスマキナ」新作「DAEMON X MACHINA TITANIC SCION」のSteamストアページが公開


 マーベラスは、9月5日発売予定のNintendo Switch 2/プレイステーション 5/Xbox Series X|S/Steam用メカアクションゲーム「DAEMON X MACHINA TITANIC SCION(デモンエクスマキナタイタニックサイオン)」のSteamストアページを公開した。

 「DAEMON X MACHINA TITANIC SCION」は、多様な装備を組み替えて作るアーセナルを身に纏い、銃声と咆哮が響き渡る戦場に身を投じるメカアクションゲーム。自分好みにカスタマイズした機体で、地上、空中に広がるフィールドをシームレスに駆け巡る解放感や、多彩な兵装を駆使して敵を撃破していく爽快感が楽しめる。

 Steamストアページではティザー映像のほか、スクリーンショットなども確認可能。また、ウィッシュリストの受付も開始されている。

□Steam「DAEMON X MACHINA TITANIC SCION」のページ

【『DAEMON X MACHINA TITANIC SCION』1stトレーラー】





Source link

Views: 0

『Where Winds Meet』2025年に発売決定。クローズドβテストが5月16日に開始“武侠”がテーマのRPG。4人協力


4月11日(金)、Everstone Studioは、“武侠”をテーマにしたオープンワールドアクションアドベンチャーRPG『Where Winds Meet』を世界に向けて2025年に発売することを発表。クローズドβテストを実施することを決定した。

クローズドβテストの参加登録は本日より開始されており、公式サイにて応募申請が可能。応募期間は5月15日(木)まで、クローズドベータテストは5月16日(金)に開始される予定だ。

本作は、五代十国時代(西暦907年~960年ごろ)の中国を舞台に、若き剣士が激動の時代を生きるストーリーが展開される。

プレイヤーが降り立つフィールドは、中国の自然豊かな田園風景から神秘的な洞窟、断崖絶壁の峡谷、活気あふれる都市など、多彩なロケーションが用意されており、シームレスに探索できる。

ゲームをプレイするうちに、槍、剣、双剣、傘、扇といった武器にくわえ、“鍼灸打撃”“太極拳”などの東洋の医療や中国武術にインスパイアされたスキルを解放できるようだ。

さらに、プレイヤーの選択は世界に影響を及ぼすようで、家を再建したり、誰かのために戦うといった選択をとることができる。Steamストアページによると、プレイ時間は約100時間以上に及び、最大で4人のプレイヤーと一緒に世界を冒険することもできるようだ。

シングルプレイヤーモードでは協力するプレイヤー同士で伝説を紡ぐことが可能で、マルチプレイヤーモードでは何千人ものプレイヤーと遊ぶことができるという。また、ほかのユーザーに戦いを挑めばPvPバトルを楽しむこともできる。

『Where Winds Meet』2025年に発売決定。クローズドβテストが5月16日に開始“武侠”がテーマのRPG。4人協力_005

『Where Winds Meet』を世界に向けて2025年に発売予定。クローズドβテストの対象プラットフォームはPC(Steam、Epic Games)、およびPS5となる。専用のフォームよりクローズドβテストに申請可能だ。

以下、プレスリリースの全文を掲載しています。


Everstone Studio の武侠オープンワールド RPG『Where Winds Meet』が日本上陸決定!5 月クローズド β テスト実施!

PC および PlayStation®5 のプレイヤーが、壮大な武侠オープンワールドアクションアドベンチャーRPG をいち早く体験できるチャンス!

Everstone Studio は、待望の武侠オープンワールドアクションアドベンチャー RPG
「Where Winds Meet」の 2025 年グローバルリリースを発表しました。これに先立ち、PC および PlayStation®5 で選ばれたプレイヤーを対象としたクローズド β テスト(CBT)の実施が決定しました。

CBT の参加登録は本日より開始されており、アメリカ、カナダ、日本、韓国のプレイヤーは公式登録リンク
https://act.neteasegames.com/activity/3sSsSg/3aPyBU?lang=en&jm_track=0
1 から応募可能です。この特別な機会を通じて、ゲームの魅力をいち早く体験することができます。

『Where Winds Meet』2025年に発売決定。クローズドβテストが5月16日に開始“武侠”がテーマのRPG。4人協力_006

PV: https://www.youtube.com/watch?v=6Z024weTaWo
「Where Winds Meet」では、中国・五代十国時代を舞台に、若き剣士として自身の過去とアイデンティティの謎を追いながら、激動の時代に自らの物語を紡いでいく壮大な冒険が展開されます。

『Where Winds Meet』2025年に発売決定。クローズドβテストが5月16日に開始“武侠”がテーマのRPG。4人協力_007

プレイヤーは、武侠の世界観に基づく独自の戦闘システムを駆使し、キャラクターやスキルを自由にカスタマイズ可能。槍、剣、双剣、傘、扇といった多彩な武器に加え、鍼灸打撃、獅子咆哮、慈悲の摘み取り、太極拳など、東洋武術にインスパイアされた多彩なスキルをアンロック・強化できます。

また、この歴史と文化が息づく美しいオープンワールドでは、自然豊かな田園地帯から神秘的な洞窟、断崖絶壁の峡谷、活気あふれる都市まで、多様なロケーションをシームレスに探索可能。息を呑むような絶景とともに、真の没入体験が楽しめます。

『Where Winds Meet』2025年に発売決定。クローズドβテストが5月16日に開始“武侠”がテーマのRPG。4人協力_010

CBT への応募期間は本日から 5 月 15 日まで。参加対象地域(アメリカ、カナダ、日本、韓国)のプレイヤーで、PC または PS5 をお持ちの方は、ぜひご登録ください。

β テストは、英語、日本語、韓国語を含む複数言語に対応。より多くのプレイヤーが参加し、ゲーム開発における貴重なフィードバックを提供できる環境を整えています。CBT 開始日は 5 月 16 日を予定しています。

2025 年、武侠の世界を舞台にしたこの壮大な「Where Winds Meet」の冒険に、ぜひご参加ください。今後のクローズド β テストに関する詳細や最新情報は、以下の公式サイトおよび SNS をご覧ください。
※本コンテンツに記載のゲーム用語(世界観関連の名称・設定等)は、開発段階の暫定版です。正式リリース時には内容が変更される場合がございますので、予めご了承ください。
公式サイト:[Where Winds Meet 公式サイト]
Discord: https://discord.gg/eQc47PbWCK
X: https://x.com/WWM_JP
YouTube: https://www.youtube.com/@WhereWindsMeet
TikTok: https://www.tiktok.com/@wherewindsmeet_

本ページはアフィリエイトプログラムによる収益を得ている場合がございます





Source link

Views: 0

「スイッチ2」楽天ブックスでも4月24日より抽選受付!条件や期間は開始当日案内へ




小売店やECサイトでの抽選受付は一律で4月24日から。



Source link

Views: 0

What is Bluesky? Everything to know about the X competitor.



What is Bluesky? Everything to know about the X competitor.

Is the grass greener on the other side? We’re not sure, but the sky is most certainly bluer. It’s been over two years since Elon Musk purchased Twitter, now X, leading people to set up shop on alternative platforms. Mastodon, Post, Pebble (two of which have already shuttered operations) and Spill have been presented as potential replacements, but few aside from Meta’s Threads have achieved the speed of growth Bluesky has reached.

As of February 2025, Bluesky has surpassed 30 million users. Its growth stems from several policy changes at X, including a heavily criticized change to the block feature and allowing third party companies to train their AI on users’ posts, which helped the app soar to the top of the U.S. App Store. Bluesky also saw a big boost following the results of the 2024 U.S. presidential election (which also contributed to an X exodus by Taylor Swift fans). But while the number is promising, the growth has slowed — and the network has a lot of catching up to do to compete with Threads’ 275 million monthly active users.

Below, we’ve compiled the answers to some of the most common questions users have about Bluesky. And if you’ve made the switch, you can follow TechCrunch here as well as our team with our Starter Pack.

What is Bluesky?

Bluesky is a decentralized social app conceptualized by former Twitter CEO Jack Dorsey and developed in parallel with Twitter. The social network has a Twitter-like user interface with algorithmic choice, a federated design and community-specific moderation.

Bluesky is using an open source framework built in-house, the AT Protocol, meaning people outside of the company have transparency into how it is built and what is being developed.

Dorsey introduced the Bluesky project back in 2019 while he was still Twitter CEO. At the time, he said Twitter would be funding a “small independent team of up to five open source architects, engineers, and designers,” charged with building a decentralized standard for social media, with the original goal that Twitter would adopt this standard itself. But that was before Elon Musk bought the platform, so Bluesky is completely divorced from X.

As of May 2024, Dorsey is no longer on Bluesky’s board. Bluesky is now an independent public benefit corporation led by CEO Jay Graber.

How do you use Bluesky?

Upon signing up, users can create a handle which is then represented as @username.bsky.social as well as a display name that appears more prominent in bold text. If you’re so inclined, you can turn a domain name that you own into your username — so, for example, I’m known on Bluesky as @amanda.omg.lol.

The app itself functions much like X, where you can click a plus button to create a post of 256 characters, which can also include photos. Posts themselves can be replied to, retweeted, liked and, from a three-dot menu, reported, shared via the iOS Share Sheet to other apps, or copied as text.

You can search for and follow other individuals, then view their updates in your “Home” timeline. Previously, the Bluesky app would feature popular posts in a “What’s Hot” feed. That feed has since been replaced with an algorithmic and personalized “Discover” feed featuring more than just trending content. 

For new users, Bluesky introduced a “Starter Pack” feature, which creates a curated list of people and custom feeds to follow in order to find interesting content right out of the gate. You can find TechCrunch’s Starter Pack right here.

User profiles contain the same sort of features you’d expect: a profile pic, background, bio, metrics and how many people they’re following. Profile feeds are divided into two sections, like X: posts and posts & replies. In January 2025, Bluesky also added a new video tab to user profiles.

There is also a “Discover” tab in the bottom center of the app’s navigation, which offers more “who to follow” suggestions and a running feed of recently posted Bluesky updates. In January 2025, Bluesky also introduced a vertical video feed to compete with TikTok.

We’ve also put together a helpful guide on how to use Bluesky here.

Screenshot of Bluesky menu tab
Image Credits: Natalie Christman

Who’s on Bluesky?

By the beginning of July 2023, when Instagram’s Threads launched, Bluesky topped a million downloads across iOS and Android. Notable figures like Rep. Alexandria Ocasio-Cortez, Mark Cuban, Quinta Brunson, Dril, Weird Al Yankovic, Guillermo del Toro, Barbra Streisand, and Brazil President Luiz Inácio Lula da Silva have migrated to Bluesky.

Bluesky is also home to news organizations like Bloomberg, The Washington Post, and of course, TechCrunch! Since August 2024, Bluesky is also now allowing heads of state to sign up and join the platform for the first time.

In 2025, some prominent U.S. political figures set up accounts on the platform, like Barack Obama and Hillary Clinton.

Does Bluesky work just like X?

In many ways, yes. When it first started, Bluesky was much more pared down and didn’t even have DMs, but this key feature has since been implemented, even with emoji reactions. But DMs on Bluesky are currently limited to one-to-one messages, not group messages. Bluesky has also said it is interested in implementing something similar to X’s Community Notes feature. Additionally, X does not use a decentralized protocol like ActivityPub or AT. Bluesky has also been testing a Trending Topics feature and developing its own photo sharing app called Flashes, which is expected to be released in beta soon.

In October 2024, Elon Musk announced that X’s block feature would work differently than it has in the past. The new block functionality allows users you have blocked to view your posts and your profile, but not the ability to interact with your posts. Some users believe this update to be a safety concern, leading to an influx in Bluesky sign-ups as its block feature is more traditional.

In another move that separates Bluesky from X, the social network said it has “no intention” of using user content to train generative AI tools as X implemented a new terms of service that allows the platform to train AI models on public posts. But that doesn’t stop third parties from doing so.

While Bluesky was initially kicked off as a project convened by Jack Dorsey in 2019 when he was CEO of Twitter, the social app has been an independent company since its inception in 2021.

Is Bluesky free?

Yes, and it is now open to the public.

How does Bluesky make money?

Bluesky’s goal is to find another means to sustain its network outside of advertising with paid services, so it can remain free to end users. On July 5, 2023, Bluesky announced additional seed round funding and a paid service that provides custom domains for end users who want to have a unique domain as their handle on the service. Bluesky has also emphasized that it does not want to “require selling user data for ads” in order to monetize its platform.

In November 2024, Bluesky announced it raised a $15 million Series A round and is developing a subscription service for premium features. Bluesky, however, noted its subscription model will not follow in the footsteps of X’s “pay to win” premium offerings. Users have spotted mockups teasing the subscription feature, dubbed Bluesky+, which could include features like higher quality video uploads and profile customizations.

In December 2024, Peter Wang announced a $1 million fund, dubbed Skyseed, that will offer grants to those building on Bluesky’s open source AT Protocol.

Is Bluesky decentralized?

Yes. Bluesky’s team is developing the decentralized AT Protocol, which Bluesky was built atop. In its beta phase, users can only join the bsky.social network, but Bluesky plans to be federated, meaning that endless individually operated communities can exist within the open source network. So, if a developer outside of Bluesky built their own new social app using the AT Protocol, Bluesky users could jump over to the new app and port over their existing followers, handle and data.

“You’ll always have the freedom to choose (and to exit) instead of being held to the whims of private companies or black box algorithms. And wherever you go, your friends and relationships will be there too,” a Bluesky blog post explained.

What third-party apps are built on the AT Protocol?

Many developers are building consumer-facing apps on Bluesky or its underlying AT Protocol. These apps are built on open technology, as opposed to being siloed within big tech’s centralized, opaque ownership.

Some social apps include Flashes, a photo viewing client; Spark, a TikTok-like app; and Skylight Social, which is backed by Mark Cuban.

Check out our more comprehensive list at various apps built within this ecosystem, including cross-posting apps, music apps, feed builders, and livestreamers.

Is Bluesky secure?

In October 2023, Bluesky added email verification as part of a larger effort to improve account security and authentication on the network. The addition is an important step forward in terms of making Bluesky more competitive with larger networks like X, which have more robust security controls. In December 2023, Bluesky allowed users to opt out of a change that would expose their posts to the public web following backlash from users. 

Is Bluesky customizable?

Yes. In May 2023, Bluesky released custom algorithms, which it calls “custom feeds.” Custom feeds allow users to subscribe to multiple different algorithms that showcase different kinds of posts a user may want to see. You can pin custom feeds that will show up at the top of your timeline as different tabs to pick from. The feeds you pin, or save, are located under the “My Feeds” menu in the app’s sidebar.

In March 2024,​​ the company announced “AT Protocol Grants,” a new program that will dole out small grants to developers in order to foster growth and customization. One of the recipients, SkyFeed, is a custom tool that lets anyone build their own feeds using a graphical user interface. 

Is Bluesky on iOS and Android?

Yes. Bluesky has rolled out to Android users after it was initially launched to iOS users. Users can access Bluesky on the web here.

How does Bluesky tackle misinformation?

After an October 2023 update, the app will now warn users of misleading links by flagging them. If links shared in users’ posts don’t match their text, the app will offer a “possibly misleading” warning to the user to alert them that the link may be directing them somewhere they don’t want to go.

Image Credits: Bluesky on GitHubImage Credits:Bluesky on Github

In December 2024, the Bluesky Safety team posted that the company updated its impersonation policy to be “more aggressive,” adding that “impersonation and handle-squatting accounts will be removed.” The company said it is also exploring alternatives to its current domain handle verification process.

Has Bluesky had any controversies?

Bluesky has been embattled with moderation issues since its first launch. The app has been accused of failing to protect its marginalized users and failing to moderate racist content. Following a controversy about the app allowing racial slurs in account handles, frustrated users initiated a “posting strike,” where they refused to engage with the platform until it established guardrails to flag slurs and other offensive terms in usernames.

In December 2024, Bluesky also faced criticism when writer and podcast host Jesse Singal joined the platform. Singal has been cataloged by GLAAD’s Accountability Project for his writings on transgender issues and other matters. Bluesky users have reported Singal’s account en masse, leading the company to ban him, reinstate him, and then label his account intolerant by its moderation service.

What moderation features does Bluesky have?

In December 2023, Bluesky rolled out “more advanced automated tooling” designed to flag content that violates its Community Guidelines that will then be reviewed by the app’s moderation team. Bluesky has moderation features similar to ones on X, including user lists and moderation lists, and a feature that lets users limit who can reply to posts. However, some Bluesky users are still advocating for the ability to set their accounts to private. 

In March 2024, the company launched Ozone, a tool that lets users create and run their own independent moderation services that will give users “unprecedented control” over their social media experience. In October 2024, Bluesky joined Instragram’s Threads app in an effort to court users who were frustrated by Meta’s moderation issues.

In January 2025, Bluesky published its 2024 moderation report that said it saw a 17x increase in moderation reports following the rapid growth on the platform. The report also noted that the largest number of reports came from users reporting accounts or posts for harassment, trolling, or intolerance — an issue that’s plagued Bluesky as it’s grown. To meet the demands caused by this growth, Bluesky increased its moderation team to roughly 100 moderators and will continue to hire.

What’s the difference between Bluesky and Mastodon?

Though Bluesky’s architecture is similar to Mastodon’s, many users have found Bluesky to be more intuitive, while Mastodon can come off as inaccessible: Choosing which instance to join feels like an impossible task on Mastodon, and longtime users are very defensive about their established posting norms, which can make joining the conversation intimidating. To remain competitive, Mastodon recently simplified its sign-up flow, making mastodon.social the default server for new users.

However, the launch of federation will make it work more similarly to Mastodon in that users can pick and choose which servers to join and move their accounts around at will. 

Who owns Bluesky?

Though Jack Dorsey funded Bluesky, he is not involved in day-to-day development and no longer sits on the company’s board. The CEO of Bluesky is Jay Graber, who previously worked as a software engineer for the cryptocurrency Zcash, then founded an event-planning site called Happening.

If you have more FAQs about Bluesky not covered here, leave us a comment below. 



Source link

Views: 0

「崩壊:スターレイル」×スシロー,コラボの詳細を近日発表か? ピノコニーで登場したクロックボーイらしき画像を公式Xで公開



 あきんどスシローは本日,回転ずしチェーン店・スシローの公式Xで「崩壊:スターレイル」に関連すると思われる画像を公開した。同作のピノコニーで登場するクロックボーイの手らしき画像と合わせて,「チクタク、チクタク…」というクロックボーイのセリフらしきテキストもポストされている。



Source link

Views: 0

2025年3月ソフト・ハード売上ランキング公開。PS5版『モンハンワイルズ』が首位を獲得、発売1ヵ月でPS5のパッケージ版として歴代最高の売り上げに | ゲーム・エンタメ最新情報のファミ通.com


2025年3月ソフト・ハード売上ランキング公開。PS5版『モンハンワイルズ』が首位を獲得、発売1ヵ月でPS5のパッケージ版として歴代最高の売り上げに
 ファミ通は、2025年3月の国内家庭用ゲームソフト(パッケージ版のみ)とハードの売上データを公開した。集計期間は2025年2月24日~3月30日の5週分となる。

 ソフトランキングでは、プレイステーション5(PS5)版『

モンスターハンターワイルズ』が首位を獲得。発売1ヵ月で77.6万本を売り上げ、PS5タイトル(パッケージ版)として歴代最高の売り上げを記録した。

 続けて、Nintendo Switch用ソフト『

ゼノブレイドクロス ディフィニティブエディション』、『遊戯王 アーリーデイズコレクション』、『幻想水滸伝Ⅰ&Ⅱ HDリマスター 門の紋章戦争 / デュナン統一戦争』がランクインしている。

以下、プレスリリースを引用

ファミ通ゲームソフト・ハード売上ランキング3月速報

  • 『モンスターハンターワイルズ』が月間首位を獲得。発売1ヵ月でプレイステーション5タイトル歴代最高に。
  • プレイステーション5が月間ハード販売で首位に。「モンハン」同梱版の追い風もあり、約2年ぶりのトップ。


ゲーム総合情報メディア
『ファミ通』(ファミ通グループ代表:林克彦)は、2025年3月の国内家庭用ゲームソフト(パッケージ版のみ)とハードの売上データをまとめました。
集計期間は2025年2月24日~3月30日(5週分)です。

【家庭用ゲームソフト 月間売上本数】

1位:モンスターハンターワイルズ(PS5)


2位:ゼノブレイドクロス ディフィニティブエディション(Switch)


3位:遊戯王 アーリーデイズコレクション(Switch)


4位:幻想水滸伝Ⅰ&Ⅱ HDリマスター 門の紋章戦争 / デュナン統一戦争(Switch)


5位:スーパー マリオパーティ ジャンボリー(Switch)

【家庭用ゲームハード 月間売上台数】

1位:プレイステーション5(合計)218,300台
(先月1位 Nintendo Switch(合計)167,188台)
2位:Nintendo Switch(合計)171,921台
(先月2位 プレイステーション5(合計)56,886台)

(Nintendo Switchは、Nintendo Switch Lite、有機ELモデルとの3機種の合計値、プレイステーション5は、プレイステーション5 デジタル・エディション、プレイステーション5 Proとの合計値になります)

【家庭用ゲームソフト メーカー別売上本数】

  • 1位:カプコン 80.2万本
  • 2位:任天堂 40.3万本
  • 3位:KONAMI 14.4万本

(注)ソフトの売上本数については、集計期間中に店頭(通販含む)で販売されたすべてのタイトルを対象としています。

2種類以上のバージョンや周辺機器・本体等との同梱版が発売されているソフトのデータは、すべての種類を合計した数字となります。
(発売日は前に発売されたもの、価格は通常版を表示しています)
※本データを報道機関が記事で使用する場合は、出典が「ファミ通」である事の明記をお願いします。そのほかのご使用については事前にお問合せ願います。
※本調査データは、KADOKAWAグループのシンクタンクである角川アスキー総合研究所が調査し、KADOKAWA Game Linkageに提供しています。

【2025年3月期の家庭用ゲーム市場について】

3月期のソフトランキングは、『モンスターハンターワイルズ』(カプコン/2025年2月28日発売/PS5)が77.6万本を売り上げ、2位以下に大差をつけて首位を獲得。本作は発売1ヵ月でプレイステーション5タイトル(パッケージ版)として、歴代最高の売り上げとなりました。

同じくパッケージ版としては、『

モンスターハンター:ワールド』(カプコン/2018年1月26日発売/PS4)が5週時点で182.9万本の販売を記録していますが、比較にあたっては近年のダウンロード販売の普及や今回はPC(Steam)版が同時発売であった点も考慮する必要があります。なお、カプコンは、2025年3月31日に『モンスターハンターワイルズ』の全世界の販売本数が1000万本を超えたことを発表しています。

一方で、『モンスターハンターワイルズ』のプレイステーション5本体同梱版の発売や、同時期に実施された各種キャンペーンの効果もあり、ハード市場ではプレイステーション5が2023年2月期以来、約2年ぶりとなる月間売上台数のトップに立ちました。3機種合計の販売台数は、21.8万台となっています。

そのほか、『ゼノブレイドクロス ディフィニティブエディション』(任天堂/2025年3月20日発売/Switch)が2位にランクイン。3位の『遊戯王 アーリーデイズコレクション』(KONAMI/2025年2月27日発売/Switch)と、4位の『幻想水滸伝Ⅰ&Ⅱ HDリマスター 門の紋章戦争 / デュナン統一戦争』(KONAMI/2025年3月6日発売/Switch・PS5)のNintendo Switch版まで、新作が上位を占めています。

Nintendo Switch 2が2025年6月5日発売に発売されることが明らかになり、家庭用ゲーム市場にひときわ注目が集まっています。4月26~27日には「Nintendo Switch 2 体験会 TOKYO」も開催される予定で、2025年度のゲーム市場を大いに盛り上げてくれそうです。

<出典:ファミ通>

ファミ通について

[IMAGE]


ファミ通グループでは、ゲーム総合誌
『週刊ファミ通』(毎週木曜日発売)をはじめとするファミ通各誌、「ファミ通.com」や「ファミ通App」といったゲーム情報サイトなど、様々なサービスを展開しています。また、電子出版事業にも積極的に取り組み、「週刊ファミ通」電子版や、ゲーム攻略本・設定資料集の電子書籍を多数配信しています。

株式会社KADOKAWA Game Linkageについて

[IMAGE]


株式会社KADOKAWA Game Linkage(代表取締役社長:豊島秀介)は、株式会社KADOKAWAの100%子会社です。「ファミ通」「ゲームの電撃」ブランドをはじめとする情報誌の出版、Webサービス運営、動画配信といったゲームメディア事業を展開しています。そのほか、グッズ制作やイベント企画・運営、eスポーツマネジメントなど、ゲームにまつわるあらゆる分野で新しい価値の創出に挑戦。ゲームとユーザーの熱量を高め、ゲームの面白さや楽しさをさらに広げてまいります。

株式会社角川アスキー総合研究所について

[IMAGE]


角川アスキー総合研究所は、KADOKAWAグループに属する法人向けのシンクタンク、リサーチ・メディア企業です。KADOKAWAグループの持つコンテンツ力、メディア力、リサーチ力に関する技術力を活かし、日本のメディア・コンテンツ産業に貢献すべく、課題となる重要テーマに日々取り組んでいます。



Source link

Views: 0

武侠オープンワールドRPG「Where Winds Meet」のCBTが5月に実施決定。参加登録受付がスタート – GAME Watch


 Everstone Studioは、プレイステーション 5/Android/iOS/PC用武侠オープンワールドアクションアドベンチャーRPG「Where Winds Meet」のクローズドβテスト(CBT)を5月16日より実施する。

 「Where Winds Meet」の2025年グローバルリリースに先駆け、PS5およびPCユーザーを対象したCBTが実施決定。CBTの参加登録期間は本日4月11日から5月15日までで、アメリカ、カナダ、日本、韓国のプレーヤーは公式登録リンクから応募できる。

 なお、CBTは英語、日本語、韓国語を含む複数言語に対応する。

□「Where Winds Meet」CBT登録ページ

【『JP』Where Winds Meet – Coming 2025】





Source link

Views: 0

「dアカウント」と「Amazonアカウント」を初連携で10%還元–4月11日から 要エントリー



NTTドコモは、Amazon.co.jpでの買い物を対象にdポイントを最大10%還元するキャンペーンを本日(4月11日)開始した。終了日は後日案内する。




Source link

Views: 0

10km先のスマホにBluetoothで直接つながる「Dimensity 9400+」。AI/ゲーミング性能も強化 – PC Watch


Dimensity 9400+

 MediaTekは10日、スマートフォン向けフラグシップSoC「Dimensity 9400+」を発表した。搭載製品は4月中には発売予定としている。

 2024年10月に発表したフラッグシップSoC「Dimensity 9400」に新機能を加えた改良版。9400と同様に第2世代TSMC 3nmプロセスを採用しており、基本的な性能はほぼ踏襲しているが、動作クロック3.73GHz(Dimensity 9400は3.62GHz)のCortex-X925を搭載。通信関連機能をはじめ、AIやゲーミング関連の処理を強化している。

 通信関連では、Bluetoothによるスマートフォン端末同士の直接接続距離が最長10km(Dimensity 9400は1.5km)に達したほか、測位衛星BeiDouへの対応、最大30mのWi-Fi到達範囲の拡大などを施している。

 AI処理は引き続きNPU 890が担うが、「Speculative Decoding+」と呼ばれる技術を採用することで、コンテンツ理解/推論/マルチモーダル効率が最大20%向上したという。また、デバイス上でDeepSeek-R1-Distillの1.5B/7B/8Bモデルをサポートしている。

 ゲーミング関連でも新機能「MediaTek Frame Rate Converter 2.0+」を搭載。GPUも同様にImmortalis-G925 MC12から変わっていないが、電力効率が最大40%向上し、一部の既存タイトルについてはフレームレートの向上が見込める。

 そのほかの仕様は、メモリが最大LPDDR5X-10667、ストレージはUFS 4+MCQ、ディスプレイはWQHD+/180Hz、カメラセンサー解像度は最大3億2,000万画素、動画撮影は8K/60fpsまで対応する。





Source link

Views: 0