Questions tagged [beginner]

Add this tag to your question to indicate that you are new to the language of your code. This will often be taken into consideration by reviewers when assessing your code.

Filter by
Sorted by
Tagged with
4
votes
2answers
902 views

Optimizing this 'print up to the nth prime number' script

I've been seeking to optimize this algorithm, perhaps by eliminating one of the loops, or with a better test to check for prime numbers. I'm trying to calculate and display 100000 prime numbers has ...
-2
votes
2answers
301 views

Can I improve this code using delegates?

I guess I might use delegates. But I'm not certain if I can apply for it. Sorry if the code is a mess. I'm a beginner and am still learning. For that reason, I need a little of help to improve ...
3
votes
1answer
16k views

XML schema parsing and XML creation from flat files

I am new to Python and had to create a schema parser to pull information on attributes and complex types, etc. and then convert data from flat files into the proper XML format. We are processing a lot ...
8
votes
4answers
3k views

Calculate sum, mean, sum of squares, and standard deviation of array elements

Also, I've commented out a function I was trying to do to count the elements of an array; I realized that is not possible due to the fact that I won't be be able to return a NULL on an array. ...
0
votes
2answers
2k views

Command line tool for extracting, searching, and converting

I just completed my first real application (command line app). It's simple, but I had no prior knowledge of Python. Everything was hit and miss, with many Python books and help from those in this ...
1
vote
1answer
227 views

Parsing XML file containing some events

I'm a beginner and have written my first Python module that parses a XML file containing some events and prints them out to stdout as JSON. I would appreciate some ...
12
votes
4answers
514 views

Practicing HTML Tables

I am trying to learn by doing. Here is the first problem that I have solved. I have actually not done it perfectly. The table header should cover both the text and the image but it is only above text. ...
4
votes
3answers
261 views

Introductory HTML exercise

I have started learning HTML. Here is one of the very basic HTML pages I have written. I would appreciate advice about how to write code especially regarding indentation. ...
3
votes
2answers
21k views

PHP - create a new user into a db using MVC framework

I'm working on the registration process for new users of a small web app, and as this is largely a learning project I'm doing it from scratch. Here is my user class: Class_user.php ...
14
votes
5answers
805 views

Chemistry titration calculator

This is a Perl program intended for my chemistry class. Since I am just learning to write in Perl, which is my first language, can you tell me if you think that this is well written? If not, could you ...
5
votes
2answers
434 views

Validating username fields and showing CAPTCHA

I'm new to coding, and especially to OOP PHP. I'll highly appreciate if you expert programmers could review following code and give me your opinion to make it better. Also, how you see this code, is ...
10
votes
3answers
34k views

Caesar Cipher program in C

I'm a beginner-intermediate C++ programmer, and I never used or understood C input & validation. I just always used C++ streams. Anyway, I just want code critique, as I have never used the C ...
9
votes
1answer
5k views

Binary tree in Python

As a Python newbie, I have coded this binary tree as best as I could to follow Python idioms. However, I know it is still very verbose and not up to standard. I would like Python experts to tear this ...
11
votes
7answers
4k views

Rock Papers Scissors in Python

I am a newbie to Python and have started object-oriented programming recently. I have implemented a "Rock Paper Scissors" application in OOP. I would like for you to evaluate my code, and tell me ...
5
votes
1answer
4k views

Transactions and locking in Rails 3

I am new to Rails and have a system that needs to process transactions. A user can enter a transaction to which one or more users are tied. These users owe some amount of money to the person making ...
11
votes
3answers
6k views

Ruby Koans Proxy Project

I've just finished the Ruby Koans and one of the last projects was creating a Proxy class that sends methods to another class. I was wondering whether you would change anything about my solution (if ...
8
votes
1answer
2k views

Web-uploading of Cyrillic-named images

For web-uploading of Cyrillic-named images, I've written the script below: ...
8
votes
3answers
959 views

Canvas Drawing/Animation

I am trying to learn how to write good, clean, and efficient JavaScript. I consider myself a novice, at best, in JavaScript. Any comments are appreciated. In an effort to become a better JavaScript ...
1
vote
4answers
3k views

How to make this TLV Reader class look nicer and work smoother?

I am quite new to Java and was trying to improve my skills a little by doing a binary file reader. The choosen one was the TLV format. I've chosen that one for being reasonably simple, but not so ...
6
votes
1answer
4k views

Interfacing with RESTful web services

The following working function seems a bit hacky to me as it has been pieced together from a handful of (probably poorly written) online tutorials, and I want to know if there is a better (or more ...
24
votes
2answers
20k views

Texas Hold'em in Java

I have been a programmer for 12 years, mainly ERP software and C development and am looking to make a career/specialty change to Java. I've read it countless times if you want to learn a new language ...
8
votes
1answer
837 views

First attempt at a SVG parser

I figured it's about time to jump into some Haskell, so here's a first attempt at an oddly specific SVG parser: ...
15
votes
2answers
5k views

Dealing with Entity Framework's lack of enum support

I'm using Entity Framework Code First CTP 5 for a current project. There is still no enum support in Entity Framework so this is what I am using in order to avoid having magic numbers or casts ...
37
votes
5answers
4k views

Sorting strings by length - functional Python

I'm trying to port this little F# snippet while staying pythonic: ...
6
votes
3answers
16k views

Data validation for preventing blank entries

I want to create a validation wherein blank entries will not be accepted. So if I call this code: ...
14
votes
2answers
2k views

Clickable icon for expanding/collapsing content

The general idea of the code is that I have a + or - icon (".trigger") that is click-able ...
12
votes
4answers
5k views

Displaying the multiples of a given number

Here's a method I made that's supposed to print out multiples of any numbers up to any quantity: ...
16
votes
4answers
16k views

Simple C Implementation for Unix "tail" Command

The following is like the Unix "tail" program. It was assigned as an exercise in Chapter 5 of Kernighan & Ritchie's The C Programming Language. Because I've only read through most of Chapter 5, I'...
13
votes
8answers
6k views

"Hello, world!" program using a class for printing

Please take a look at my program and let me know how I can improve it. ...
16
votes
7answers
2k views

Personal website, done after one week of learning HTML and CSS

I've just started learning CSS/HTML a week ago and I made a quick site today. It looks pretty good, but I think that I reused/wrote some really messy CSS. This is because I haven't used the ...
25
votes
3answers
864 views

Music info model

I'm learning Django as I go. I know this model is missing user authentication, registration, comments/comment threading, and voting. But this is my starting code for my model. What are some of the ...

1
139 140 141 142
143