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
3 answers
263 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. ...
user avatar
3 votes
2 answers
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 ...
user avatar
  • 155
14 votes
5 answers
812 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 ...
user avatar
5 votes
2 answers
437 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 ...
user avatar
  • 53
10 votes
3 answers
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 ...
user avatar
  • 201
9 votes
1 answer
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 ...
user avatar
11 votes
7 answers
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 ...
user avatar
  • 450
5 votes
1 answer
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 ...
user avatar
  • 211
11 votes
3 answers
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 ...
user avatar
  • 111
8 votes
1 answer
2k views

Web-uploading of Cyrillic-named images

For web-uploading of Cyrillic-named images, I've written the script below: ...
user avatar
9 votes
3 answers
962 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 ...
user avatar
  • 91
1 vote
4 answers
4k 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 ...
user avatar
  • 143
6 votes
1 answer
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 ...
user avatar
24 votes
2 answers
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 ...
user avatar
8 votes
1 answer
840 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: ...
user avatar
  • 2,173
15 votes
2 answers
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 ...
user avatar
37 votes
5 answers
4k views

Sorting strings by length - functional Python

I'm trying to port this little F# snippet while staying pythonic: ...
user avatar
6 votes
3 answers
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: ...
user avatar
  • 169
15 votes
2 answers
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 ...
user avatar
  • 671
12 votes
4 answers
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: ...
user avatar
16 votes
4 answers
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'...
user avatar
  • 323
13 votes
8 answers
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. ...
user avatar
16 votes
7 answers
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 ...
user avatar
  • 169
25 votes
3 answers
868 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 ...
user avatar
  • 1,061

1
142 143 144 145
146