In computer science, the syntax of a programming language is the set of rules that define the combinations of symbols that are considered to be correctly structured programs in that language.

learn more… | top users | synonyms

0
votes
0answers
10 views

BEM syntax for image naming? [on hold]

Today I was thinking about how the structure/naming convention of my images in the project's folder is and how to improve it or make it more readable. Should we use BEM sytnax (or any other) for ...
2
votes
2answers
29 views

What do you think about this custom syntax? [closed]

I'm making a programming language and I've got the basis of a virtual machine working. The next step to is design the actual syntax for the language. I'd just like to know if whether the example ...
7
votes
1answer
86 views

interactive slider

Task: Create an interactive slider that allows the user to view a given image gallery. Slider controls: See previous slide See next slide Quick navigation through the images / Paging - ...
9
votes
3answers
181 views

Updating Grid on Webpage (new version)

Task: Draw a grid with a given number of rows and columns. Each cell can be any color. The same grid should also be updated at a predetermined time interval. The grid should cover the entire ...
5
votes
2answers
113 views

Updating Grid on Webpage

Task: Draw a grid with a given number of rows and columns. Each cell can be any color. The same grid should also be updated at a predetermined time interval. The grid should cover the ...
0
votes
1answer
57 views

What are the drawbacks of DRY input validation configuration?

I have designed the following input validation implementation with one goal: DRY. I'd like to know whether it is intuitive and what are the possible shortcomings. ...
7
votes
2answers
302 views

C-style language lexer for a syntax highlighter

I'm working on implementing a syntax highlighter for a simple text editor I've been working on. To do this, I need a simple lexer for various languages (I don't need a full one - I'm only interested ...
1
vote
2answers
84 views

python array literal syntax sugar similar to perl and ruby

Background Python (version 2.7.2) Problem You want to specify an array in your code. You want to use the 'syntax sugar' available in Ruby and Perl. You are a fanatic about readable code but also ...
0
votes
1answer
45 views

Cleaner RegEx Syntax

I've got information that is imported from a CSV file that my site grabs every day with PHP. I'm just learning RegEx so I'm able to do what I need to do but am looking to get more efficient with my ...
1
vote
1answer
67 views

Manage Case Statement with (Int, long, short, double…)

I have the following case statements that has to be modified to fit these cases: Dec, Double, ...
1
vote
1answer
95 views

Color fading function

I found this old color fading function in my snippets folder and would like to implement it to one of my projects. It can be used to fade one color to another. It's a very long one-liner: ...
7
votes
1answer
398 views

A C++ PEG parser generator

I wrote a C++ PEG packrat parser generator and would love to get some feedback on the code and/or syntax. I currently use the << operator for defining grammar ...
-1
votes
1answer
533 views

arduino timer to print array of serial data at specific intervals, syntax problem [closed]

I was wondering if you guys could help me solve an arduino Coding problem. I've simplified the code to highlight the issue that I'm having. I've created a program to read streaming serial data to an ...
10
votes
3answers
514 views

Please review my exercise about linked lists

I'm learning C++ by myself and therefore I have no direct access to a mentor. This is the reason why I'd love if you guys could take the time to do a peer code review. I am very much aware, as per ...
6
votes
1answer
174 views

Improve my little syntactic hack

Current best practice for using a lock_guard looks like this: ...
3
votes
1answer
200 views

JavaScript/PHP file uploader

I'm writing a JavaScript/PHP file uploader and I want to start this project off on the right track. I've started with this, a JavaScript Uploader object which will ...
2
votes
2answers
215 views

My language, gecho

I wrote a language in C, dubbed gecho. The code can be found at http://github.com/tekknolagi/gecho/tree/testing I'm writing this for a purely educational reason ...
6
votes
6answers
310 views

Explicit Function Notation in Perl

I've gone back and forth a few times recently on my Perl coding style when it comes to module subroutines. If you have an object and you want to call the method bar ...