• 开源镜像
  • 开源沙龙
  • 媛宝
  • 猿帅
  • 注册
  • 登录
  • 息壤开源生活方式平台
  • 加入我们

开源日报

  • 开源日报第1014期:《funNLP》

    21 1 月, 2021
    开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
    今日推荐开源项目:《funNLP》
    今日推荐英文原文:《YouTube extends Trump’s suspension for at least another week》

    今日推荐开源项目:《funNLP》传送门:项目链接
    推荐理由:这个仓库整理了从NLP入门到熟悉的过程中发现并使用的有趣的, 值得收藏的github仓库, 里面有各种劲爆的内容. 不定期更新.
    今日推荐英文原文:《YouTube extends Trump’s suspension for at least another week》作者:Richard Nieva
    原文链接:https://www.cnet.com/news/youtube-extends-trumps-suspension-for-at-least-another-week/
    推荐理由:YouTube周二表示,在乔-拜登即将宣誓就任下一任美国总统的前一天,因 “持续存在暴力的可能性”,将对美国总统唐纳德-特朗普(Donald Trump)的频道再延长停播一周。

    YouTube extends Trump’s suspension for at least another week

    YouTube on Tuesday said it’s extending its suspension of President Donald Trump’s channel for another week over “ongoing potential for violence,” a day before Joe Biden is set to be sworn in as the next US president.

    The move lengthens the punishment the Google-owned platform imposed on Trump last week, which prohibited him from uploading new content and disabled comments on his videos indefinitely.

    The announcement comes as authorities have been on high alert following the deadly insurrection at the US Capitol on Jan. 6. Ahead of Biden’s inauguration on Wednesday, federal and local officials have urged would-be attendees to stay home. The National Mall, which would normally attract massive crowds, has been closed off to visitors.

    Silicon Valley giants have sought to rein in Trump as the platforms reckoned with their role in the Capitol riots. Aside from YouTube’s suspension, Twitter has permanently banned Trump, while Facebook indefinitely blocked the president’s account. Apple, Google and Amazon have also taken action against Parler, a social network popular with far-right and extremist users, which rioters used to help plan the attack.

    The White House didn’t immediately respond to a request for comment.

    YouTube has a three-strikes policy when it comes to policing its platform. Three infractions within a 90-day period results in permanently being kicked off the platform. The first strike comes with a one-week ban from posting content. The second strike comes with a two-week ban.

    YouTube last week said the strike against Trump was due to the channel violating the company’s policies against inciting violence. YouTube, however, noted that the one-week suspension could last longer. Tuesday’s extension is not a second strike on Trump’s account.

    A company spokeswoman didn’t respond to questions about what specifically triggered the extension.

    Earlier Tuesday, the White House YouTube channel, which is separate from Trump’s personal page, uploaded the president’s farewell address. In the more than 19-minute speech, he repeats his familiar refrain alleging “political censorship and blacklisting,” though he doesn’t mention any company by name.


    下载开源日报APP:https://opensourcedaily.org/2579/
    加入我们:https://opensourcedaily.org/about/join/
    关注我们:https://opensourcedaily.org/about/love/
  • 开源日报第1013期:《命名指南 naming-cheatsheet》

    20 1 月, 2021
    开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
    今日推荐开源项目:《命名指南 naming-cheatsheet》
    今日推荐英文原文:《3 Tips to Become a Better Code Reader》

    今日推荐开源项目:《命名指南 naming-cheatsheet》传送门:项目链接
    推荐理由:在团队中统一使用同一套命名规范是相当有必要的。这个项目介绍了命名时需要考虑的数个要点,比如使用 get 这样的统一前缀表示同一种行为,不与上下文中现存的名称重复防止混淆搜索结果等等,根据这些统一一套命名规范能够节省团队中所有人在读懂其他人代码上花费的时间。
    今日推荐英文原文:《3 Tips to Become a Better Code Reader》作者:Živković Miloš
    原文链接:https://medium.com/better-programming/3-tips-to-become-a-better-code-reader-c84fcb4cedc3
    推荐理由:花时间读代码也是有需要的,毕竟读是为了更好的写,而读代码当然也与写代码一样不能蛮干

    3 Tips to Become a Better Code Reader

    Reading code is just as important as writing it. Here’s how to be a better reader

    We’ve all been there: The wrong logic caused a critical bug. You could have prevented it during code review.

    Experienced developers know that reading code holds great value. It can reduce how much code you need to write and thus deliver reusable code.

    With all that in mind, let’s proceed to the tips I’ve compiled for you.

    1. Avoid Working With Code You Don’t Like

    I’ve heard that reading open source code will improve my reading skills. I was checking out all the possible projects, but after a while, I got bored.

    You may be in the same spot. You can’t read all the code out there.

    Be mindful of your time. Not every code you read improves your reading skills. I don’t understand assembly, so naturally, it will bore me.

    Reading without context is a waste of time. Reading a code base that doesn’t suit you will lead to boredom. After you read the code without context, you will most likely leave a dummy comment.

    Angular developers reading about open source calendar lib can improve their skills. Reading about changes in the Spring framework won’t if you don’t like it. Make yourself comfortable in the code base.

    2. Always Understand What Is Going On

    My first PR review consisted only of code review — checking for reusable code, whether the naming was correct, overengineering.

    I was wrong. You should always pay attention to the bigger picture.

    Check the story first. What are the requirements, what are the acceptance criteria? Pay attention to what the business thinks and read through ticket comments.

    Think through how would you do it. Does the logic in the PR do that? Then proceed. If not, leave a comment.

    Don’t get that sinking feeling when doubting code quality. Critique the code crafted — not the developer. Always doubt code and don’t undervalue team members.

    Look at these two comment examples and judge which one is better:
    • “What did you do with this variable name?! Check Sonar for errors!”
    • “This code is unconventional and can lead to a misunderstanding. Please change it to possible name, as that will do the job.”
    Commenting on code won’t only fix broken code. Reciprocity kicks in and you’ll get comments on your code. This will improve both your code reading and writing.

    Comprehend the logic, read the requirements first, and leave humane comments.

    3. Spend As Much Time Reading As Writing

    Reading code improves your writing as well. Take your time when reading your own code and extra time when reading other PRs.
    “Indeed, the ratio of time spent reading versus writing is well over 10 to 1. We are constantly reading old code as part of the effort to write new code. …[Therefore,] making it easy to read makes it easier to write.” — Robert C. Martin, Clean Code: A Handbook of Agile Software Craftsmanship
    Don’t only check the diff of the PR. Take a broader picture. Check the code for common logic in other places that can work here as well.

    Get familiar with the context and then check the code. That will bring a new view of the code.

    Developers spend most of their time reading code rather than writing.

    Bonus: Talk With Your Team Members

    Talking can shorten the read time. Have a call with a team member and go through the code together.

    This will serve as rubber duck programming where you’ll be the listener, unraveling some new ideas or a better approach to solving the problem.

    Thanks for reading!
    下载开源日报APP:https://opensourcedaily.org/2579/
    加入我们:https://opensourcedaily.org/about/join/
    关注我们:https://opensourcedaily.org/about/love/
  • 开源日报第1012期:《文件管理 Files》

    19 1 月, 2021
    开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
    今日推荐开源项目:《文件管理 Files》
    今日推荐英文原文:《R.I.P., Flash. You Will Not Be Forgotten》

    今日推荐开源项目:《文件管理 Files》传送门:项目链接
    推荐理由:Files 是一个文件管理器,重视可扩展性和代码模块化,有着流畅的设计和API。目前的重点在于与 Windows 文件管理对应的关键功能,之后会逐渐添加各种功能。
    今日推荐英文原文:《R.I.P., Flash. You Will Not Be Forgotten》作者:Arek Jaworski
    原文链接:https://medium.com/better-programming/r-i-p-flash-youll-be-not-forgotten-3d11beae7a6b
    推荐理由:flash 的时代过去了。

    R.I.P., Flash. You Will Not Be Forgotten

    Celebrating a fundamental web technology that kicked off many careers and was retired at the end of 2020

    Google Chrome removed the Adobe Flash plugin completely at the end of 2020. This marks the end of an era. The era dominated by one proprietary software that for many years defined how the internet looked. Many promised, only Flash delivered.

    What Is Flash?

    Or better question: What was Flash, and how did it shape and dominate computer entertainment and the early internet industry while being a proprietary product?

    Let’s move back in time to the turn of the century. It’s the end of the 90s; Microsoft released MS Windows 98, and the browser war is on the rise. There is no Chrome yet — wait a minute, there is no Google yet! Microsoft isn’t the cool company. Actually, it’s quite the opposite: Micro$oft is trying to dominate the market — a bully abusing its power and kicking out all competition out of its way. Do you remember Netscape? R.I.P. There are no smartphones, no iPhone…

    Yet, there is the internet. Still young; still quite intact. However, with competing web browsers, there is a bit of a compatibility problem. W3C consortium has its own standards that M$ just doesn’t really want to follow. In fact, you could say Internet Explorer defined its own de facto standard. There was a problem many tried to solve.

    Maybe it wasn’t the end of the world yet. Websites did look differently depending on users’ screen resolution — and especially, web browser used. However, we could see some trends and simple mitigations. As long as your website matched most popular resolutions and a few web browsers (cross website testing — that was a popular term) you could live with these inaccuracies.

    A New Player Arrives

    Out of the blue appeared Flash — technology first developed for animations. Flash quickly gained popularity and basically solved the problem. Users could have different browsers but as long they had a Flash plugin — Flash content looked the same, and let’s be honest — it looked awesome. Especially if you compared it to awful technologies at the time — like Java applets. Yuck.

    As already mentioned, Flash was initially a product for developing animations. However, it allowed scripting, too, and that made it quite powerful. You could design and develop really good looking interactive animations, but also applications, web components and games. In fact, some websites were purely Flash-based. Basically, you opened any browser with a Flash plugin and the HTML page was just a placeholder for Flash content.

    Flash was so popular that when you installed a web browser, the first thing you did straight afterward was download and install the plugin. Flash was basically installed on around 99% of all web browsers in the World. Let’s just note that before HTML5, Flash also dominated video streaming. Of course, there were other video formats, but basically, Flash did it right and did it so good that YouTube was based on Flash Video! Even after Google bought over YouTube, HTML5 didn’t provide what it promised for a long time. It took some time before YouTube was finally able to let go of Flash.

    The Good, The Bad, The Ugly

    If Flash was so good, what exactly happened to it? Well, Flash did find and solve a lot of problems initially. Moreover, it was a proprietary product and other companies did not like this. Microsoft released its own product — Silverlight — which failed miserably., and HTML5 promised a lot, but it took forever to mature and become a replacement for Flash.

    What else was there available? Java. These Java applets took forever to load, and they were slow and ugly — the UI of the buttons — my eyes! Obviously, there was a lot of hype (and still is) around Java. It was supposed to be as fast as C++ but never got near.

    Self-proclaimed IT pros were making jokes about Flash and how they were using enterprise Java to solve real problems — yet that was never a threat to Flash.

    There is also JavaScript — a scripting language used in the 90s primarily for making text float from left to right. Later on, a few JS libraries started to be popular and were used to solve cross-browser compatibility issues too. But you could do this faster and better with Flash. Maybe that’s a bit of an exaggerated statement, so let’s just agree you could do it differently — and both solutions lived quite happily side by side and were used to solve different issues.

    One of the biggest issues with Flash at that time was that it became Web 2.0 before the term was coined. Flash content was hard to index; thus, Google didn’t provide correct results for Flash-based websites and single page applications (SPA). In fact, all SPAs were a choking hazard for Google’s indexer. Again, maybe not the end of the world, but in the rapidly changing IT industry, the almighty Flash started to show symptoms of slowing down.

    Moreover, let’s not forget about one place where Flash ruled too: Those awful and irritating Flash-based ads jumping on the screen. Yeah, as an animation software, it was designed to do this well. So good that it was soooo annoying.

    How Apple Killed Flash?

    On the 29th of June in 2007, iPhone was released and that shook the computer and mobile phone market. We could argue if that was the first smartphone ever, but what happened to Nokia or Blackberry? The fact is, it was a great product that started a revolution. What was important at that time was the question: When will iPhone support Flash? Apple said no!

    You may simply trust and believe it was all about security and saving battery juice — as apparently, Flash required a lot of power, and there was a growing number of security issues. It’s definitely one side of the story. However, if we put on the table the latest news about Apple slowing down the performance of iPhones to force customers to upgrade to protect the battery, we could say there was another side of this story that Apple didn’t want to tell us.

    Okay, let’s admit it: Killing Flash is a bit bold and exaggerated statement. Apple maybe didn’t kill Flash alone yet banning it from iPhone definitely helped to decrease its longevity. At the time, Flash was really dominating one more market — free games. There were (and still are!) zillions of simple or very complex, ugly or beautiful games out there for free. No need to use any app store (and pay for) as long as your web browser has a Flash plugin!

    Conclusion

    When Flash matured, so did the development of Flash applications and games. Games became more complex and advanced. They used 3D graphics, and there were physics engines available. Some games, even made with other engines, used Flash for their UI or HUD through modules and plugins. However, complex Flash applications opened issues with performance and security.

    Adobe allowed to export and package Flash content as an iOS apps. Yet, Flash wasn’t created to have responsive mobile design. Indeed, Flash was created before any mobile design was necessary. Other technologies were catching up or gaining more popularity.

    When iPhone was released in 2007, Flash was still strong. Yet its position slowly started to decline. In 2015, YouTube finally dropped out Flash as the default player. It took five more years for Google to switch it off in Chrome.

    Rest in peace, Flash.


    下载开源日报APP:https://opensourcedaily.org/2579/
    加入我们:https://opensourcedaily.org/about/join/
    关注我们:https://opensourcedaily.org/about/love/
  • 开源日报第1011期:《vue2-elm》

    18 1 月, 2021
    开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
    今日推荐开源项目:《vue2-elm》
    今日推荐英文原文:《After Twitter banned Trump, misinformation plummeted, says report》

    今日推荐开源项目:《vue2-elm》传送门:项目链接
    推荐理由:基于 vue2 + vuex 构建一个具有 45 个页面的大型单页面应用, 涉及注册、登录、商品展示、购物车、下单等等,是一个完整的流程。
    今日推荐英文原文:《After Twitter banned Trump, misinformation plummeted, says report》作者:Edward Moyer
    原文链接:https://www.cnet.com/news/after-twitter-banned-trump-misinformation-plummeted-says-report/
    推荐理由:推特禁止特朗普后,错误信息骤然减少。一名研究人员表示,在特朗普被封杀后的一周内,有关选举舞弊的错误信息暴跌了73%。

    After Twitter banned Trump, misinformation plummeted, says report

    The week after Twitter banned President Donald Trump from its platform, online misinformation about election fraud fell by a whopping 73 percent, according to a Saturday report by The Washington Post. Talk around election fraud dropped from 2.5 million mentions to 688,000 mentions across a selection of social media sites, the Post reported, citing data from researcher Zignal Labs.

    Twitter banned Trump on Jan.8, two days after a mob of his supporters stormed the US Capitol building in a riot that left several people dead, including a Capitol Police officer. A number of people have said bogus election-fraud claims by Trump and others led to the violence at the Capitol, and critics of social media have said the platforms amplified such claims by failing to effectively police disinformation on their sites.

    Zignal’s data covers the period from Jan. 9 through the 15th, the Post said. The researcher also determined that during that time, hashtags and slogans related to the Capitol attack appeared far less often on Facebook, Instagram, Twitter and other social platforms. #FightforTrump fell by 95 percent, and #HoldTheLine and “March for Trump” dropped more than 95 percent, the Post reported.

    The Post also cited a study by misinformation researchers the Election Integrity Partnership which determined that a small number of conservative, pro-Trump Twitter accounts had a large impact on the site. Just 20 such accounts were the source of one-fifth of the retweets involving voting misinformation, that study said.

    Twitter isn’t alone in muzzling Trump. Facebook banned Trump, on Jan. 7, and Snapchat silenced Trump on the 13th. A number of social media sites have also cracked down on content that’s raised concern about incitement to violence. Google-owned YouTube, for instance, banned Steve Bannon’s War Room podcast channel on the 8th, the same day Reddit banned the subreddit r/Donaldtrump.

    The Post quoted Graham Brookie, director of the Atlantic Council’s Digital Forensic Research Lab, on the effects of such “de-platforming.” The council tracks misinformation.

    “Bottom line is that de-platforming, especially at the scale that occurred last week, rapidly curbs momentum and ability to reach new audiences,” Brookie told the Post. But he added that “it also has the tendency to harden the views of those already engaged in the spread of that type of false information.”

    Zignal Labs didn’t immediately respond to a request for comment.
    下载开源日报APP:https://opensourcedaily.org/2579/
    加入我们:https://opensourcedaily.org/about/join/
    关注我们:https://opensourcedaily.org/about/love/
←上一页
1 … 5 6 7 8 9 … 262
下一页→

Proudly powered by WordPress