TECH |
Engadget Japanese |
2019年8月5日、PC-8001登場40周年記念品となる「PasocomMini PC-8001」が発表されました:今日は何の日? |
https://japanese.engadget.com/today-203000765.html
|
pasocomminipc |
2021-08-04 20:30:00 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Promiseの実装を読んでみた |
https://qiita.com/tommy3/items/57d3f554ff65c0f973d5
|
resolve関数では、promiseインスタンスのstateをに、valueをnewValueにしています。 |
2021-08-05 05:59:35 |
技術ブログ |
Developers.IO |
Python pyglet Library |
https://dev.classmethod.jp/articles/python-pyglet-library/
|
Python pyglet LibraryIntroduction to pyglet Library Pyglet is easy to use but powerful library for developing visually rich GUI a |
2021-08-04 20:36:35 |
海外TECH |
DEV Community |
Why React? Because it's pretty cool actually. Misunderstood at times, but cool 👍 |
https://dev.to/bradwestfall/why-react-because-it-s-pretty-cool-actually-misunderstood-at-times-but-cool-c8n
|
Why React Because it x s pretty cool actually Misunderstood at times but cool A hopefully well received and educational response to why react sucks JSX templatesJSX is not a templating language it s actually considered to be the antithesis of one Templating languages suffer from becoming a DSL domain specific language whereby the language must recreate things like conditional logic and iterations with some proprietary template language syntax that will never be able to do as many things as it s host language JSX was added as a way to avoid using React s own createElement API Not at all React createElement is the underlying API for React to which JSX was created specifically to compile to It s not like JSX was created long after React to avoid something Instead the main idea is that any programmatic way of building DOM nodes is messy when it comes to nesting For example it s horrific in jQuery or vanilla JS So instead of nesting function calls like this to make DOM nodes React createElement div null React createElement h null Hi welcome to JSX React createElement p null It s a function call not a tempesting language You can write this which is also nested function calls lt div gt lt h gt Hi welcome to JSX lt h gt lt p gt It s a function call not a tempesting language lt p gt lt div gt To use JSX is to call a function const message I teach workshops at reacttraining com lt div gt message amp amp message substr lt div gt compiles toReact createElement div null message amp amp message substr And because it is essentially a function call we can think of props as arguments We can avoid doing DSL nonsense and have the full power of the host language JavaScript by way of JS expressions So why only expressions Because again it s a function call You can t do statements in JSX because you can t do them as arguments to functions Nope not allowed lt div gt if condition lt div gt Because it would compile to this React createElement div null if condition JSX is designed to be nested function calls that look familiar to us like XML or HTML so our eye s don t burn when look at actual nested function calls but also with the easy and power of a full programming language This is why you also can t do this and return two JSX nodes because they re function calls function App return lt div gt lt div gt lt div gt lt div gt Compiles to function App return React createElement div React createElement div And you can t just call two functions back to backIf you ever see in JSX that s because in HTML which JSX is not white space is treated a certain way More than one whitespace character is reduced down to a single whitespace Because JSX is a function call it kinda sucks I ll admin but you have to do in a few scenarios to create whitespace On a really big project I might have to do that like times not a big deal Because of all this specialness you can t easily port JSX That rubs me the wrong way Template code should be easy to port because HTML is a standard Again it s not meant to be HTMLFor example in JSX you do lt div className gt lt div gt lt label htmlFor gt A lot of people who are critics of JSX will say why does it have to be different from HTML Did you know The class is an HTML Attribute while the className is a DOM Property MDNTurns out there s always been a difference between HTML and JS in terms of what an HTML attribute is and the corresponding way to modify that thing in JS The same is true for lt label gt Some who don t know might complain that in JSX we do lt label htmlFor gt instead of HTML s lt label for gt But again this is how it s done in plain JavaScript Checkout the MDN docs for yourself For example the perfectly valid lt label for gt will not work because for gets parsed as JavaScript You have to use a funny JSX attribute lt label htmlFor gt I think we covered that one Also you have to do a funny comment syntax because HTML comment syntax is not allowed It s not HTML The reason for the different not funny comments is because Babel would confuse these comments for being content like if you were documenting how HTML comments work lt div gt lt HTML comment gt lt div gt And don t forget to slash your self closing tags e g lt img gt even though HTML dropped that syntax more than years ago Actually not really true XHTML was going to be a thing in the s so browsers started to implement some of it The WC eventaully ditched the idea and did HTML but not before things like trailing forward slashes were already implemented by most browsers Today we can still do XHTML style self closing tags on lt img gt lt that s valid HTML it s not dropped it s just left over baggage from an old WC idea that the browsers kept By the way JSX stands for JavaScript and XML because it s a JavaScript function call have I said that already with XML not HTML syntax In XML you do have to close your self closing tags with a forward slash Another one I still don t understand and don t want to understand is Error The style prop expects a mapping from style properties to values not a string It s easier to programmatically make inline styles if we express them as an object And again since this is a function call we can do that This feature has also played a big role in developing things like CSS in JS which you can decide you don t like or you just don t like that it s an object But it s not a ridiculous speed bump React is an unmanageable mess because of Functional or Class based controlled or uncontrolled forwardRef mixins HOC Hooks etc That s not the point they were making Because React lost a primitive mixins for sharing re usable business logic when they switched from their original API to classes the community not the React library came up with some patterns to share code one of those patterns was HoC which has a way of double or triple wrapping your components in other components in order to solve the problem of sharing re usable code This meant that when you look at a typical React application in React DevTools there s extra wrappers in the component viewer not the actual DOM The React team realized for many reasons that not having a primitive way to share code was causing React developers to do things that were a little more messy so they created hooks to give us a primitive API for sharing code In no way were they trying to say that React is messy because of that list This whole section was kind of reaching for things that aren t really there to fit into a narrative The fact that there are so many options and types of components confuses me Clearly ️There are only two ways to make components functions and classes The vast majority of the React community is embracing functions because of hooks There are three ways to make functions though in JavaScript so maybe that was confusing But that s not React s fault Those other things controlled or uncontrolled forwardRef mixins HOC Hooks are not components they are features to which components can have and some of them are alternatives to each other so it s not like all of those are used at the same time When a tool can be used in so many ways it creates doubt in its user That s why as the React team admits even between experienced React developers there s disagreement Again there s basically one way to make components since not many are using classes anymore React is a library not a framework It s not Angular or Knockout or Ember by the way how are those doing that does the batteries included monolithic approach In React the reason why two React developers might have a disagreement is because one might want to use Redux and one might want to use context Let s not be dramatic and act like all the other web communities are on the same page with every single thing React just lets us choose the tooling that goes on top of React for different architectures That s a good thing And by the way the disagreements mean that there s discussion and the best ideas rise to the top This has not been the case for the monolithic frameworks I stopped reading about there We all have different tools like we like That s cool You don t have to like React I don t mind that But there were many falsy or misleading things and beginners who don t know any better read this kind of stuff |
2021-08-04 20:19:56 |
Apple |
AppleInsider - Frontpage News |
Apple TV+ lands star-studded spy thriller 'Argylle' from Matthew Vaughn |
https://appleinsider.com/articles/21/08/04/apple-tv-lands-star-studded-spy-thriller-argylle-from-matthew-vaughn?utm_medium=rss
|
Apple TV lands star studded spy thriller x Argylle x from Matthew VaughnApple TV is nearing completion of a deal for Argylle an upcoming spy thriller from Matthew Vaughn whose star studded cast will include Henry Cavill and Dua Lipa Credit AppleBased on an upcoming spy novel of the same name by author Ellie Conway Argylle follows the world s greatest spy as he is caught up in a globe trotting adventure according to Deadline Both Apple and Vaughn confirmed the news to deadline though didn t mention price The publication reports that the asking price was about million Read more |
2021-08-04 20:27:14 |
海外TECH |
Engadget |
Amazon delays 'New World' MMO again, this time to September 28th |
https://www.engadget.com/amazon-new-world-mmo-delay-september-28-203855352.html?src=rss
|
Amazon delays x New World x MMO again this time to September thAmazon has delayed New World mere weeks before its previously announced August st release date It will now arrive about a month later on September th so that Amazon Game Studios can spend an extra few weeks polishing fixing bugs and improving stability The company says it decided to delay New World again following player feedback it collected during the MMO s recent closed beta A message from the New World team pic twitter com oAZdKdxTnーNew World playnewworld August quot This was not an easy decision to make We know this isn t the first time we ve changed our launch date in pursuit of quality and that it can be disappointing to wait a bit longer quot Amazon Game Studios said on Twitter quot But we want to be sure we deliver you the highest quality game possible at launch quot For those of you still keeping track this is New World s fourth delay When Amazon first announced the game it said it would come out in May Its release date initially slipped to August th before Amazon announced a month later it was pushing the game back to spring At the start of the year it then delayed the game to its most recently planned August st release date To say there s a lot of pressure on Amazon Game Studios to deliver a hit for its parent company would be an understatement Amazon announced the game s nbsp first major delay after taking the unusual step of rolling back the availability of Crucible its first AAA title It later ended the development of that game Before taking over as CEO of Amazon Andy Jassy told employees he was committed to the studio quot Though we haven t consistently succeeded yet in Amazon Game Studios I believe we will if we hang in there quot he said in an email Now it s on the New World team to prove that confidence was well earned |
2021-08-04 20:38:55 |
海外科学 |
NYT > Science |
World’s Coronavirus Infection Total Passes Staggering Figure: 200 Million |
https://www.nytimes.com/2021/08/04/world/europe/coronavirus-200-million-cases.html
|
World s Coronavirus Infection Total Passes Staggering Figure MillionVaccines have weakened the link between surging cases and serious illness but in vaccine deprived parts of the world the deadly pattern remains |
2021-08-04 20:31:51 |
ニュース |
BBC News - Home |
Man killed in tanker attack named as Adrian Underwood |
https://www.bbc.co.uk/news/uk-england-hereford-worcester-58092151
|
adrian |
2021-08-04 20:48:32 |
ニュース |
BBC News - Home |
Tottenham Hotspur: No Harry Kane in team for Chelsea friendly |
https://www.bbc.co.uk/sport/football/58092274
|
chelsea |
2021-08-04 20:46:29 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
日本の“激安不動産”に外資マネー殺到!「日本買い1兆円ファンド」まで始動の実態 - 安いニッポン 買われる日本 |
https://diamond.jp/articles/-/278134
|
感染拡大 |
2021-08-05 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
三菱、三井、住友の財閥系も買われた!「英国紳士」が食指を動かした日本企業40社 - 安いニッポン 買われる日本 |
https://diamond.jp/articles/-/278133
|
大量保有報告書 |
2021-08-05 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
不動産投資家が米国利上げよりも今恐れる「危機」の正体【不動産投資家座談会7】 - 不動産投資 売りどき・買いどき |
https://diamond.jp/articles/-/277512
|
不動産投資 |
2021-08-05 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
渋谷の新築億ション異例の「ガラ空き」、売れない超高級マンションの共通点 - 五輪後の不動産・マンション |
https://diamond.jp/articles/-/277471
|
億ション |
2021-08-05 05:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
武田薬品の株価低迷、証券アナリストが分析するその理由 - 医薬経済ONLINE |
https://diamond.jp/articles/-/278501
|
|
2021-08-05 05:05:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
自社DXの遅れに対する懸念を言語化。 “次の一手”の足掛かりに~DX診断活用事例~ |
https://dentsu-ho.com/articles/7853
|
onetoone |
2021-08-05 06:00:00 |
北海道 |
北海道新聞 |
辺野古のサンゴ 国の移植強行は不当だ |
https://www.hokkaido-np.co.jp/article/575010/
|
沖縄県名護市辺野古 |
2021-08-05 05:05:00 |
ビジネス |
東洋経済オンライン |
三菱電機、再び不祥事「変わらぬ後手対応」の唖然 社長交代2日後に検査不備をHPで公表したが・・・ | IT・電機・半導体・部品 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/445928?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
三菱電機 |
2021-08-05 05:30:00 |
コメント
コメントを投稿