python |
Pythonタグが付けられた新着投稿 - Qiita |
matplotlibで凡例(Legend)のみを出力する方法 |
https://qiita.com/moshi/items/5dd2d18b81f87e9a4370
|
legend |
2022-04-24 01:09:41 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
郵便番号を入力すると住所を自動入力してくれるフォーム【コピペでOK】 |
https://qiita.com/yutami3841/items/056cca9148e19770d8a4
|
郵便番号 |
2022-04-24 01:08:24 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
docker-compose up -d 時のトラブルシューティング(備忘録) |
https://qiita.com/KentaroYoshizumi/items/8c4934c62691a25b2ad6
|
ckercomposeupdtracebackm |
2022-04-24 01:17:58 |
海外TECH |
MakeUseOf |
Eat More Greens With These 5 Apps for Plant-Based Recipes |
https://www.makeuseof.com/eat-more-greens-apps-plant-based-recipes/
|
Eat More Greens With These Apps for Plant Based RecipesIncluding more fruits and vegetables in your diet is a great way to eat healthy and with these apps you ll find your new favorite plant based meals |
2022-04-23 16:45:13 |
海外TECH |
MakeUseOf |
The 5 Best Websites for Finding Great Quotes and Sayings |
https://www.makeuseof.com/best-websites-finding-quotes/
|
The Best Websites for Finding Great Quotes and SayingsWhether you re looking for the perfect quote for your Instagram or to inspire yourself here are the five best websites to find great quotes |
2022-04-23 16:30:13 |
海外TECH |
MakeUseOf |
How to Fix PlayerUnknown's Battlegrounds Not Launching in Windows 11 or 10 |
https://www.makeuseof.com/windows-11-10-playerunknowns-battlegrounds-not-launching/
|
windows |
2022-04-23 16:15:13 |
海外TECH |
DEV Community |
Why I Chose C# |
https://dev.to/chadwinjdeysel/why-i-chose-c-48ng
|
Why I Chose C Attention fullstack developers there s an imposter among us Unfortunately it s me I like to think of myself as a front end dev disguised as a fullstack developer So while I m willing to on and learn multiple frontend options the backend is maybe even more important Here s why I ve chosen C Open Source Project Maintained by MicrosoftWhile these two things don t make it inherently better it makes me sleep at night knowing that the language will always be optimized improved on and supported Open source projects are always great as there is a high level of transparency and usually an active community of developers and companies that s invested in the project Having the language backed by an active community is great because if there are any short coming or ways to improve on it the community will always do it s best to improve on it It s a Great LanguageApart from C I ve briefly worked with languages such as Delphi Python Java and JavaScript However C has always been my preference It s probably the Stockholm Syndrome talking as this was the language we had to learn in college But I ve never had any issues with the language itself getting in the way of my productivity and my ability to create applications It makes use of a syntax that is easy to understand but it also doesn t fall apart when the code starts getting too complex C is fundamentally an OOP Object Oriented Programing language This means that everything is comprised of objects and we can create and interact with objects and their methods and properties However C also accommodates for certain Functional Programming techniques such as Lambda Expressions Fluent APIs etc allowing you to speed up your productivity and the performance of your application NET Ecosystemor is it dotnet either way You can t mention C without talking about the infamous NET While it has been the bane of developers in the past due to it being proprietary it has since become open source and the NET Core update has pushed the limitations of what a development eco system can accomplish You can build pretty much everything with C and NET From Mobile Applications Web APIs Video Games and AI tools Another benefit that NET has introduced is it s cross platform NET can be ran and hosted on both Windows and Linux This takes out a lot of frustration developers might have relating to hosting and opens up to organizations who either already have Windows Hosting or new organizations that wants to capitalize on Linux hosting NuGet EcosystemIn as simple terms as possible a NuGet package is a compressed file that is made up of compiled code DLL It can be created by any developer and then uploaded to the NuGet gallery similar to NPM packages This has opened up the landscape for developers to create libraries that solve their organization s problems and even other developer s problems There is also an infinite amount of great libraries that already exist out there You have LINQ that acts as a universal data query syntax AutoMapper for mapping types to other types NUnit and Fluent Assertions for unrivaled Unit Testing And many many more You can also create your own private NuGet packages that s specific to your organization These packages can then be shared between developer teams to increase the consistency and productivity of your developers Bright FutureSince the introduction of NET the NET eco system and C has been on a contentious up New features are being added to C as a language such as record types which focuses on maintaining records typically from a database without the extra leg work by doing things like making an Id of a record immutable once it s been set for example NET has also put in a massive bid to run Web Assembly applications with Blazor I m a big fan of the idea of WASM for building web applications in a more performant and productive manner NET Maui is also another emerging technology out of the NET eco system This is going to allow developers to take their Blazor code and use that to create native cross platform applications on Android IOS and Desktop ConclusionC is a great language that has a lot of useful features and interacts with one of the most powerful developer eco systems out there NET It also has a future that I am keen to be a part of If you found this post useful please follow me on Twitter for more Angular and development tips and check me out on GitHub Thanks for reading and have a great day |
2022-04-23 16:48:13 |
海外TECH |
DEV Community |
Refactoring #5: From arrays to Data Transfer Objects |
https://dev.to/genijaho/refactoring-5-from-arrays-to-data-transfer-objects-4f0l
|
Refactoring From arrays to Data Transfer ObjectsWe recently pushed a new improvement at OLM to reward admins with XP for verifying uploaded images The most critical part of the feature a class that does some calculations and returns some stats introduces a small design flaw We re going to see how to fix that in this post The problem is simple our class is returning an array of key value pairs and this array is used in quite a few other places in code The flaw here is that if we decide to change add or delete a key in this array we ll have to touch every usage of it And trust me that s going to introduce bugs Using an object instead of an arrayThis problem is perfect for refactoring to an object In fact these objects are called Data Transfer Objects DTO as they re meant to transfer data of some kind not necessarily with logic in it In our case it s a tags difference object but we ll try to find a proper name for it There are some steps to perform this refactoring safely but a simple dummy implementation looks like this We re storing the class in the app DTO directory you might find a better place in your case Also the usages of the new return value are now much simpler to understand and work with What s inside the Data Transfer Object Generally the key value pairs we had in the previous array now become first class citizens as private object properties You re going to have to write some getters for them It s important to remember that we only set the properties once in the constructor That gives us a simple validation out of the box Of course you can apply extra validation parsing and filtering you might need in the constructor as well I d say keep the DTO simple though try to look at it simply as a way to move some data from one place to another I d advise you also set the class as final and implement the public getters and setters only when you need them Our final class looks like this We ll probably start refactoring into DTOs in other parts of the code as well We could use your help though wink The benefits of using DTOs are numerous there s even a package from Spatie for them See the package s release post and this awesome DTO explanation for a more in depth take and how to implement and use them in a more sensible way The code used for illustration is taken from the OpenLitterMap project They re doing a great job creating the world s most advanced open database on litter brands amp plastic pollution The project is open sourced and would love your contributions both as users and developers Originally published at |
2022-04-23 16:15:53 |
海外科学 |
NYT > Science |
Peter Swales, Who Startled Freud Scholarship, Dies at 73 |
https://www.nytimes.com/2022/04/21/science/peter-swales-dead.html
|
sigmund |
2022-04-23 16:48:53 |
ニュース |
BBC News - Home |
Bedworth: Three stabbed and 10 others hurt in town centre attack |
https://www.bbc.co.uk/news/uk-england-coventry-warwickshire-61201787?at_medium=RSS&at_campaign=KARANGA
|
bedworth |
2022-04-23 16:15:48 |
ニュース |
BBC News - Home |
Man City 5-1 Watford: Gabriel Jesus scores four as Premier League leaders move four points clear |
https://www.bbc.co.uk/sport/football/61125045?at_medium=RSS&at_campaign=KARANGA
|
Man City Watford Gabriel Jesus scores four as Premier League leaders move four points clearGabriel Jesus scores four goals and makes a fifth as Manchester City thrash Watford to move four points clear at the top of the Premier League |
2022-04-23 16:24:06 |
ニュース |
BBC News - Home |
Emilia Romagna Grand Prix: Max Verstappen passes Charles Leclerc to win sprint race |
https://www.bbc.co.uk/sport/formula1/61202419?at_medium=RSS&at_campaign=KARANGA
|
Emilia Romagna Grand Prix Max Verstappen passes Charles Leclerc to win sprint raceRed Bull s Max Verstappen passes Ferrari s Charles Leclerc with two laps to go to win the sprint race at the Emilia Romagna Grand Prix |
2022-04-23 16:30:20 |
コメント
コメントを投稿