Tagged Questions
4
votes
2answers
51 views
Short XML parser
This is my first code in C# ever. It compiles and works as intended (not complete), but I want to see what I'm doing right and wrong as a first-timer.
...
2
votes
1answer
48 views
Parsing Solr log files
I am kind of new to programming. Picked up some Perl about a year ago and now learning some Python. I am pretty confident in Perl, but Python seems un-natural to me.
I wrote a little script that ...
0
votes
1answer
40 views
Getting data from the server via JSON callback and parsing the data to HTML
I'm pretty new to web development with JS and was wondering if anyone can tell me how I can improve my code. I just feel like when it comes to maintainability my code would be very difficult to ...
3
votes
1answer
88 views
Parsing version number from a Java source file
I'm extracting the version number from a file like this one. It works, but I find it clumsy and longer than probably needed.
I'd also appreciate some sanity checks as long as they don't make the code ...
5
votes
2answers
81 views
Social Media Hashtag Splitting
I decided to try out Python (3.x) two or so weeks ago, and this is my first real script using it. The program I've written below is slow, clunky, inefficient, inaccurate, and probably poorly coded! ...
5
votes
2answers
97 views
Optimizing simple xHTML parser
I'm writing a simple xHTML parser which parses a data without nested tags.
Example input code will look like:
...
3
votes
1answer
43 views
getword that properly handles undersores, string constants, comments, or preprocessor control lines
Our version of getword does not properly handle underscores, string constants, comments, or preprocessor control lines. Write a better version.
This is the exercise 6-1 and can be foud on K&R ...
9
votes
2answers
780 views
Math expression solver
Recently I've stumbled upon an interesting challenge for me.
You should develop C application, that solves math expressions. Operations such as (+,-,*,/) should be supported, as well as (cos, sin, ...
6
votes
2answers
4k views
Read an input text file and store the tokens in 2 different arrays
I am very new to Java so please ignore if there are obvious mistakes. If my question seems redundant then please guide me towards the correct link. However, I have surfed enough in order to find the ...
6
votes
2answers
103 views
Educational “Library” project
The assignment is very open and we have only 4 things it needs to cover:
File write and read
Use a Struct
Export into HTML format
use a common sorting algorithm
so I've decided to create a little ...
7
votes
2answers
138 views
Hello Java World ~> Parsing a Sudoku Grid
This is my first, very-very first attempt at java. I haven't started tackling the actual resolution of the sudoku puzzle (not even sure where to start, haven't looked at other weekend-challenge ...
5
votes
1answer
276 views
Review Simple Logparser
This is my first try with Python. I wanted to parse some Log4J so I thought it a good opportunity to write my first Python program.
The format of the logs I deal ...
2
votes
2answers
136 views
Parsing argv with while-switch construct
I've been thinking about how to create a robust function that parses the command line arguments for valid filenames. I came up with a while-switch construct because that allows me to reduce redundancy ...
3
votes
1answer
326 views
2
votes
1answer
100 views
New book parser
I know that this is a complete mess and does not even come close to fitting PEP8. That's why I'm posting it here. I need help making it better.
...
12
votes
1answer
349 views
Parsing numbers from equations into strings
This is my first code in C++. Since I'm new to the language, I'm just looking for pointers on what can be made better. I tried to cut out unnecessary stuff, but there are some comments in there. I ...
1
vote
1answer
176 views
Converting Bash commands into Windows cmd commands
I have the following code that converts a couple of bash commands into Windows cmd commands, as well as adding some commands. This is only my second day programming ...
16
votes
5answers
1k views
Parse webpage and save fetched images to a directory
I had a task for a programmer position which I failed. I am a newbie programmer and I accept that. The only problem is that employer never told me what the actual problem with the code is. So maybe ...
1
vote
1answer
164 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 ...