投稿時間:2023-06-28 00:16:14 RSSフィード2023-06-28 00:00 分まとめ(20件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT InfoQ Microsoft Guidance Offers Language for Controlling Large Language Models https://www.infoq.com/news/2023/06/guidance-microsoft-language/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global Microsoft Guidance Offers Language for Controlling Large Language ModelsMicrosoft has recently introduced a domain specific language called Guidance to improve developers ability to manage contemporary language models The new framework integrates aspects such as generation prompting and logical control into a unified process for developers The inclusion of regex pattern guides ensures the enforcement of formats allowing for the natural completion of prompts By Andrew Hoblitzell 2023-06-27 14:16:00
python Pythonタグが付けられた新着投稿 - Qiita 【Python】`001_sample.json`と同じ中身のファイルを100個、連番で瞬時に作成する方法 https://qiita.com/Ryo-0131/items/3df3a9ce2e4286e5f5af samplejson 2023-06-27 23:54:18
python Pythonタグが付けられた新着投稿 - Qiita 【Python】mysqlclientのインポートができないとき https://qiita.com/zaki_barlow/items/e3cfe01e369abb078c11 failedto 2023-06-27 23:26:05
js JavaScriptタグが付けられた新着投稿 - Qiita 街中 テクスチャギャラリー https://qiita.com/am003004/items/b830253eca040a208b56 texture 2023-06-27 23:53:56
Ruby Rubyタグが付けられた新着投稿 - Qiita rails validate do ... endについて https://qiita.com/mone_pi/items/d2a3c30bee863aef06cd railsvalidatedoend 2023-06-27 23:00:32
AWS AWSタグが付けられた新着投稿 - Qiita Glue Studioのネイティブ機能でSnowflakeに接続する(プレビュー機能) https://qiita.com/yust0724/items/4387dbeef0e340aaa164 gluestudio 2023-06-27 23:47:26
AWS AWSタグが付けられた新着投稿 - Qiita AWS DeepRacer の reward function を考えたかった https://qiita.com/shikaris/items/19e39520d145308126a6 awsdeepracer 2023-06-27 23:06:18
Docker dockerタグが付けられた新着投稿 - Qiita DockerでMySQLにログインする https://qiita.com/haruchannn_0_0/items/02ef338bc7294860e280 docker 2023-06-27 23:53:48
Ruby Railsタグが付けられた新着投稿 - Qiita rails validate do ... endについて https://qiita.com/mone_pi/items/d2a3c30bee863aef06cd railsvalidatedoend 2023-06-27 23:00:32
海外TECH Ars Technica Bethesda exec was “confused” over double standard for multi-console Call of Duty https://arstechnica.com/?p=1950170 bethesda 2023-06-27 14:11:52
海外TECH MakeUseOf How to Create and Track a Poll on WhatsApp https://www.makeuseof.com/how-to-create-poll-whatsapp/ whatsappwhatsapp 2023-06-27 14:05:17
海外TECH DEV Community Plug & Play Modular Architecture for Scalable and Maintainable Apps https://dev.to/valeriavg/plug-play-modular-architecture-for-scalable-and-maintainable-apps-2je9 Plug amp Play Modular Architecture for Scalable and Maintainable AppsA new project is always a joy the code hasn t yet been bloated with deprecated features rushed decisions and questionable dependencies When my projects get to this state I become increasingly less productive and the urge to refactor grows exponentially which as you would imagine halts any progress entirely After a bit of trial and error I developed some rules that help me keep the code maintainable and scalable for longer and I m excited to dive into it as promised General Idea and PrinciplesI needed a structure that would free me from distractions as much as possible and would allow me to concentrate on task at hand At the same time it should be possible to make changes of any magnitude confidently And finally it needed to be simple and easy to replicate on different types of projects regardless of it being a website a mobile app or a distributed backend system as I was tinkering with them all It might seem like a lot of requirements but it all boils down to having a proper and very limited scope for features While looking for ideas I stumbled upon an article that I sadly cannot find anymore but would love to give credit that described modular architecture for a NodeJS app and it inspired me greatly the core principle was that the code that belongs together should stay together and that the structure should allow easy addition and removals of features as a whole With time I settled for the following rules when structuring an app Each separate feature should fit entirely in it s own folder Only imports from shared folders or within current feature folder are allowed Each feature can be written and structured differently from the others as long as it has the same public interface Features can be composed of nested features but it shouldn t be more than two levels deep up to a grandparent Code structure should reflect how code is deployed or packaged if applicable For visual reference imagine a communal house with three roommates Each one of them can use shared space provided they d keep it tidy and don t leave anything that s not necessary there Roommates would not allow other roommates take things from their rooms and anyone of them might move out at any given time and it shouldn t affect the others At the same time every roommate should be free to organise their space to their liking and do whatever they please there As you can see this structure works perfectly for dorm living arrangements Let s see how it might look like for actual apps I ll use JavaScript and some popular frameworks but it should be possible to apply this paradigm for any other language or tool as well React Frontend App DashboardSay you re working on an internal tool to manage some eCommerce website You d probably need the following features Ability to authenticate usersAbility to manage blog postsAbility to see and manage the shopI created React App with npm create vite latestAnd outlined the basic folder structure Each module will have it s own set of dynamic and static pages and probably menu elements Let s add a router npm i react router dom save devAnd define the interface for the modules in src types d ts import ReactComponentElement from react import RouteObject from react router dom declare global type AppMenu title string type AppModule routes Array lt RouteObject amp menu AppMenu gt wrapper node ReactNode modules AppModule gt ReactNode The gist of each module is a set of routes with the addition of a wrapper to allow access to other modules e g for the menu as well as allow different layouts e g for login page And example module would look like this import wrapper from components Layout import CategoriesPage from categories CategoriesPage import OrdersPage from orders CategoriesPage const shopModule AppModule routes path categories element lt CategoriesPage gt menu title Category path products element lt OrdersPage gt menu title products path orders element lt OrdersPage gt menu title orders wrapper export default shopModule Then the code to connect multiple modules together could look like this import RouteObject RouterProvider createBrowserRouter from react router dom import modules from modules import ReactNode from react const wrapWithLayout routes RouteObject wrapper node ReactNode modules AppModule gt ReactNode RouteObject gt return routes map route gt route element wrapper wrapper route element modules route element const router createBrowserRouter modules reduce a c gt a wrapWithLayout c routes c wrapper as RouteObject export default function App return lt RouterProvider router router gt You can check full implementation and try it yourself in this example repo NodeJS API with ExpressFor this example let s bootstrap it with express js npm init y amp amp npm install express save amp amp npm install types express typescript ts node dev save dev Add tsconfig json compilerOptions module commonjs moduleResolution classic esModuleInterop true include src ts node files true files src types d ts And once again let s create basic interface for the modules src types d tsimport Express from express declare global type APIModule middleware Array lt app Express gt void gt An example module could look like this const helloModule APIModule middleware app gt app get hello name req res gt res send hello req params name export default helloModuleAnd the glue to make all the modules and app as a whole work together is as simple as import Express from express import healthModule from health index import helloModule from hello index const modules healthModule helloModule const app Express modules forEach mod gt mod middleware app app listen localhost gt console log Listening on http localhost You can explore the full example in this repo With middleware one can overload context and handle bunch of complex use cases including authentication but most importantly this kind of structure allows almost seamless migration to microservices architecture Not a fan of Express or middleware Check out my work in progress Deno headless CMS implementation that is built using the same principles Those examples are relatively simple but the only difference between these projects and bigger systems are amount of folders within modules And those of you who enjoy freelancing or consulting could appreciate building a library of modules to reuse I sure did So what do you think Ready to give it a try I d love to see what implementations you come up with 2023-06-27 14:25:57
海外TECH DEV Community The Truth Behind: Deno vs. Node.js https://dev.to/akashpattnaik/the-truth-behind-deno-vs-nodejs-2a32 The Truth Behind Deno vs Node js Table of Contents IntroductionWhat is Deno What is Node js A Brief HistoryLanguage SupportPackage ManagementSecurity FeaturesPerformance ComparisonDeveloper CommunityLearning CurveTooling and EcosystemScalability and ConcurrencyDocumentation and ResourcesAdoption and Industry SupportConclusion Introduction In the world of server side JavaScript two prominent platforms have gained attention in recent years Deno and Node js Both Deno and Node js allow developers to run JavaScript code outside the browser making them essential tools for building server side applications In this article we will delve into the details of Deno and Node js comparing their features performance and community support to uncover the truth behind their differences What is Deno Deno is a secure runtime for JavaScript and TypeScript built on the V JavaScript engine the same engine that powers Google Chrome It was created by Ryan Dahl the original creator of Node js with the goal of addressing some of the shortcomings of Node js Deno focuses on security simplicity and modern features out of the box What is Node js Node js on the other hand is an open source cross platform JavaScript runtime environment that executes JavaScript code outside of a web browser It was initially released in and has since gained significant popularity among developers due to its efficiency scalability and extensive package ecosystem A Brief HistoryDeno is relatively new compared to Node js Ryan Dahl after stepping back from the Node js project identified some of the challenges and limitations he encountered while working with Node js and set out to build a new runtime that addresses those issues Deno was first announced in and has been steadily gaining traction ever since Language SupportBoth Deno and Node js support JavaScript but Deno goes a step further by providing native support for TypeScript out of the box TypeScript is a typed superset of JavaScript that offers static typing and advanced tooling making it easier to catch errors and build robust applications This built in TypeScript support makes Deno an attractive option for developers who prefer static typing and enhanced developer experience Package ManagementPackage management is a crucial aspect of any programming platform Node js relies on the npm Node Package Manager registry which is the largest package ecosystem for JavaScript With npm developers have access to an extensive collection of open source libraries and frameworks that can be easily integrated into their projects Deno on the other hand uses its own package manager called Deno Package Manager deno land which aims to simplify the package management process and provide a secure and centralized repository for Deno modules Security FeaturesSecurity is a top priority for Deno especially considering some of the security vulnerabilities that have affected Node js in the past Deno takes a more cautious approach by enforcing security features by default It introduces strict permissions for file network and environment access ensuring that applications have explicit permission to perform certain operations Additionally Deno runs each module in a sandboxed environment preventing unauthorized access to the system resources Performance ComparisonPerformance is always a significant consideration when choosing a runtime for server side applications Deno claims to have improved performance compared to Node js primarily due to its use of the V JavaScript engine However benchmarks and real world scenarios suggest that the performance difference between Deno and Node js is negligible in most cases Developers should consider their specific use cases and requirements to make an informed decision regarding performance Developer CommunityThe developer community plays a vital role in the growth and adoption of any programming platform Node js has a massive and active community with a vast number of libraries frameworks and resources available It has been around for more than a decade attracting developers from various backgrounds and industries Deno being a newer platform has a smaller community but is growing rapidly While Deno might not have the same level of community support as Node js it has its dedicated group of enthusiasts and contributors Learning CurveThe learning curve is an important factor when evaluating a new technology Node js has been around for a long time and has a vast amount of learning resources tutorials and documentation available Many developers are already familiar with JavaScript and can easily transition to Node js Deno being a relatively new platform might require developers to learn new concepts and tools such as TypeScript and the Deno runtime itself However developers with a strong JavaScript background should be able to adapt to Deno fairly quickly Tooling and EcosystemNode js has a mature ecosystem with a wide range of tools frameworks and libraries It benefits from years of development and refinement making it a robust choice for building various types of applications Deno being newer has a smaller ecosystem but is steadily growing It has its own set of tools and frameworks which might be appealing to developers looking for fresh perspectives and modern approaches Scalability and ConcurrencyScalability and concurrency are critical considerations for server side applications especially in scenarios with high user loads Node js with its event driven non blocking I O model has proven to be highly scalable and performant It efficiently handles concurrent requests and can handle thousands of connections simultaneously Deno built with modern features also offers good scalability and concurrency capabilities but it is still evolving in this aspect Documentation and ResourcesDocumentation and available resources play a significant role in the adoption and success of a programming platform Node js has comprehensive documentation a vast collection of tutorials and an active community that provides support and guidance Deno being a newer platform has fewer resources available but its documentation is constantly improving and the community is actively working on creating more tutorials and guides Adoption and Industry SupportNode js has gained widespread adoption across various industries and is used by major companies worldwide Its stability performance and extensive ecosystem have made it a popular choice for building server side applications Deno being a newer platform is still in the process of gaining widespread adoption However it has attracted attention from developers and organizations looking for enhanced security features and modern JavaScript tooling Conclusion In conclusion both Deno and Node js offer powerful options for running JavaScript and TypeScript code on the server side Deno focuses on security simplicity and modern features out of the box while Node js benefits from its extensive ecosystem maturity and proven scalability The choice between Deno and Node js depends on various factors such as specific project requirements familiarity with TypeScript need for enhanced security and community support Developers should carefully evaluate these factors to determine which platform best suits their needs Connect with me Mail akashpattnaik github gamil comGithub iAkashPattnaikTwitter akash am 2023-06-27 14:07:37
Apple AppleInsider - Frontpage News Apple urges UK to rethink anti-encryption Online Safety Bill https://appleinsider.com/articles/23/06/27/apple-urges-uk-to-rethink-anti-encryption-online-safety-bill?utm_medium=rss Apple urges UK to rethink anti encryption Online Safety BillApple has denounced the UK s Online Safety Bill s kneecapping of end to end encryption as a serious threat to citizens and is trying to make the UK government think twice about the changes UK Houses of ParliamentThe Online Safety Bill is being considered by the UK parliament as a potential law that could force online messaging services that use encryption to scan for potential images of child abuse As part of a wider criticism of the bill s intentions Apple has publicly objected to the law s implementation Read more 2023-06-27 14:42:55
海外TECH Engadget Roku will stream live Formula E races for free https://www.engadget.com/roku-will-stream-live-formula-e-races-for-free-145612443.html?src=rss Roku will stream live Formula E races for freeRoku just made its first live sports deal and it may be welcome news if you re a motorsports fan The company has struck a deal to stream Formula E races for free through The Roku Channel beginning with the next season You ll also find on demand videos like race previews replays and the quot Unplugged quot documentary The channel is available through Roku hardware the web and dedicated mobile apps This isn t strictly an exclusive Paramount will simulcast five Formula E races alongside CBS The offering will be available starting in January Formula E media chief Aarti Dabas sees both the Roku and Paramount deals as ways to quot dramatically increase quot exposure to the race series particularly in the US This isn t on par with Formula or other major sports deals However it significantly expands the range of content available through Roku s ad supported service The Roku Channel initially launched with a focus older movies and shows but has since added premium subscriptions originals and live TV Now it has a chance to attract sports fans There s plenty of pressure to grow Numerous other streaming services have their own sports exclusives Amazon Prime Video streams a limited number of NFL games while Apple has Friday Night Baseball and MLS Season Pass Paramount already has multiple soccer exclusives Moreover ad supported channels are reaching more platforms ーAmazon recently launched its own free TV for Fire devices Formula E could sustain interest in Roku s hardware and services especially for viewers who crave live content This article originally appeared on Engadget at 2023-06-27 14:56:12
海外TECH Engadget Brave Pixel Fold owners can try to repair hardware issues with iFixit's help https://www.engadget.com/brave-pixel-fold-owners-can-try-to-repair-hardware-issues-with-ifixits-help-143528112.html?src=rss Brave Pixel Fold owners can try to repair hardware issues with iFixit x s helpBrave souls who pick up Google s Pixel Fold and eventually discover an issue with the hardware will be able to try and fix the problem themselves Google will offer official tools parts and self repair guides for the foldable through iFixit Since last year those willing to try and fix issues with other Pixel devices at home have been able to get the parts and knowledge they need from iFixit Google told to Google the program will include the new foldable You ll still be able to mail in a Pixel Fold for repair or take it to a shop when the foldable is out of warranty or if you damage it accidentally If you feel up to the task of repairing it yourself though you ll be able to buy several parts from iFixit Those include charging ports batteries adhesives and yes the inch inner folding display You can obtain step by step guides from iFixit too Foldables are notoriously fragile and finicky even compared to more typical smartphones That s perhaps why as to Google notes no other major manufacturer has an official foldable self repair program While Samsung also offers parts and manuals for other devices through iFixit you ll need to let a technician handle a Galaxy Z Fold or Z Flip repair ーunless you really know what you re doing and are comfortable using components sourced from elsewhere We ve yet to see a Pixel Fold teardown from iFixit to get a sense of just how tough it might be to repair the device yourself While we had positive impressions of the Pixel Fold in our review it s too early to tell how well Google s first foldable will hold up over time In any case at least you ll have an extra repair option if things go pear shaped This article originally appeared on Engadget at 2023-06-27 14:35:28
海外TECH CodeProject Latest Articles How to Move from CUDA Math Library Calls to oneMKL https://www.codeproject.com/Articles/5363447/How-to-Move-from-CUDA-Math-Library-Calls-to-oneMKL inteloneapi 2023-06-27 14:50:00
ニュース BBC News - Home Nicola Bulley's death was an accident, coroner rules https://www.bbc.co.uk/news/uk-england-lancashire-66033632?at_medium=RSS&at_campaign=KARANGA concludes 2023-06-27 14:54:11
ニュース BBC News - Home England captain Stokes 'deeply sorry' to hear of discrimination https://www.bbc.co.uk/sport/cricket/66031285?at_medium=RSS&at_campaign=KARANGA England captain Stokes x deeply sorry x to hear of discriminationEngland captain Ben Stokes said he is deeply sorry to hear about experiences of discrimination in a report into cricket in England and Wales 2023-06-27 14:10:36
ニュース BBC News - Home Daniel Korski: Daisy Goodwin accuses mayoral hopeful of groping https://www.bbc.co.uk/news/uk-england-london-66026515?at_medium=RSS&at_campaign=KARANGA complaint 2023-06-27 14:44:24

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)