The beginner tag has no wiki summary.
0
votes
2answers
59 views
Can I improve my code?
I'm a PHP newbie and I have a question. Is there a better way to do this? A nice solution? I know this site isn't called RewriteMyCode but maybe I can get some tips at least
$list = ...
2
votes
0answers
63 views
Can someone review my coding technique?
it's my first try to make a real project and I'm not really sure about how i wrote my code
It's a project about a domotics control system based on arduino, nothing great, it's only for test myself ...
2
votes
2answers
145 views
Space Invaders Game (Java/Swing)
Recently I have been working on a project in Java for a class in high school: a Space Invaders game. I was wondering if anyone could review it and point out anything I could change to help improve ...
1
vote
0answers
28 views
Critique my COBOL code? I am completely unaware of best practices
My first COBOL program. I'd like to get a critique.
I am unfamiliar with best practices.
Particularly, I'd like to know about how to get the input and output to be more elegant and less dependent on ...
2
votes
1answer
314 views
First JavaScript game: Tic Tac Toe
I'm pretty new to programming in general, I work with MySQL at my job but my knowledge of scripting language is rudimentary at best. I've been learning JavaScript via Codecademy but I got bored and ...
4
votes
2answers
139 views
Check_sudoku in Python
I have just started to learn programming with Python. I have been going through several online classes for the last month or two. Please bear with me if my questions are noobish.
One of the classes I ...
0
votes
0answers
55 views
T-SQL BFS center node of undirected graph
I am trying to answer this question by using a breadth-first search from each node of the graph represented by the tables mapSolarSystems and mapSolarSystemJumps in the data dump at ...
2
votes
1answer
92 views
Python - Any suggestions for what i have so far
Alright, i put this together and it seems to work.
1channel.py -breakingbad 1
The Output (1-10):
(1) - Currently 3.80/5
(2) - Currently 3.50/5
(1 opens the link in browser)
if anyone has any ...
1
vote
1answer
71 views
how to indicate end of File? (EOF) Anyone for correction?
Hey, I am a beginner...I wrote this code about finding the end of file (EOF) It is written in C language! Help me make it correct..Anyone??
I want your reviews about this code! :) Thanx!
...
0
votes
1answer
73 views
Errors with binary search in Haskell
I just learned about Maybe in Haskell, so I decided to try to use it with a binary search.
Here's the function:
binarySearch :: (Ord a, Int b) => [a] -> a -> b -> b -> Maybe b
...
2
votes
1answer
76 views
Which of these two paren-matching functions is better?
I am currently trying to learn Haskell (after taking a Scala course on Coursera); but while I can write functions that do what I want, I worry that I am not learning to write idomatic/clean/performant ...
3
votes
2answers
164 views
Learning Python - Parsing s-expression structure into tree and summing the paths
I'm new to Python, just attempted the task at https://www.cs.duke.edu/courses/cps100/fall03/assign/extra/treesum.html
The part I found hardest was parsing the expression into the tree structure. I ...
3
votes
2answers
106 views
Bash Script(beginner) - Code Improvement Suggestions
I am writing a simple script to automate my regression testing. I am new to bash scripting and my goal is achieve the most efficient and clean code. I have written a simple function to allow me to ...
11
votes
3answers
1k views
Java TicTacToe (logic)
I'm currently studying java by myself,
the book I'm using (while very good)
lacks feedback (obviously), while trying to write this program I found myself solving most of the problems I've encountered ...
0
votes
1answer
45 views
Running my spaces->tabs program works as expected, piping into it doesn't [closed]
I've started to read through the K&R C-book and I came across an exercise where I had to make a simple application converting tabs to spaces. This worked properly, both when I ran it as ./detab ...
6
votes
2answers
249 views
Review my small Haskell program please
I want an experienced Haskeller to critique my code and offer changes/suggestions (so I can learn the idioms of the language and culture around Haskell).
I've been using a Tabula Recta for my ...
2
votes
1answer
136 views
First steps in Scala: does this look idiomatic?
I an a newcomer in the Scala world, and I would like some advice from more experienced people to find out whether what I am writing goes in the direction of idiomatic code.
In particular, I have to ...
4
votes
3answers
632 views
First Project: JFrame Class
This is my second "first" attempt at starting Java. My first was cut short when I had to go back to a PHP project that required my immediate attention. But perhaps that was a good thing. I learned ...
8
votes
3answers
2k views
Basic user registration code in PHP
My first attempt at a user registration code.
Login.php defines database log in variables (e.g. Database name, Table name, etc)
Header.php connects to the database.
I used ctype_alum for security of ...
3
votes
4answers
199 views
Optimize beginner Python loop
I'm a rank beginner in Python, and I am working my way through various relevant OpenCourseware modules. In response to the prompt
Write a procedure that takes a list of numbers, nums, and a ...
0
votes
1answer
57 views
starting php easy question [closed]
Trying to Echo Success with an If Statement
<?php
$hour = 13
if ($hour > 12 && < 14) dolunch(echo "success");
?>
Thanks in Advance
2
votes
1answer
963 views
BMI calculation
Im very new to C++, and would like you all to review the source code I wrote for a program that calculates the users BMI and loops the program back to the start if the user needs to do additional ...
6
votes
1answer
232 views
F# Djikstras shortest path implementation
I'm just getting my feet wet with F#, by implementing some simple algorithms. First up: Djikstras shortest path.
There is one piece I've written in this code which confuses me as to why it works: the ...