You are not logged in.

#1 2013-11-01 12:45:00

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 201

New to web programming. Need advice.

Hello,

I am currently in the process of developing a new application at work that requires a web interface. I not at all familiar with any type of web development short of creating a Geocities page. However, I am familiar with C++ and C #, so I have some type of limited programming background.

My question is, is there anything comparable to ASP.NET to develop basic web pages? From what I see, I like the built in features and WYSIWYG approach that you get when developing ASP.NET pages in Visual Studio, however, I want to lean towards a comparable open source alternative. What are your suggestions? I don't need to do anything too intense. Just a few simple pages to interface with a MySQL database and display some graphs and pictures.

Offline

#2 2013-11-01 12:54:19

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: New to web programming. Need advice.

WYSIWYG  is evil and leads to horribly crappy pages, you should rid yourself of that vice as fast as possible.

Anyway, my suggesting is learning html + python + pgsql. There are lots of good frameworks for python, like eg Pyramid, or if you want something more orm/entepricy: zope or django


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2013-11-01 12:58:21

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 201

Re: New to web programming. Need advice.

Why don't you like WYSIWYG?

I will look into those. You have gained my trust simply with your avatar. Thank you.

Offline

#4 2013-11-01 13:27:11

spcode
Member
Registered: 2013-10-26
Posts: 27

Re: New to web programming. Need advice.

IMO, LAMP is the way to go.

Offline

#5 2013-11-01 14:11:30

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 201

Re: New to web programming. Need advice.

I like the LAMP idea, but I fear that my lack of artistic ability would come into play when designing the site itself.

Offline

#6 2013-11-01 16:47:36

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: New to web programming. Need advice.

Please, the world does not need more horrible php powered sites.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2013-11-01 16:49:13

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: New to web programming. Need advice.

nadman10 wrote:

Why don't you like WYSIWYG?

I will look into those. You have gained my trust simply with your avatar. Thank you.

The WYSIWYG editors generally generates horrible html, often not complying to the standards either, and with no usability features at all (sane tagging of images, links etc)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2013-11-01 17:04:43

spcode
Member
Registered: 2013-10-26
Posts: 27

Re: New to web programming. Need advice.

Mr.Elendig wrote:

Please, the world does not need more horrible php powered sites.

PHP isn't as bad as some (including you) may suggest. Yes, it has it's flaws, but doesn't everything else have them?

Last edited by spcode (2013-11-01 17:05:27)

Offline

#9 2013-11-01 17:08:44

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: New to web programming. Need advice.

PHP requires much more work than most other alternatives to not end up as a insecure hard to maintain mess.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2013-11-01 17:19:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,346

Re: New to web programming. Need advice.

I really like django.    You program in Python; it makes extensive use of separating the design from the content. 

It runs well on LAMP.  Also, if you don't have any compunction with Google,  you can use their App engine to host your site for free (for a low traffic site) or for pennies if you need a bit more.  Note, I've no association with Google, but I do use them to host a site.   In my case, the site is used to allow guests at a gymnastics meet to see the scores on their portable devices as soon as the judges enter scores into the scoring computer.  Data are pushed out, the site serves the webpage, generates a dynamic xml page, and the device runs javascript to keep the pages up to date.  I developed this over a weekend.  clubchampionscores.appspot.com


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2013-11-01 17:42:45

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 201

Re: New to web programming. Need advice.

Thanks for the suggestions. I think I'm going to look into django. I'll check out some youtube videos this weekend to try and get myself started unless anyone has a better suggestion.

ewaller, I looked into Google App Engine and it it seems to be a little too limited for my needs.

EDIT: With django, will I be able to create dynamically updating content? I will want certain values to constantly update without the user to have to refresh the page.

Last edited by nadman10 (2013-11-01 17:49:29)

Offline

#12 2013-11-01 18:00:30

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,346

Re: New to web programming. Need advice.

nadman10 wrote:

With django, will I be able to create dynamically updating content? I will want certain values to constantly update without the user to have to refresh the page.

Yes, using Ajax techniques on the client side.  Take a look at the source for the page I linked.  The Javascript does asynchronous queries back to the host for an xml page.  That xml is generated dynamically in Python on the server side.  If you were to watch the site I linked during a meet, the scores appear in the matrix as they are posted to the scoring system.  Often the web clients update even before the scoreboards in the venue display the scores.

Edit:  For reference, the xml page url is http://clubchampionscores.appspot.com/gymnasts.xml.  The client reloads that periodically and looks for changes.

Edit2: For further reference, here is the server side:

import cgi
import os
from google.appengine.ext.webapp import template

from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.ext import webapp
from scoreview import Gymnast
from scoreview import Active

def strToFloat (x):
    return str(x).replace('"','')
def strToScore (x,mask):
    if mask: return '---'
    return strToFloat(x)

c = Active.all()
current=c.get()
print("<?xml version='1.0' encoding='ISO-8859-1'?>")
print('<MEET>')
print('<MEETNAME>'+current.Meet+'</MEETNAME>'  )
print('<SESSION>'+current.Name+'</SESSION>')
q = Gymnast.all()
q.filter('SessionNumber =',current.Session)
q.filter('Meet =',current.Meet)
for record in q.fetch(1000):
    print('<GYMNAST>'  )
    print('<NAME>'+record.First.replace('"','')+" "+record.Last.replace('"','')+'</NAME>'  )
    print('<GYM>'+record.Gym.replace('"','')+'</GYM>'  )
    print('<NUMBER>'+record.Number.replace('"','')+'</NUMBER>'  )
    print('<VAULT>'+strToScore(record.Vault,int(record.Mask) & 1)+'</VAULT>'  )
    print('<BARS>'+strToScore(record.Bars,int(record.Mask) & 2)+'</BARS>'  )
    print('<BEAM>'+strToScore(record.Beam,int(record.Mask) & 4)+'</BEAM>'  )
    print('<FLOOR>'+strToScore(record.Floor,int(record.Mask) & 8)+'</FLOOR>'  )
    print('<AA>'+strToScore(record.AA,0)+'</AA>'  )
    print('</GYMNAST>'  )
print("</MEET>\n")

Last edited by ewaller (2013-11-01 18:18:14)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#13 2013-11-01 18:30:07

imetallica
Member
From: Rio de Janeiro, Brazil
Registered: 2011-06-04
Posts: 4

Re: New to web programming. Need advice.

You can always use Java for web programming. Java Enterprise Edition is your way to go.

Offline

#14 2013-11-01 18:41:39

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 201

Re: New to web programming. Need advice.

ewaller: Fantastic. Thank you.

imetallica: I think I'm going to stick with django.

Offline

#15 2013-11-01 21:38:46

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: New to web programming. Need advice.

I'm not too familiar with Django, but I'm a big fan of Jekyll, a Ruby-based framework.  It generates static sites (I  believe Django does as well), but allows you to use dynamic templates with programming logic to do so.  In my very subjective personal opinion, if you're looking for "basic web pages," go static.  It seems to me too many people these days develop dynamic sites just because everybody else is doing it, even if it's totally unnecessary.

Offline

#16 2013-11-02 07:51:38

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: New to web programming. Need advice.

@ANOKNUSA

I agree with you. But Django does much much more than just serving static pages. In fact, if he wants dynamic content, then Jekyll is totally unsuited as it was primarily designed as a static Blogging engine.

Last edited by orschiro (2013-11-02 07:52:13)

Offline

#17 2013-11-02 20:40:39

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: New to web programming. Need advice.

Right, it totally depends on what one wishes to do with a site. Jekyll isn't just a blog engine, but it's definitely best-suited for building a site dedicated just to delivering information.  Django can go beyond those limitations; I just think it's important for folks to ask whether it's necessary to do so. It's far too common for folks to dive head-first into web design/development and end up following the general trend of making overly complicated web sites that function like integrated applications.  It looks as though Django might actually be an effort to mitigate that though, so I might have found a new project. wink

Offline

Board footer

Powered by FluxBB