Linked Questions

77 votes
8 answers
15k views

I have a small 10-liner function that writes some data to a file using an std::ofstream. I did not explicitly call .close() at ...
dreamlax's user avatar
  • 1,158
15 votes
5 answers
4k views

I am currently learning C++ though Bjarne Stroustrup book Programming Principles and Practices using C++. Going through the drills, I am trying to purposefully write efficient and readable code (good ...
user36278's user avatar
  • 347
17 votes
3 answers
42k views

I have designed a small method to generate a salt for a password. All this does is create a random salt and does nothing to add it to the password. I have a few questions regarding my very simple ...
an earwig's user avatar
  • 445
10 votes
3 answers
292 views

I want to read a list of elements and pass a maximum of 99 elements to a function for some logical operations. I have tried this with an array as an example and this code was successful in achieving ...
09Q71AO534's user avatar
5 votes
5 answers
16k views

I wrote this function to check if a given string is in alphabetic order. How can I improve? ...
ChrisIkeokwu's user avatar
6 votes
7 answers
6k views

I was wondering if you would be willing to give me some suggestions on shortening this code. I feel as if the amount of if statements I have is a bit much. ...
Jesse Glover's user avatar
5 votes
2 answers
8k views

I'm reading serial data in binary format from a stream, and I'm not happy with how I extract the data because it takes so much operations to extract the binary data from a simple line of binary data. ...
Hedge's user avatar
  • 171
7 votes
3 answers
5k views

This is an updated version of my previous Java program that asks the user for a sentence and then separates the words and then converts the sentence into Pig Latin. My previous program was working, ...
user21563966's user avatar
4 votes
2 answers
76k views

I was wondering if you guys could point out any mistakes I've made in this program, and how to improve the code. It's a simple console-based Connect Four game. You use 0-5 to place your piece in the ...
RandomPersonGuyThing's user avatar
6 votes
4 answers
796 views

Our team is developing an educational website using ASP.NET webforms. We designed DAL & BAL classes and now I have some questions: Are DAL & BAL designed well? Would it be better using ORM (...
Oli's user avatar
  • 205
9 votes
1 answer
6k views

To practice with regular expressions, I wrote this basic template engine in JavaScript in addition to a simple test case to make sure it works correctly. I am wondering if there is any improvements I ...
Node.JS's user avatar
  • 429
3 votes
4 answers
2k views

For school we have to develop a product manager. The basic task is to add new products. A product has a name and a price. I know the one or other class is currently pretty empty but its planned to ...
Alexander's user avatar
  • 613
5 votes
4 answers
9k views

A similar question must have been asked a thousand times, but for the life of me I can't figure this out. I am new to Java and I want to create a programme that asks a user for his or her height and ...
Bram Vanroy's user avatar
8 votes
5 answers
514 views

I've spent my fair share of time criticizing other people's code on this site; but I'm finding out I'm kind of a hypocrite. Almost everything I've written so far has been some program whipped together ...
motoku's user avatar
  • 2,541
10 votes
1 answer
8k views

This is a an example application for testing some encryption and decryption functions in Golang. The functions encryptString(), ...
Joseph's user avatar
  • 219

15 30 50 per page