Programming

43 readers
1 users here now

This magazine is dedicated to discussions on programming languages, software development, and coding. Whether you are a beginner programmer or an experienced developer, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as coding languages, software engineering, web development, and more. From the latest trends and frameworks to tips and tricks for debugging, this category covers a wide range of topics related to programming.

founded 2 years ago
1
 
 

As I have done for the past many years, I will again this year create a list of my favourite books on software development. In recent years I have started reading more about software architecture, therefore you will find some of these books as well. A lot of the books are the same as last year as many are timeless classics as the fundamental principles of software development do not change much over the years. Therefore these are not books that have been published in 2023. I have read most of the books on this list, a few are recommendations I have yet to read. # 1 The Pragmatic Programmer: Your Journey To Mastery ## Authors: David Thomas and Andrew Hunt book1 # 2 Head first Design patterns ## Authors: Eric Freeman, Bert Bates, Kathy Sierra and Elisabeth Robson book2 # 3 Test Driven Development ## Author: Kent Beck book3 # 4 Soft Skills: The software developer's life manual ## Author: John Sonmez book4 # 5 Cracking the Coding Interview: 189 Programming Questions and Solutions ## Author: Gayle Laakmann McDowell book5 # 6 Head First Python ## Author: Paul Barry book6 # 7 Release it! ##Authors: Michael T. Nygard book7 # 8 Building microservices ## Authors: Sam Newman book8 # 9 Refactoring ## Author: Martin Fowler book9 # 10 Domain-Driven Design: Tackling Complexity in the Heart of Software ## Author: Eric Evans book10 # 11 Enterprise Integration Patterns ## Authors: Gregor Hohpe and Bobby Woolf book11 # 12 Database Design Solutions ## Author: Rod Stephens book12 # 13 HTML and CSS + Javascript and Jquery ## Author: Jon Duckett book13 # 14 Don't make me think ## Author: Steve Krug book14 # 15 Learning C# by Developing Games with Unity ## Author: Harrison Ferrone book16 This is my short list, if you have a reference that I haven't shared here, I'd love to read it in the comments.

2
 
 

Anyone got any good alternatives to #stackoverflow?

#programming

3
 
 

If you've never programmed before I suggest you read Think Python, 2d edition. Its author was kind enough to provide it on his website free of charge. Though you can also buy a physical copy of it if you'd like. There's also a Java version available as well though I recommend you choose the Python version. If you've never used a Unix(-like) system before you should read this free book called The Linux Command Line by William Shotts. It teaches you how to use the Bash shell which is used on all major Unix systems (MacOS, Linux etc.) and as a programmer you will most likely be using the Bash shell a lot so learn it. A shell is a computer program that allows you to interact with your operating system by typing in commands. You don't even even need to have Linux installed to read this book. If you are using MacOS then you already are using Unix so you don't have to install anything else, just open up your Terminal but make sure that you are using Bash (Not sure if you are using Bash? Read this.). If you are on Windows you can use Cygwin. Reactionary Bash Tutorial which was written and linked in the comments by fschmidt also seems nice. If your knowledge of mathematics is lacking and/or you've simply forgotten a lot of stuff I suggest you read Precalculus: Mathematics for Calculus by Lothar Redlin, Saleem Watson and James Stewart. Then I suggest you read Digital Design and Computer Architecture David Harris and Sarah L. Harris. There's multiple editions of it available. I suggest you choose the RISC-V version since it's the most recent. This book will teach you how computers really work and since you will be working with computers for a living it makes sense to also learn how they work. The only prerequisite for it is knowledge of high-school mathematics and basics of DC circuits. If your knowledge of DC circuits is lacking check out this free course on Khan academy. Learning assembly language and C programming will also help you with understanding how software and hardware work together. For that I suggest Learn to Program with Assembly by Jonathan Bartlett and Beginning C: From Beginner to Pro by German Gonzalez-Morris and Ivor Horton. Afterwards you should learn about discrete mathematics since this field is used all-throughout the field of computer science. I suggest Mathematics: A Discrete Introduction by Edward A. Scheinerman. Then you should read Introduction to Algorithms, fourth edition by by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein. This is arguably the most important book on this list. Without the knowledge of algorithms you are nothing as a programmer so make sure you learn the basics well. Next up on the list is Computer Networking: A Top-Down Approach by James Kurose and Keith Ross. As a programmer most of the programs you will be making will interact with the internet some way or another so the knowledge of computer networks is important. Modern Operating Systems by Andrew Tanenbaum is also another important read if you want to understand how operating systems work under the hood. It will also help you understand how your computer programs interact with whatever OS you run them on. And finally we come to the topic of programming languages. If you want to know how programming languages work or you even want to make your own one you should read Introduction To The Theory Of Computation by Sipser Then read Compilers: Principles, Techniques, and Tools by Alfred Aho, Jeffrey Ullman, Ravi Sethi and Monica Lam. And that's all I wanted to say! If you've got any suggestions or questions please let me know!

4
 
 

have you ever done anything with Luan? what was your experience like?

#programming

5
4
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
 
 

for a while now i've been looking for alternatives to reddit, because for me it's over. i've been using telegram, scored, kbin and chat-to.dev i think they're the best alternatives to look for good communities on the internet.

6
 
 

Array Sum: Write a function to calculate the sum of all the elements in an array.

Palindrome Check: Write a function to check if a string is a palindrome.

List Sorting: Implement a sorting algorithm (such as bubble sort, selection sort, or merge sort) to sort a list of numbers.

Fibonacci: Write a function to calculate the nth term of the Fibonacci sequence.

Recursive Factorial: Write a recursive function to calculate the factorial of a number.

7
 
 

Have you ever mocked your logger in a test, or wished you could? That is something like

TEST(some test name)

    mockLogger logger

    logger.expect_call(log("some string"))

    DoSomething(logger)

#programming

8
 
 

I feel like I am between a rock and a hard place and I would like some perspective and/or advice from other developers or programmers to help decide what my next course of action should be.

I got into software dev around the beginning of the pandemic when my institution hired a new supervisor for a new team called the Application Team (subset of ITS) specifically for creating customer business applications on campus for different business needs. It started as taking over support for customer Microsoft Access Applications that were initially suported by a contractor for over 15 years.

After getting to the start of the 2nd year, we had trouble keeping other developers on because the pay isn't high enough to keep a new developer on longer than a couple months. Needless to say, this opened up an opportunity for me to start learning C# and .NET and gave me an ability to get promoted with new responsibilities. It was always understood that I will be learning on the job.

That being said, fast forward to the last year or so, I am the most senior developer (under my supervisor - who has 40+ years of experience) and we were able to promote non-IT people to beginner developer positions - with the idea my supervisor will help train them in how to do software development and the full software dev life cycle etc.

Now, to where I am struggling. My supervisor is holding 2 weekly meetings, at 3 hours a piece, where he goes through the development of a real product we need to implement for our institution. I was asked to join these meetings because I could add some additional value but also because since I am still relatively new to development work, we thought it might be good to reinforce some of the stuff I've learned on top of learning new concepts we are building out for the first time(like apply business rules with a MVC type of paradigm).

The main problem is I am struggling with these meetings because they are so basic and I find it hard to pay attention and stay focused and engaged through our meetings. Some of the stuff I just can't learn by watching 3 hours of demonstration, it's not a good a way of learning for me. I personally need to see a demonstration, then I need to apply it to my own situation and "play" with it to make sure I fully understand. Simply watching someone do all the work and talk through the process isn't effective for me to learn - at least to a point. Especially if we don't have "work" to do that helps reinforce what we are learning in the sessions. I feel like the new developers are getting more out of these sessions than I am because I just don't find them all that helpful, even though I do see nuggets of good information from time to time.

Does this sound like a situation where I just need to "man up" and accept I am going to have to go through this 6 hours every week, even though the benefits feel marginal at best and a waste of time at its worse. The last training sessions and this one has been watching him debug a business rule for almost 3 hours between 2 days and I just don't feel like this is helpful or I am learning because I can' stand to pay attention for longer than 15 minutes. It's making me wonder if I made a mistake switching to software dev a little bit. Maybe I need an attitude adjustment. Maybe I need to speak to my supervisor about the training, but I feel he's more focused on our new developers right now. I do agree that some of this is very important and I need to be involved with some of the training due to the decisions we make as a team but I feel like this time could be better put towards self taught training.

Thank you to anyone who takes the time to read and reply. I really appreciate it.

9
 
 

The value of a clean git history is often underestimated. I will explain one of the advantages based on the git bisect command.

10
 
 

Verified Website:- https://actionpills.com/product-category/buy-ativan-online/

Ativan tablets can also be used to help reduce the severity of symptoms associated with alcohol withdrawal. You can rest assured that your order will arrive quickly and safely. Ativan is a medication that depresses the central nervous facility and slows down the affairs of the nervous system. Ativan is famous as the name of Lorazepam in the market. It treated certain mental disorders like anxiety and insomnia. Buy Ativan online for stable mental health

—-----Visit Below Link—-------

https://idees.orange.sn/feedbacks/187030-order-xanax-online-2mg-paypal-credit-card https://www.gocomics.com/profile/3353925 https://www.gocomics.com/profile/3353929 https://www.gocomics.com/profile/3353933 https://www.gocomics.com/profile/3353938 https://www.gocomics.com/profile/3353941

https://adbellmedia.com/posts/purchase-xanax-1mg-safely-and-conveniently-onli ne
https://adbellmedia.com/posts/buy-valium-10mg-tablet-online-legally-actionpills

https://startupxplore.com/en/person/want-you-buy-ativan-online-at-low-price-in-usa https://startupxplore.com/en/person/how-can-i-order-xanax-3mg-online-in-oregon-safely-legally https://startupxplore.com/en/person/order-klonopin-online-from-actionpills-legal-site

https://glints.com/companies/want-to-order-ativan-tablet-get-optimum-product/56542531-a7c0-4854-97c7-9bf9d1e7e4c7 https://glints.com/companies/want-to-buy-klonopin-1mg-tablet-get-optimum-product/dca82b82-38b6-4e04-85b4-ae25b2ab96aa

https://artvee.com/members/xanaxxanax/profile/ https://artvee.com/members/xanaxxanax1mg/profile/

https://groups.google.com/g/comp.dcom.sys.cisco/c/_MA2lln5_xs https://groups.google.com/g/comp.dcom.sys.cisco/c/Lskg4DICOF4

https://replit.com/@XanaxCanIget https://replit.com/@klonopin2mgmg https://modworkshop.net/user/cheapativantabletusa https://modworkshop.net/user/orderklonopinonline https://modworkshop.net/user/buyxanaxonlinenearme https://worknola.com/employer/view/368509 https://worknola.com/employer/view/368516 https://www.cureus.com/users/696477-health-care https://www.cureus.com/users/696479-health-care https://www.cureus.com/users/696486-health-care https://www.rajce.idnes.cz/buyvaliumonlinehere/album/where-to-buy-valium-online-for-sale-with-paypal/1624292816 https://buyvaliumonlinehere.rajce.idnes.cz/profil/informace https://www.gocomics.com/profile/3352528 https://www.gocomics.com/profile/3352518 https://www.gocomics.com/profile/3350189 https://www.cureus.com/users/693420-health-care https://www.gocomics.com/profile/3350158 https://artvee.com/members/klonopin1mghere/profile/ https://www.gocomics.com/profile/3352524 https://www.gocomics.com/profile/3349212 https://www.gocomics.com/profile/3347575 https://www.medtechdirectory.com/listing/28929-can-i-buy-xanax-online-via-debit-card-methods-usa.html https://www.medtechdirectory.com/listing/28931-where-to-buy-xanax-1mg-online-via-debit-card-methods-usa.html https://www.medtechdirectory.com/listing/28932-best-web-to-buy-xanax-2mg-online-with-paypal-methods-anxiety.html https://www.medtechdirectory.com/listing/28934-legal-web-to-buy-xanax-3mg-online-with-paypal-methods-anxiety.html https://us.radiocut.fm/user/ativan1mg1mg/ https://us.radiocut.fm/user/Klonopin2mg2mg/ https://us.radiocut.fm/user/Xanax3mg3mg/ https://us.radiocut.fm/user/Valium5mg5mg/

11
 
 

Mocking libraries come with disadvantages, but fortunately they can be replaced by in-memory implementations, at least for repositories.

12
1
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 
 

Lets learn a bit about array with javascript.

An Array is an Object that stores values in order. In the example above we used an Object to store our car because it had specific properties that we wanted to be able to access easily via a key. If we just want to store a list of items, then there is no need to create an Object. Instead, we can use an Array. https://www.chat-to.dev/post?id=14 #javascript #programming

13
 
 

GitHub uses MySQL to store vast amounts of relational data. This is the story of how we seamlessly upgraded our production fleet to MySQL 8.0.

14
2
Callbacks (kbin.social)
submitted 11 months ago by [email protected] to c/[email protected]
 
 

Callbacks

We can achieve asynchronous programming in JavaScript if we use the callbacks. A callback is a function that is passed as an argument to another function. The idea of the callback function is ‘I will call you back later’. You should know that the functions in JavaScript are executed in the sequence they are called, not in the sequence they are defined in. Okay, without confusing you, I will start from the beginning, why sequence control is so important in JavaScript. The sequence of control allows us to control the sequence when a function needs to be executed. For example, let us say that we want to create a function that will do some basic arithmetic operation like the sum of two integer numbers. After the function returns the result, we want to call another function to display the result to the user. So now we have two functions, one mainly for calculation, and the other is to display the user the result. Therefore we know their sequence of execution. Of course, you cannot start showing the results without first calling the calculation function. Here is the entire example: https://www.chat-to.dev/post?id=13

#programming

15
 
 

Today, we'll review the source code for RE3– the reverse-engineered C++ source code for Grand Theft Auto III and Vice City.

16
 
 

I'm having a lot of trouble with the lack of documentation (I had to dig and poke around for days to get it working not from the files directly, only for it to stop working again in the same way, all while still having the fix for it), and the lack of an incentive from some of its other users in the D community to make anything newer than 5.1 working (I NEED INTEGER SUPPORT).

Basically I need a relatively lightweight scripting library for my game engine written in D, that isn't a toy language (which doesn't have integer support). Most other scripting libraries lack integer support (even Lua did until 5.4, because yOU CaN JuST uSE rOUnDIng ON youR BaCKeNd) and/or are heavily bloated (I don't want to include 50+MB stuff just because it's trendy to make your scripting language a slow and clunky application language (I'm looking at you, Javascript!)). I'm using D, but it can interface with both C and C++.

I would be fine with Lua, and if I had the time, I'd just reimplement it in D without the godawful and confusing stack method of interaction. But now I have to look for some feasible alternatives.

17
 
 

use any fonts you like on your web pages thanks to this recipe.

Although web browsers come with a reasonable range of default fonts, they don’t always provide the look you need for a particular web site. In such cases, you usually must resort to calling up a graphic editor and creating logos or headlines there. However, with this recipe all you have to do is upload the TrueType fonts you wish to use to your web site and you can then display text in these fonts by having the GD library convert it on the fly to GIF images.
https://chat-to.dev/post?id=9 #php #backend #programming

18
 
 

When accepting user input for redisplay, and particularly if it will be inserted into a database, it’s important that you sanitize the input to remove any malicious attempts at hijacking your server, or otherwise injecting unwanted MySQL commands, HTML, or JavaScript. https://chat-to.dev/post?id=6

#programming

19
 
 

Join chat rooms and explore programming content on Chat-to.dev.

20
 
 

The 14 Day Filmmaker Smartphone Edition is an online course about making films using a smartphone.

21
 
 

Understand the mechanics of dynamic dispatch implementation in CPython

22
 
 

If you're looking to transform your living space into a cozy and inviting haven, look no further than the L-shaped sofa. This versatile furniture piece has been taking the design world by storm, revolutionizing how we arrange our seating areas. With its sleek lines and spacious layout, an L-shaped sofa is not only practical but also adds an element of contemporary sophistication to any room. So get ready to maximize both comfort and style as we delve into why L-shaped sofas are the ultimate choice for today's interior enthusiasts!

The Rise of L-Shaped Sofas in Modern Interior Design

Gone are the days when sofas were limited to traditional shapes and sizes. Modern interior design has embraced innovation, and L shape sofa have emerged as a hot trend in recent years. The rise of L-shaped sofas can be attributed to their ability to effortlessly blend functionality with style.

One of the key reasons behind their popularity is the versatility they offer in arrangement. Whether you have a compact living room or an open-concept space, an L-shaped sofa can easily fit into any corner, maximizing your floor space while providing ample seating for family and guests.

Moreover, L-shaped sofas have evolved beyond being just a seating option; they now serve as multifunctional pieces that cater to various needs. You can find models with built-in storage compartments or even ones that transform into cozy beds for overnight guests.

Another factor driving the popularity of these sofas is their aesthetic appeal. With clean lines, sleek designs, and a wide range of upholstery options available, L-shaped sofas effortlessly elevate the visual appeal of any room. From luxurious leather finishes to soft fabric textures, there's something for every taste and style preference.

Furthermore, L-shaped sofas bring an element of contemporary sophistication to any space they grace. Their bold presence adds character without overwhelming other furniture pieces or decor items in your room.

Versatility in Arrangement and Functionality

L-shaped sofas have gained immense popularity in modern interior design, and one of the reasons for their widespread appeal is their versatility in arrangement and functionality. These sofas offer a range of possibilities when it comes to configuring your seating area, allowing you to make the most out of your available space.

One of the key advantages of L-shaped sofas is their ability to fit snugly into corners, making them an ideal choice for smaller living rooms or apartments. By utilizing this corner space effectively, you can create a cozy and inviting seating area without sacrificing valuable square footage.

Furthermore, the unique shape of these sofas allows for various seating arrangements. You can place them against a wall or use them as room dividers to separate different areas within an open-concept living space. This flexibility enables you to transform your sofa from a traditional sitting area into a more social and interactive setting when hosting gatherings or entertaining guests.

In terms of functionality, L-shaped sofas often come with additional features such as built-in storage compartments or pull-out beds. These clever additions provide practical solutions for storing extra pillows, blankets, or even converting your sofa into a comfortable sleeping option for overnight guests.

The versatility in arrangement and functionality offered by L-shaped sofas makes them an excellent investment for any home. Whether you have limited space or simply want to add some style and convenience to your living room, these trendy pieces are sure to maximize comfort while adding flair to your decor scheme!

Tips for Choosing the Right L-Shaped Sofa for Your Space

When it comes to choosing the right L-shaped sofa for your space, there are a few key factors to consider. First and foremost, you'll want to take measurements of your room to ensure that the sofa will fit properly. There's nothing worse than falling in love with a sofa only to realize it won't fit through the door!

Next, think about the style and color of the sofa. L-shaped sofas come in a variety of designs, from sleek and modern to more traditional and cozy. Consider the overall aesthetic of your space and choose a sofa that complements it.

Comfort is also crucial when selecting an L-shaped sofa. Look for one with supportive cushions and plenty of seating space. You'll want something that can accommodate both family movie nights and entertaining guests.

Don't forget about durability either! Since an L-shaped sofa typically takes up a significant amount of space, you'll want to invest in one that will stand the test of time. Look for high-quality materials such as hardwood frames or sturdy metal construction.

Don't be afraid to try before you buy! Visit furniture stores or showrooms where you can see and test out different options firsthand. This way, you can get a feel for how comfortable each option is and whether it suits your needs.

By considering these tips when choosing an L-shaped sofa for your space, you can ensure both comfort and style in your living area!

Combining Comfort and Style: How to Accessorize Your L-Shaped Sofa

Accessorizing your L shape sofa dubai is the final touch that will bring your entire living space together in perfect harmony. By combining comfort and style, you can create a cozy and inviting atmosphere that reflects your personal taste.

Start by selecting throw pillows and blankets that complement the color scheme and design of your sofa. Opt for soft fabrics like velvet or faux fur to add an extra layer of comfort. Experiment with different sizes, shapes, and textures to create visual interest.

Next, consider adding a stylish coffee table or side tables near your L-shaped sofa. These pieces not only provide a convenient surface for beverages or snacks but also serve as decorative elements. Choose tables with unique designs or interesting materials to make a statement in your living room.

Lighting is another crucial aspect when accessorizing your L-shaped sofa. Install warm ambient lighting fixtures such as floor lamps or wall sconces to create an inviting ambiance. You can also incorporate task lighting with adjustable desk lamps for reading nooks within the seating area.

To complete the look, don't forget about artwork and decorative accents on the walls surrounding your L-shaped sofa. Hang paintings, photographs, or mirrors that resonate with your personal style to enhance the overall aesthetic appeal of the space.

Consider introducing plants into your living room decor scheme. Not only do they add freshness and natural beauty but they also purify the air inside your home. Select low-maintenance indoor plants like succulents or snake plants if you're not blessed with a green thumb.

By carefully selecting accessories that blend comfort and style seamlessly into one cohesive unit, you'll be able to maximize both functionality and visual appeal in relation to your L-shaped sofa setup.

So go ahead - get creative! Let these tips inspire you in transforming your living space into an oasis of comfort where style reigns supreme.

23
 
 

Hey there everyone, I am back with v1.1 of my Latex Template for making D&D Item Cards. I received one major point of feedback from multiple people in the fediverse: make an option for fixing the card dimensions for easier printing and distribution/storage at the table. So that is exactly what I did!

Now you can choose the (admitedly more user-friendly) option of letting the card length vary for digital distribution, or you can fix the card aspect ratio. The item art background and text backgrounds can also now be changed, and a number of options have been included for item art backgrounds, but you can use whatever images you want.

Example Cards

The fixed-size cards are 5:7 by default, the same as playing cards. They include a front and back side for longer item descriptions, but you will have to edit the text more carefully and decide where to split between front/back content.

For the printable card item art, I highly recommend using a PNG with a transparent background and modifying tcolorbox interior style to set your background. Ensure your backgound art is close to 7:5 for best results. You can also load your image as the background art if you'd like instead, again, making sure it is in 7:5.

24
25
 
 

Response from Martin Woodward, GitHub's VP of Developer Relations:

Sorry for the inconvenience @koepnick - while searching across all repos has required being logged in for a long time, when we enhanced the search capabilities earlier in the 2023 we had to extend this to repos as well (see https://github.blog/changelog/2023-06-07-code-search-now-requires-login/).

This is primarily to ensure we can support the load for developers on GitHub and help protect the servers from being overwhelmed by anonymous requests from bots etc.

view more: next ›