Understanding Prime Numbers Better And Code A Decent Primality Test
Dream.In.Code
by
2y ago
( THIS IS A SUMMARY OF THE POST. CLICK THE TITLE TO READ THE REST AND JOIN THE DISCUSSION ..read more
Visit website
Dream.In.Code Shutting Down
Dream.In.Code
by
2y ago
Hi Everyone, I started Dream.In.Code 21 years ago when I was in high school. Since then the site grew to be one of the premier programming help sites on the internet in the mid-2000's being the #1 site on google for dozens of "[Language] Help" and "Programming Help" searches with millions of visitors a month. We've had an incredible team of moderator and admins over the years that have kept the site clean, organized, and helped with thousands and thousands of questions. Dream.In.Code was originally just me learning how to install a forum and it turned in to a thriving community. Over the years ..read more
Visit website
Applying Functional Programming Ideas To OOP
Dream.In.Code
by
2y ago
The ideas of functional programming have been around for a long time. This paradigm has several key principles that, while not exactly compatible with the Object-Oriented Programming (OOP) paradigm, do have credibility and advantages in their own right. Is functional programming better than OOP? In some ways yes, but in some ways no. It really depends on the problem you are trying to solve and the best way to think about the problem. In this article I will outline why I think applying some of the basic ideas of functional programming can only strengthen your OOP code if done correctly. These a ..read more
Visit website
Using Multiple Submit Buttons With A Single Form
Dream.In.Code
by
2y ago
After a while of web development, developers usually come across a project where they need to create multiple submit buttons with a single form. This usually occurs right when they have a table that has several rows and each row has a couple buttons to edit or delete the row. These rows might have been added dynamically using Javascript or they could have been simply created sever-side as the table is generated from a list of records in a database. When one of the buttons is clicked, you usually need to know what button was clicked and take an action on it. In this post we will take a look at ..read more
Visit website
Creating Enumerations In PHP
Dream.In.Code
by
2y ago
If you are experienced in any of the major programming languages (.NET, Java, Python etc.) you are probably familiar with the idea of "Enums" or "Enumerations". These are used to help increase readability by assigning readable names to a collection of static values. It is much easier to read "Color.Red" than seeing "#FF0000" or "1". To expand on this idea imagine writing an if statement where you would compare a hex value to the color red.... if ("#FF0000" == Color.Red) { // Do stuff } seems to make a bit more sense and straight forward. Or perhaps you are comparing a value against multiple ca ..read more
Visit website
Exception Handling With A Level Of Abstraction
Dream.In.Code
by
2y ago
One of the common topics you always see in programming articles is the one about proper use of exception handling and the try/catch mechanism (if supported by your language of choice). As you absorb the wisdom of the sacred text, looking for that nugget of information about how to do it properly, you almost always come across the idea of abstraction. The incantation often reads something like "Throw exceptions at the proper level of abstraction that makes sense." What do they mean by that? How do I know if I am throwing at the correct level? What do they even mean by level? I will break it dow ..read more
Visit website
Mirroring SSL Kafka Clusters With Brooklin
Dream.In.Code
by
2y ago
Linkedin was the birthplace of Apache Kafka. Last year they also open sourced a project called brooklin. One of its features is the ability to mirror a Kafka instance. The documentation is sparse and they are selectively responsive in their Gitter chatroom. Their Kafka mirroring example is with PLAINTEXT communications which no real instance is running unless its behind a firewall. After digging through the code, here is the correct way to use Brooklin to mirror a kafka instance that is utilizing SSL connections: kafkaTransportProvider - this is the destination server producer There is no doma ..read more
Visit website
Card Racing
Dream.In.Code
by
2y ago
Software Visual Studio 2019 Concepts c# .NET Core 3.1 modulus Github Link: https://github.com/m...231/CardRacing/ This spawned from a video of a card game seen here: https://imgur.com/gallery/CfzqrTn The rules seem fairly straight forward. Rules: Standard 52 card deck. Arrange the aces in a horizontal line face up. Shuffle the deck. Pull out 5 cards, face down, and arrange them vertically (perpendicular) to the aces. Start one row above the aces. Each turn consists of: -- pulling the top card from the draw pile, -- revealing the card -- move the corresponding suit's ace up one row. The win con ..read more
Visit website
Razor Pages, Core 3.1 - Basic Validation
Dream.In.Code
by
2y ago
Software Visual Studio 2019 Concepts Razor .NET Core 3.1 Server Side Client Side Javascript Github Link: https://github.com/m...idation_Example This is quick review of the various types of validation Razor provides in the DOTNET Core pages. I imagine there are many other options and ways to do this, but in my sphere of work these are the top five. At the heart of the project is the 'why'. A webpage can be a simple vehicle for displaying information, or it can allow for user to input information to be stored, emailed, or acted upon. In the latter part it is a good idea to consider adding in pro ..read more
Visit website
This Was My Very First Helpful Forum. What Was Yours?
Dream.In.Code
by
2y ago
Good day dreamincoders. I have been in this for quite a while now, been to shit of when a typhoon hit my country really way back 2013 and I even had to do lumber jack works just to feed my family, no harm meant to all our beloved lumber jacks but my profession was more on computers. Imagine working on your computer for almost every hour of the day for your beloved company and then one day they cannot sell or get any profit from anything. Kudus to my previous employer who didn`t even consider laying off any employee during those hard times. They didn`t even had enough to feed their families but ..read more
Visit website

Follow Dream.In.Code on FeedSpot

Continue with Google
Continue with Apple
OR