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

开源日报

  • 开源日报第786期:《媒体播放器 Popcorn Time》

    28 5 月, 2020
    开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
    今日推荐开源项目:《媒体播放器 Popcorn Time》
    今日推荐英文原文:《8 Important Lessons for Programmers That I’ve Learned at 18》

    今日推荐开源项目:《媒体播放器 Popcorn Time》传送门:GitHub链接
    推荐理由:Popcorn Time 是一个免费的,多平台的集成媒体播放器,允许任何用户通过BitTorrent协议的种子文件轻松观看电影,能够自动搜索,高品质即时播放,无需任何先决条件。 网站链接:https://popcorntime.app/
    今日推荐英文原文:《8 Important Lessons for Programmers That I’ve Learned at 18》作者:Alec Jones
    原文链接:https://medium.com/better-programming/8-important-lessons-for-programmers-that-ive-learned-at-18-6e954634322e
    推荐理由:“毕竟年龄仅仅只是个数字而已。”

    8 Important Lessons for Programmers That I’ve Learned at 18

    After all, age is just a number

    (Always be coding — an eternal lesson (Image source: Meme Generator))
    Approximately one year ago, I wrote a piece for FreeCodeCamp, called 7 Important Lessons About Programming That I’ve Learned at 17.

    I never expected that so many people would be willing to hear what I had learned about programming. Thus far, 31,000 people have viewed the story, with an average reading time of 2.5 minutes — not terrible for a five-minute read.

    Since then, I’ve continued programming on my own, but most importantly, I got my first full-time programming job. I’ve learned a lot this past year, and I’m once again going to share some lessons I’ve learned.

    I’m still far from being an excellent developer, but I’m a little closer, so here are eight more lessons I’ve learned for programming, from an average 18-year-old developer.

    Don’t Fall for the Appeal to Tradition

    The logical fallacy “appeal to tradition” is an issue than can frequently appear among software developers. The key phrase to know if you’re falling into this trap is “we’ve always done it this way!”

    Especially as a new developer, it can be hard to suggest new ways of doing things. If a more experienced developer is falling into this logical fallacy, it’s important to call them out on it. Or if you are an experienced developer, don’t be afraid to try new things.

    Everyone benefits if there is a faster, more efficient to do something than the old way — so always keep an eye out for ways to improve.

    Developers like to do things so that they can know it will work and so they can get the task done quickly. This usually means doing things in a way they already know, but it certainly doesn’t mean that’s best.

    Developers Need Breaks

    More often than not, I have breakthroughs in a problem while doing nothing productive. Whether it’s moments before falling asleep, on a walk, talking to someone, or eating a snack, a lot of developers’ brains are churning in the background to solve the problem at hand.

    It’s important to find the right time to buckle down and grind to solve the problem, and the right time to step back, take a breath, and approach it in a little bit. Just as a watched pot never boils, a hunted bug never moves.

    That’s not my best quote, but I think you get the sentiment. As a developer, it’s important that you take breaks throughout the day. Without them, you can get stuck: stuck in your code, stuck on a bug, or stuck in the same pattern.

    Take some time to make yourself a better developer; take a break.

    The Programming Language Matters

    The programming language that a developer uses matters more than people think. This isn’t me trying to say that certain languages are better than others. The language is important for a developer because it’s like another workplace relationship.

    All day as a developer, you’re going to spend time writing code and reading code and tweaking code and correcting code. If you’re doing this in a language you hate to work in, you’re not going to be as productive, and your developer morale is going to suffer.

    While I believe it’s true that you can do essentially the same stuff across Python, Ruby, Go, and PHP, they are vastly different to work in. If you can, try to work in a language that makes you happy, not one that makes you frustrated.

    People Are Always There to Help

    As a new developer, whether new in experience or new to a company, it can be daunting to start working. It could mean an unfamiliar language to use, a new codebase to learn, and a lot of new tools and services to set up.

    This isn’t a recommendation, this is a must: You have to get help from others who have more experience than you.

    Do you know what the best part is? Ninety percent of the people you ask will be able to help you. Decent people actually enjoy helping others, and it also makes sense for the business. It’s beneficial for the business that any developer who is struggling to write some code gets help. The faster you can solve your problem, the faster you can move on to the next bug or feature.

    While more experienced developers may be working on things more important, they’re still going to take time out of their day, when appropriate, to help you.

    The trick is asking. If you never ask, you’re never going to receive any help.

    The Best Developers Aren’t Developing

    There’s a common but insulting saying that “those who can’t do, teach.” When it comes to software development, I don’t think this could be farther from the truth.

    The best developers are helping other developers develop — that’s a good tongue twister. Great developers are often promoted into leadership positions where they will begin to help younger developers write the code.

    They may have job titles like team lead or lead developer, and they are disguised as the manager of a team. Will they be able to tell you about that obscure array function you’re looking for? Absolutely not. But will they be able to give you advice about programming and feedback on your code? Absolutely.

    Of course, there are exceptions to every rule. I’m not saying every manager or CTO is going to be a good programmer. Just don’t be afraid to turn to them for developer help if they are technical. Great developers lead other developers; they’re not people who can mystically code for 20 hours in a row on a Tuesday.

    Get Good at Git

    Git is a language in itself. The amount of time you spend to master a programming language, you’d need to spend to master Git.

    Git doesn’t feel especially hard when you’re a developer working on your own. You git add and git commit, and then you git push — that’s about the extent of the complexity.

    When having to work with other developers, Git becomes essential. It is what allows developers to work separately but together. Git can be hard to figure out: merging code, different branches, old commits causing problems — there’s a neverending list.

    Save yourself a lot of time and learn to use Git well so you can work with other developers more efficiently.

    Loops Are Deceptively Dangerous

    Loops appear to be these nice, simple pieces of code that are often taught to new developers. And while loops may be simple, they are dangerous territory in which to do your work.

    First, there is the case of the infamous infinite loop. Nothing can more easily break a program than an infinite loop. Unfortunately, they happen more than we expect, but thankfully they’re easy to spot and can be handled quickly.

    Second, loops can take up a lot of time and resources. A computer can loop through something really quickly, except when you fill the loop up with all kinds of shit for the computer to handle. Having large if statements, another loop, API calls, or database calls are all great ways to slow down your loop tremendously and take up a lot of resources.

    Keep your loops simple and easy to understand, and never, ever, underestimate the power of your loops.

    Coding Challenges Are Not Evil

    (Image source: desktopbackground.org)
    Most developers know the dreaded technical interview. The whiteboard set up in the corner of the room. Fresh markers ready to be uncapped and used for the first time. What’s going to happen?

    You’re going to have to solve a coding puzzle in front of your potential new employer.

    This experience has turned many people off of doing challenges like these. They seem pointless; they rarely have real-world application and don’t reflect the abilities of my development skill.

    While that may be true, these exercises will still make you fundamentally a better developer. They’ll expand your brain, and they’ll push you to write nice, concise code. It’s not something you’ll be able to see short-term results out of, but it will help you be a better developer.

    Also, as a nice side note, they will prepare you in case you do have to do a classic coding challenge in a technical interview.

    Thank you for reading about eight more lessons I’ve learned while continuing my journey programming!


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

    27 5 月, 2020
    开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
    今日推荐开源项目:《Front-End-Checklist》
    今日推荐英文原文:《Facebook and Instagram roll out Shops, turning business profiles into storefronts》

    今日推荐开源项目:《Front-End-Checklist》传送门:GitHub链接
    推荐理由:该项目是详尽的关于前端开发的清单,它列出了将HTML页面投入生产之前需要进行测试的所有元素.它基于众多前端开发人员的多年经验,其中一部分整合自其他的开源清单.
    今日推荐英文原文:《Facebook and Instagram roll out Shops, turning business profiles into storefronts》作者:
    原文链接:https://techcrunch.com/2020/05/19/facebook-shops/
    推荐理由:Facebook 和 Instagram 推出了商店功能, 从今天起,你将可以在这两个社交平台推出的商店上直接浏览并购买相关的产品.

    Facebook and Instagram roll out Shops, turning business profiles into storefronts

    Starting today, you’ll be able to browse and buy products directly from a business’ Facebook Page or Instagram profile.

    Both Facebook and Instagram already supported a degree of e-commerce — for example, Facebook has its Marketplace and will likely make a bigger push through its Libra cryptocurrency initiative, while Instagram allows users to buy products featured in posts and ads. But the company’s new tools go further, enabling businesses to create a full-fledged Facebook Shop.

    After all, the pandemic has probably made consumers even more likely to treat Facebook and Instagram profiles as the go-to source of information on local restaurants and stores — if your favorite store has changed their hours, or switched to online delivery/curbside pickup, they’ve almost certainly posted about it on Facebook or Instagram. So why not allow visitors to make purchases without having to leave the Facebook and Instagram apps?

    It’s also worth remembering that the pandemic’s economic fallout is already hurting and killing off many small businesses — businesses that post and advertise on Facebook. So the company has a stake in helping those businesses survive in any way it can.

    In a Facebook Live session today, CEO Mark Zuckerberg described this as a way to help businesses suffering in the wake of COVID-19, though he acknowledged it will not “undo all the economic damage.”

    He also suggested that this will remain useful after the pandemic: “I do think we’re going to continue living more of our lives online and doing more business online.”

    Meanwhile, Instagram’s vice president of product Vishal Shah told me this is a big, global test of the feature, with nearly 1 million businesses already signed up.

    Those businesses will be able to create a Facebook Shop for free — they just upload their catalog, choose the products they want to feature, then customize it with a cover image and accent colors. Visitors can then browse, save and order products.

    Facebook’s vice president of ads Dan Levy said that while the company will charge “small fees” on each purchase, the real monetization will come from driving more advertising. (Shops can also be featured in ads and stories.)

    Levy described this as a “build and render anywhere” solution, with Shah adding that “the shop itself will be very consistent, whether it’s on Facebook or Instagram.” What will differ is how consumers discover the shops, whether it’s via the Facebook Marketplace or a product tagged in a photo on Instagram.

    The company also plans to launch this summer another experience called Instagram Shop, allowing users to browse products directly from Instagram Explore and eventually to jump into a shopping experience from the app’s main navigation tab. There will also be ways for merchants to feature and link in their live videos products from their Facebook Stores, and for consumers to connect loyalty programs to their Facebook accounts.

    As part of this announcement, Facebook said it’s partnering with Shopify, BigCommerce, Woo, Channel Advisor, CedCommerce, Cafe24, Tienda Nube and Feedonomics.

    Merchants will be able to use these third-party platforms to manage their Facebook Shops, as well as the ads tied to those Shops. For example, Shopify said, “Facebook Shops allows Shopify merchants to get control over customization and merchandising for their storefronts inside Facebook and Instagram, while managing their products, inventory, orders, and fulfillment directly from within Shopify.”
    下载开源日报APP:https://opensourcedaily.org/2579/
    加入我们:https://opensourcedaily.org/about/join/
    关注我们:https://opensourcedaily.org/about/love/
  • 开源日报第784期:《learngo》

    26 5 月, 2020
    开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
    今日推荐开源项目:《learngo》
    今日推荐英文原文:《Does Listening To Music Influence Software Development?》

    今日推荐开源项目:《learngo》传送门:GitHub链接
    推荐理由:该项目包含 Go 语言的课程,练习和测试。
    Go(又称Golang)是Google开发的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。它是一种经过精心设计的实用性语言,简洁易学。
    今日推荐英文原文:《Does Listening To Music Influence Software Development?》作者:Rachel Zane
    原文链接:https://medium.com/@mdln/does-listening-to-music-influence-software-development-42e95ffa28b7
    推荐理由:学习工作时自带BGM

    Does Listening To Music Influence Software Development?

    Let’s discuss about how listening to music at work can positively affect us while writing code or doing repetitive tasks.

    (Photo by Eric Nopanen on Unsplash)
    There is no secret that listening to music makes us happy, more relaxed and significantly improves our overall mood. It seems that music has such a positive effect that the researchers at Stanford University have confirmed that

    ‘Listening to music seems to be able to change brain functioning to the same extent as medication’.
    Research also showed that listening to music on headphones reduces stress and anxiety and can be a good way to relieve depression and increase self-esteem.

    To go back to the main topic of this article, I would like us to focus on how music can influence the way software engineers write code. As a starting point, I have read “The Sound of Software Development”, a research study by Laura Barton, Gulipek Candan, Thomas Fritz, Thomas Zimmermann and Gail C. Murphy, that focuses on the music listening effects among software engineers and it would be beneficial to describe some of their main findings in this article.

    What do related studies say about the effect of music?

    One study shows that cyclists worked harder and biked for a longer distance when they were listening to faster music, as the tempo directly influenced their pedalling. Also, for activities such as running, music can help regulate your rhythm and give signals to your brain when your body should move.

    ‘During repetitive, endurance-type activities, self-selected, motivational, and stimulative music has been shown to enhance effect, reduce ratings of perceived exertion, improve energy efficiency and lead to increased work output’.
    But, when it comes to work, studies have shown mixed results regarding the positive trend suggesting that music is beneficial to work performance. Most of the studies focused on whether music can influence a particular activity, without deepening the understanding of whether listening to music an entire day can make it easier to complete your everyday tasks. Mainly, previous work showed that the effect of music listening is considerably affected by a variety of factors, such as personal preferences, personal traits and task type.

    Why do software engineers listen to music?

    (Photo by Lee Campbell on Unsplash)
    Nowadays, the majority of software engineers work in open-floor offices, due to the lack of space. In such environments, it gets easy to get disrupted by noise. Thus, it is highly probable to use headphones and start listening to music, podcasts, documentaries, etc. Most of the times engineers choose music, as you don’t have to fully pay attention to it and it helps you get disconnected from your surroundings.

    How many software engineers are actually listening to music at work?

    Citing the previously mentioned study, between 63% and 88.2% of the engineers that participated in the survey admitted that they enjoy listening to music at work at least some of the time. Also, it seems that music is more popular among younger developers, especially those under 32 years of age. Up to 91.7% of the young developers reported that they listen to music while coding. Of course, in the case of developers that have a private office, music is less popular compared with the case of those who shared an office space (83.8% vs 89.4%).

    To listen or not to listen to music at work

    Participants from the study stated their reasons regarding why they are listening to music and, in order of popularity, the results are as follows:
    1. “cuts down background noise” — 70.9%
    2. “lifts my mood” — 61.4%
    3. “increases my focus” — 56.2%
    4. “reduces distractions” — 55.2%
    5. “relaxes me” — 54.6%
    6. “makes me more energetic” — 48.3%
    7. “motivates me” — 48.1%
    8. “improves my productivity” — 44.6%
    9. “signals coworkers to not disturb me” — 22.6%
    10. “increases the quality of my work” — 18.8%
    11. “gives me a sense of control over my aural environment”—16.2%.
    After seeing the most popular reasons, it totally makes sense that software engineers try to find ways to disconnect and manage distractions.
    Music is a good way to increase the focus of the software engineers at work, while giving a subtle signal to their coworkers to not disturb them.
    (Photo by Christina @ wocintechchat.com on Unsplash)
    Participants from the study also stated their reasons regarding why they are not listening to music and, in order of popularity, the results are as follows:
    1. “can’t concentrate/distracts me” — 65.8%
    2. “decreases my productivity” — 39.8%
    3. “reduces the quality of my work” — 26.5%
    4. “I have too many interruptions” — 26.5%
    5. “too much overhead” — 19.6%
    6. “I’m in too many meetings’ — 13.9%
    7. “it is not allowed at my work” — 12.0%
    8. “indicates to coworkers that I’m available” — 7.5%
    9. “lowers my mood”—1.9%.
    It is highly interesting that those who said that they are not listening to music say that they get distracted and can’t focus, while those that are listening to music state that music “increases their focus” and “reduces distractions”. This contradiction is likely reflected by the fact that not all activities that you can have as a software engineer during a day are a good match for musical accompaniment. For example, if you are a beginner and you are constantly learning about new tools and processes, you would like to not be distracted at all.

    (Photo by bruce mars on Unsplash)
    As expected, many of those who enjoy listening to music say that music is a good way to lift their mood and make them more energetic. I would add here that this aspect is highly influenced by the type of music you listen, as there are two main categories of music people enjoy while doing repetitive tasks:
    1. music that can increase their mood
    2. music that is mostly instrumental to eliminate background noise.

    What activities are accompanied by music at work?

    Among the most popular activities, there are:
    1. Writing code — 85.5%
    2. Repetitive tasks — 76.8%
    3. Building code — 64.7%
    4. Testing code — 60.2%
    5. Writing documentation — 48.7%
    6. Debugging — 45.4%
    7. Email — 32.3%
    8. Management tasks — 29.5%
    9. Code reviews — 25.7%
    10. Program understanding — 25.6%
    11. Multitasking — 23.9%
    12. Learning — 19.9%
    13. Memorisation — 14.4%.
    It does not come as a surprise that activities that are independent, such as writing code or doing repetitive tasks are the most popular activities for listening to music. Also, it is important to see that activities that require writing (documentation, reviews, emails), but not in the sense of coding, are a good opportunity for listening to music, as they do not require the attention you would need to have for learning something new or trying to understand a program or a piece of code.

    Conclusion

    Based on the mentioned study, listening to music is indeed a common practice and it can have a positive impact, considering different aspects such as personal traits, music preference, etc. But, in the end, we should remember what the researchers stated:

    ‘It is inconclusive whether listening to music directly improves coders’ productivity, although the two are generally correlated’.
    Hope this was a pleasant article and I encourage you again to read the full study here.

    Thank you for reading and have a nice day ?


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

    25 5 月, 2020
    开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
    今日推荐开源项目:《responsively-app》
    今日推荐英文原文:《Coronavirus: survey reveals what the public wants from a contact-tracing app》

    今日推荐开源项目:《responsively-app》传送门:GitHub链接
    推荐理由:这款浏览器有助于web的开发. 具有可定制的预览布局,可以在所有不同的设备中实现镜像交互,一键截图所有设备, 30+内置设备配置文件,可选择添加自定义设备等丰富的功能.
    今日推荐英文原文:《Coronavirus: survey reveals what the public wants from a contact-tracing app》
    原文链接:https://thenextweb.com/syndication/2020/05/20/coronavirus-survey-reveals-what-the-public-wants-from-a-contact-tracing-app/
    推荐理由:英国政府正在开发一款实时追踪新冠病毒患者接触的app,它会对接触过患者的人做出警告,但是这款app的运行取决于人们是否能够接受并使用它.

    Coronavirus: survey reveals what the public wants from a contact-tracing app

    The UK government is currently trialling a contact tracing app among residents of the Isle of Wight ahead of a plan to roll it out across England. The app is designed to alert users if they have been in contact with someone who has reported COVID-19 symptoms and encourage them to self-isolate. But success will depend on the number of people who are willing to actually use it.

    We conducted a non-representative survey of 730 people on May 11 – six days into the trial – which has thrown up some findings that could help work out what would convince people to use this app.

    Overall, we found multiple concerns about how it operates. Amid concern that the app would gather information in a central database, respondents were less worried about that and more about who would be able to access the data and how it would be stored.

    Paradoxically, there was also a strong commitment to downloading the app. Just under 75% of people said they were likely to download the app (28% moderately likely, 20% very likely, and 25% extremely likely). Only 13% said they were not likely at all.

    Why might there be such strong support for the use of a contact-tracing app in England if there are wide-ranging concerns about how it operates?

    Data privacy is a significant concern, with 86% of respondents saying it was very or extremely important to them that their data was fully anonymized. And 73% said it was very or extremely important that their data was only stored for a limited amount of time. Some 58% were very or extremely concerned about privacy protection and 60% of people that their data might be used for purposes other than tracing COVID-19.

    None of this can have been helped by the vagueness with which data privacy matters have been handled. When the government published a key document on the Isle of Wight pilot, it redacted the parts on data security and gave only ambiguous information about user anonymity.

    Track, trace, and trust

    There is prior evidence that could help here. We know that public support for enhanced police powers to tackle the virus (such as drones, facial recognition and GPS mobile phone tracking to enforce social distancing) is rooted in public trust and police legitimacy. When the public trusts authorities, their concerns about privacy are mitigated. They can feel reassured that new technologies, laws, and powers will be used in the correct way and not be abused.

    In our survey, we found that less than a third of participants (32%) had a lot or a fair amount of confidence in the government to handle the COVID-19 crisis. Only 31% had a lot or a fair amount of confidence in the prime minister.

    This might be explained, in part, by the widespread confusion caused by the prime minister’s speech on May 10 announcing changes to lockdown advice. We ran our survey the day after and just 28% of respondents said they trusted the government to give them a clear picture of what everybody needs to be doing and not doing.

    On the other hand, 85% of respondents reported a lot or a fair amount of confidence in the NHS, so the government’s decision to brand the app as the “NHSX-app” may well enhance support for it – even though NHSX is a government unit. And, indeed, 87% said that data from the app only being accessible by the NHS was very or extremely important to them.

    Believing that it is only the NHS that will be able to access data from the app may also override public concerns about it being centralized rather than decentralized, since people trust the NHS but not politicians, with their data.

    We found a slightly higher level of support for the centralized model. Some 58% of participants reported that they were very likely or extremely likely to download the app if anonymized data was uploaded to a remote government server, versus 48% who were very likely or extremely likely to download the app if data stays on a user’s phone with no central oversight of the virus spread.

    In our survey, some people were presented with a system in which data from the app is fed directly into an NHS database. Others were presented with a system in which “no centralized database of users, their movements and contacts are required, and no personal information is used”. The centralized NHS database system received more support than the decentralized anonymous system.

    In it together

    Our survey also found that a collective sense of responsibility may drive support for the app.

    A recent study into lockdown compliance found that self-reported adherence to social distancing requirements was rooted not in fear of the virus, police, or law, but in social norms (backed up by legal requirement). Making social distancing a legal requirement may have strengthened public compliance not through deterrence but by signaling that the nation needs to take social distancing seriously.

    We asked participants the extent to which they agreed with statements such as “by making it a legal requirement, the government sent the message that social distancing is important to fight the pandemic” (96% agreed) and “observing the social distancing laws shows other people in my community that I care for their safety” (84% agreed). Another 83% agreed that “following the social distancing rules helps me feel that I am part of the collective fight against the pandemic.”

    A sense of common fate and everybody acting for the common good seems to spill over into or be expressed by, support for a contact tracing app that is strongly associated with the NHS. And while that was a strong force in the early weeks of lockdown, when there was widespread support for the measures, it’s less clear that the same will be true in this next period, when there is potentially less consensus about the best course of action.
    下载开源日报APP:https://opensourcedaily.org/2579/
    加入我们:https://opensourcedaily.org/about/join/
    关注我们:https://opensourcedaily.org/about/love/
←上一页
1 … 62 63 64 65 66 … 262
下一页→

Proudly powered by WordPress