• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:53
CET 20:53
KST 04:53
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
BGE Stara Zagora 2026 cancelled7Blizzard Classic Cup - Tastosis announced as captains12Weekly Cups (March 2-8): ByuN overcomes PvT block4GSL CK - New online series18BSL Season 224
StarCraft 2
General
BGE Stara Zagora 2026 cancelled BGE Stara Zagora 2026 announced ByuL: The Forgotten Master of ZvT Terran AddOns placement Blizzard Classic Cup - Tastosis announced as captains
Tourneys
StarCraft Evolution League (SC Evo Biweekly) https://www.facebook.com/BubaSocks.Official/ [GSL CK] Team Maru vs. Team herO WardiTV Team League Season 10 Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 516 Specter of Death Mutation # 515 Together Forever Mutation # 514 Ulnar New Year
Brood War
General
ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Gypsy to Korea Are you ready for ASL 21? Hype VIDEO
Tourneys
[Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here! ASL Season 21 Qualifiers March 7-8
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Zealot bombing is no longer popular?
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread PC Games Sales Thread No Man's Sky (PS4 and PC)
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Mexico's Drug War NASA and the Private Sector
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Movie Discussion! [Req][Books] Good Fantasy/SciFi books [Manga] One Piece
Sports
Formula 1 Discussion 2024 - 2026 Football Thread General nutrition recommendations Cricket [SPORT] TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Gaming-Related Deaths
TrAiDoS
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2549 users

The Big Programming Thread - Page 792

Forum Index > General Forum
Post a Reply
Prev 1 790 791 792 793 794 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
November 04 2016 03:52 GMT
#15821
On November 04 2016 08:11 billy5000 wrote:
One of the things that bothers me is how I should break my code into functions, objects, etc. Basically how I should design my code. Not necessarily design patterns per se, but refactoring and OOP in general. Is there a good book or article that touches this topic? For the most part, I know how to do it, but I just don't know the best way to do it.


Not sure what else there is other than learning from experience.

https://blog.codinghorror.com/code-smells/

My personal one is avoid keeping state as much as possible. Avoid global state, avoid state variables, minimize member variables, prefer method parameters.
There is no one like you in the universe.
Manit0u
Profile Blog Joined August 2004
Poland17692 Posts
November 04 2016 07:31 GMT
#15822
It comes with experience I guess.
Time is precious. Waste it wisely.
RoomOfMush
Profile Joined March 2015
1296 Posts
November 04 2016 08:23 GMT
#15823
On November 04 2016 08:11 billy5000 wrote:
One of the things that bothers me is how I should break my code into functions, objects, etc. Basically how I should design my code. Not necessarily design patterns per se, but refactoring and OOP in general. Is there a good book or article that touches this topic? For the most part, I know how to do it, but I just don't know the best way to do it.

On top of the things Blisse said I would suggest you try to break your code down into closed systems that work on their own. Ttry to make things as reuseable and more generic (but not too generic or you will never get done).

Break big GUI's into smaller components that work on their own and are interchangeable. Break big structures into substructures that can be used in different parts of the program, etc.
The programming patterns really help with this. The observer pattern allows you to create a very generic way of communication between subsystems without the need to define much beforehand. The strategy pattern helps with enhancing a subsystem without the need to change the code, etc.
Manit0u
Profile Blog Joined August 2004
Poland17692 Posts
November 04 2016 08:56 GMT
#15824
Could you guys point me to some resources where you can learn a bit more advanced Python?

I don't need to learn the basics and I don't want to waste my time on more courses which make you start with hello world programs, go through how loops work and all of that.

I would also like to know why is using classes within classes so prominent in Python...
Time is precious. Waste it wisely.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2016-11-04 09:03:45
November 04 2016 09:00 GMT
#15825
--- Nuked ---
Prillan
Profile Joined August 2011
Sweden350 Posts
November 04 2016 09:20 GMT
#15826
On November 04 2016 17:56 Manit0u wrote:
I would also like to know why is using classes within classes so prominent in Python...

It is?
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
mantequilla
Profile Blog Joined June 2012
Turkey781 Posts
November 04 2016 09:37 GMT
#15827
I'm a web app developer (from scratch with code) but got suggested using a cms for a customer with simple needs, they need to make announcements etc on their website, some static info and links to other systems. I'm alien to whole cms thing.

when I'm making a website for a customer using a cms, am I supposed to write code regularly? Is the online content editing thing for the non technical customer to just update the site content?

I quickly tried to put a language selector on top of the main page using couple of cms'es, and they suggested me to write server side code (jsp) to put it there. I thought I'd be just drag-dropping a ready lang selector component on the online page
Age of Mythology forever!
Manit0u
Profile Blog Joined August 2004
Poland17692 Posts
November 04 2016 09:37 GMT
#15828
On November 04 2016 18:20 Prillan wrote:
Show nested quote +
On November 04 2016 17:56 Manit0u wrote:
I would also like to know why is using classes within classes so prominent in Python...

It is?


Whenever I view sources for some open source projects I see subclasses in almost all of them. And multiple classes per file is pretty much standard too.
Time is precious. Waste it wisely.
Khalum
Profile Joined September 2010
Austria831 Posts
November 04 2016 09:45 GMT
#15829
If you interpret files as modules having several classes per file isn't so strange.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2016-11-04 10:26:46
November 04 2016 10:21 GMT
#15830
--- Nuked ---
mantequilla
Profile Blog Joined June 2012
Turkey781 Posts
November 04 2016 11:00 GMT
#15831
On November 04 2016 19:21 Nesserev wrote:
Show nested quote +
On November 04 2016 18:37 mantequilla wrote:
I'm a web app developer (from scratch with code) but got suggested using a cms for a customer with simple needs, they need to make announcements etc on their website, some static info and links to other systems. I'm alien to whole cms thing.

when I'm making a website for a customer using a cms, am I supposed to write code regularly? Is the online content editing thing for the non technical customer to just update the site content?

I quickly tried to put a language selector on top of the main page using couple of cms'es, and they suggested me to write server side code (jsp) to put it there. I thought I'd be just drag-dropping a ready lang selector component on the online page

There's usually a lot of content on a website that the owner of a website should be able to change without the intervention of any web developer; a CMS provides the interface that allows him/her to do this.

Does it make sense that a web developer has to be contacted every time you want to add a post on a blog, change the banner of your website, etc.? - No, so that's why you use a CMS. Not just for simple websites, but for almost any website.

If the question to "should the owner be able to change this?", you need a CMS.

And it's not just for the owner, even the developer can benefit; sometimes it's the most convenient to hook something up to the CMS beforehand, instead of manually changing it in the HTML later on.



I know-understand when a cms is needed, that wasn't the thing I was trying to ask. I wanted to ask how much programming is involved with me. Am I supposed to write code regularly, or is it a rare task only needed with advanced cases? I never worked with them so have no idea what the usual workflow is :/
Age of Mythology forever!
Manit0u
Profile Blog Joined August 2004
Poland17692 Posts
November 04 2016 13:29 GMT
#15832
On November 04 2016 20:00 mantequilla wrote:
Show nested quote +
On November 04 2016 19:21 Nesserev wrote:
On November 04 2016 18:37 mantequilla wrote:
I'm a web app developer (from scratch with code) but got suggested using a cms for a customer with simple needs, they need to make announcements etc on their website, some static info and links to other systems. I'm alien to whole cms thing.

when I'm making a website for a customer using a cms, am I supposed to write code regularly? Is the online content editing thing for the non technical customer to just update the site content?

I quickly tried to put a language selector on top of the main page using couple of cms'es, and they suggested me to write server side code (jsp) to put it there. I thought I'd be just drag-dropping a ready lang selector component on the online page

There's usually a lot of content on a website that the owner of a website should be able to change without the intervention of any web developer; a CMS provides the interface that allows him/her to do this.

Does it make sense that a web developer has to be contacted every time you want to add a post on a blog, change the banner of your website, etc.? - No, so that's why you use a CMS. Not just for simple websites, but for almost any website.

If the question to "should the owner be able to change this?", you need a CMS.

And it's not just for the owner, even the developer can benefit; sometimes it's the most convenient to hook something up to the CMS beforehand, instead of manually changing it in the HTML later on.



I know-understand when a cms is needed, that wasn't the thing I was trying to ask. I wanted to ask how much programming is involved with me. Am I supposed to write code regularly, or is it a rare task only needed with advanced cases? I never worked with them so have no idea what the usual workflow is :/


It depends on client demands. If you're not OK with just using some existing CMS and its out-of-the-box features than you can expect plenty of coding on your part to incorporate the necessary stuff into the CMS. But usually after you ship it you rarely have to touch it.

The programming work involved can be anything from a couple of days to a couple of months.

On November 04 2016 19:21 Nesserev wrote:
Show nested quote +
On November 04 2016 18:37 Manit0u wrote:
On November 04 2016 18:20 Prillan wrote:
On November 04 2016 17:56 Manit0u wrote:
I would also like to know why is using classes within classes so prominent in Python...

It is?


Whenever I view sources for some open source projects I see subclasses in almost all of them. And multiple classes per file is pretty much standard too.

Wait, you used 'classes within classes' first, then 'subclasses' ... what is it?
Are you talking about Java-esque inner/nested classes?


I was thinking about nested classes:

class SomeClass(self):
class OtherClass(self):
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18232 Posts
November 04 2016 13:35 GMT
#15833
On November 04 2016 20:00 mantequilla wrote:
Show nested quote +
On November 04 2016 19:21 Nesserev wrote:
On November 04 2016 18:37 mantequilla wrote:
I'm a web app developer (from scratch with code) but got suggested using a cms for a customer with simple needs, they need to make announcements etc on their website, some static info and links to other systems. I'm alien to whole cms thing.

when I'm making a website for a customer using a cms, am I supposed to write code regularly? Is the online content editing thing for the non technical customer to just update the site content?

I quickly tried to put a language selector on top of the main page using couple of cms'es, and they suggested me to write server side code (jsp) to put it there. I thought I'd be just drag-dropping a ready lang selector component on the online page

There's usually a lot of content on a website that the owner of a website should be able to change without the intervention of any web developer; a CMS provides the interface that allows him/her to do this.

Does it make sense that a web developer has to be contacted every time you want to add a post on a blog, change the banner of your website, etc.? - No, so that's why you use a CMS. Not just for simple websites, but for almost any website.

If the question to "should the owner be able to change this?", you need a CMS.

And it's not just for the owner, even the developer can benefit; sometimes it's the most convenient to hook something up to the CMS beforehand, instead of manually changing it in the HTML later on.



I know-understand when a cms is needed, that wasn't the thing I was trying to ask. I wanted to ask how much programming is involved with me. Am I supposed to write code regularly, or is it a rare task only needed with advanced cases? I never worked with them so have no idea what the usual workflow is :/


I'm not sure I understand the question right. If your job is to build a CMS, it will involve a fair amount of programming (how much depends on lots and lots of other things in your project). If your job is to update the website using the CMS then it *should* require no programming at all. It probably won't even require any CSS/HTML.
Prillan
Profile Joined August 2011
Sweden350 Posts
November 04 2016 14:26 GMT
#15834
On November 04 2016 22:29 Manit0u wrote:
Show nested quote +
On November 04 2016 20:00 mantequilla wrote:
On November 04 2016 19:21 Nesserev wrote:
On November 04 2016 18:37 mantequilla wrote:
I'm a web app developer (from scratch with code) but got suggested using a cms for a customer with simple needs, they need to make announcements etc on their website, some static info and links to other systems. I'm alien to whole cms thing.

when I'm making a website for a customer using a cms, am I supposed to write code regularly? Is the online content editing thing for the non technical customer to just update the site content?

I quickly tried to put a language selector on top of the main page using couple of cms'es, and they suggested me to write server side code (jsp) to put it there. I thought I'd be just drag-dropping a ready lang selector component on the online page

There's usually a lot of content on a website that the owner of a website should be able to change without the intervention of any web developer; a CMS provides the interface that allows him/her to do this.

Does it make sense that a web developer has to be contacted every time you want to add a post on a blog, change the banner of your website, etc.? - No, so that's why you use a CMS. Not just for simple websites, but for almost any website.

If the question to "should the owner be able to change this?", you need a CMS.

And it's not just for the owner, even the developer can benefit; sometimes it's the most convenient to hook something up to the CMS beforehand, instead of manually changing it in the HTML later on.



I know-understand when a cms is needed, that wasn't the thing I was trying to ask. I wanted to ask how much programming is involved with me. Am I supposed to write code regularly, or is it a rare task only needed with advanced cases? I never worked with them so have no idea what the usual workflow is :/


It depends on client demands. If you're not OK with just using some existing CMS and its out-of-the-box features than you can expect plenty of coding on your part to incorporate the necessary stuff into the CMS. But usually after you ship it you rarely have to touch it.

The programming work involved can be anything from a couple of days to a couple of months.

Show nested quote +
On November 04 2016 19:21 Nesserev wrote:
On November 04 2016 18:37 Manit0u wrote:
On November 04 2016 18:20 Prillan wrote:
On November 04 2016 17:56 Manit0u wrote:
I would also like to know why is using classes within classes so prominent in Python...

It is?


Whenever I view sources for some open source projects I see subclasses in almost all of them. And multiple classes per file is pretty much standard too.

Wait, you used 'classes within classes' first, then 'subclasses' ... what is it?
Are you talking about Java-esque inner/nested classes?


I was thinking about nested classes:

class SomeClass(self):
class OtherClass(self):

I can't remember ever having seen that in python.
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
mantequilla
Profile Blog Joined June 2012
Turkey781 Posts
Last Edited: 2016-11-04 14:44:59
November 04 2016 14:41 GMT
#15835
On November 04 2016 22:29 Manit0u wrote:
Show nested quote +
On November 04 2016 20:00 mantequilla wrote:
On November 04 2016 19:21 Nesserev wrote:
On November 04 2016 18:37 mantequilla wrote:
I'm a web app developer (from scratch with code) but got suggested using a cms for a customer with simple needs, they need to make announcements etc on their website, some static info and links to other systems. I'm alien to whole cms thing.

when I'm making a website for a customer using a cms, am I supposed to write code regularly? Is the online content editing thing for the non technical customer to just update the site content?

I quickly tried to put a language selector on top of the main page using couple of cms'es, and they suggested me to write server side code (jsp) to put it there. I thought I'd be just drag-dropping a ready lang selector component on the online page

There's usually a lot of content on a website that the owner of a website should be able to change without the intervention of any web developer; a CMS provides the interface that allows him/her to do this.

Does it make sense that a web developer has to be contacted every time you want to add a post on a blog, change the banner of your website, etc.? - No, so that's why you use a CMS. Not just for simple websites, but for almost any website.

If the question to "should the owner be able to change this?", you need a CMS.

And it's not just for the owner, even the developer can benefit; sometimes it's the most convenient to hook something up to the CMS beforehand, instead of manually changing it in the HTML later on.



I know-understand when a cms is needed, that wasn't the thing I was trying to ask. I wanted to ask how much programming is involved with me. Am I supposed to write code regularly, or is it a rare task only needed with advanced cases? I never worked with them so have no idea what the usual workflow is :/


It depends on client demands. If you're not OK with just using some existing CMS and its out-of-the-box features than you can expect plenty of coding on your part to incorporate the necessary stuff into the CMS. But usually after you ship it you rarely have to touch it.

The programming work involved can be anything from a couple of days to a couple of months.


the chapter 1 of liferay book teaches how to checkout code and install ant etc. first page in opencms documentation talks about writing jsp. confused



I'm not sure I understand the question right. If your job is to build a CMS, it will involve a fair amount of programming (how much depends on lots and lots of other things in your project). If your job is to update the website using the CMS then it *should* require no programming at all. It probably won't even require any CSS/HTML.


job is to create a simple website using cms that:

- has multiple locales selectable
- has an announcement feature where owners can make announcements which shows on main page
- have some links to external websites

Age of Mythology forever!
waffelz
Profile Blog Joined June 2012
Germany711 Posts
Last Edited: 2016-11-04 15:32:48
November 04 2016 14:44 GMT
#15836
I could need some advice for a project I intend to tackle. At the moment, my biggest problem is determine the correct hardware.

EDIT: Of course, he could just lock the cupboard, but this isn't a serious solution to a problem but rather a fun idea to play around which could make a great gift.

The Beginning:
Someone I know lives in a shared apartment, let’s call him Bob. Bob doesn’t mind sharing some of his tuff, but hates it when his flatmates take stuff first and only ask later. Even though he would have given permission anyways, it upsets him. His flatmates claim they simply forget to ask sometimes, since some of Bobs stuff is indeed free to take without asking permission.
After watching “Jack and the Beanstalk”, Bob thought “how cool would it be, if my cupboard could cry ‘theft’ to remind them of asking”. Here I get into the picture.

General Idea:
I want to build a device to “secure” a cupboard. Whenever the door is opened without permission, the device should play a sound. Some form of remote makes it possible to unlock the cupboard via wireless connection for a set amount of time and to enable/disable the alarm completely. The remote will most likely end up being an android app and doesn’t require any additional hardware. To be clear, there won't be any locking mechanism, locked/unlocked is only a state, stored in the software that determines if a sound is played or not when when the door gets opened

Minimal requirements and possible solutions:
Network: The device must be able to run a customized server/client and to use the w-lan of Bob.

Cupboard Door opening: The easiest way to determine if the door gets opened is probably some sort of switch that gets released when opening the door. The device must be able to access this signal and to use it. I have some experience with embedded systems, but back then I was always limited to assembler / very basic C, so I have no experience in combining this with a more advanced approach.

Portable power source: There will most likely be no possibility to connect the device to a power outlet, so it needs to be sustained by a portable one. It also has to run 24/7 so energy consumption shouldn’t be high.

Software: I have to be able to write my own server/client for the device and should be able to automatically start it after booting

Setup & Usability: Since Bob is not very fit with computers in general and he doesn’t live close to me, the device shouldn’t need much configuration after the initial setup. For example, this means the device should be able to automatically connect to the network, once it has been setup by me, a restart of the router shouldn’t be an issue as long as name and password of the network stay the same. Also, it should be able to simply restart the device without any further configuration, even when it was without power for extended amounts of time.

Audio: The device must be able to play audio/connect to speakers to play audio, the speakers also need a portable power source.

Nice to have:
USB/SSD: To make Bob still be able to change the sounds if he wants to, it would be cool if the device just played a sound file from an USB stick/SSD card. This way, even bob could change the sound.


General Idea about the software:
Since I am not sure about Bob’s internet setup I have 2 approaches. I don’t know the current situation but I assume his IP refreshes every 24h, however he is most likely change to a provider where the IP stays the same for a year. For both cases I have come up with an approach.

24h IP-reset:
Since a 24h IP-reset would mean that the IP of the device will change a lot, I would use the server to deliver the messages. After booting/reconnecting, the device would contact the server which gives him the IP. The remote would always send the commands to the server which would forward them to the device. Besides the initial setup for remote and device, there would be no more IP configuration needed. It also means that there is another possible point of failure and when I change servers/get rid of my server the device wouldn’t work anymore. I would probably use something like MQTT with my server being the broker.

1year IP-reset:
Device and Remote would directly communicate via TCP, occasionally you would have to change the target IP for the remote, but overall I would prefer this solution. Teaching Bob to determine his own IP wouldn’t really be an issue.


Choosing Hardware:
The above stated are my requirements. My problem is, I don’t know much about the available hardware, the only 2 things that came to my mind where the raspberryPI and an Arduino, but I don’t know that much about both systems. I figured the raspberryPI would be more comfortable to configure and write software for since it is an actual computer with an OS while the Arduino is not. However, especially with the usage of some kind of switch, the requirement for a portable power source (my electrical skills are not great, so I am glad if I don’t have to tinker something on my own) etc. it seems like more build for my project. My main concern towards the Arduino is to what extend it would support custom software.
I am very thankful for any form of input, may it be towards the hardware or just the general idea of my project. Hardware is currently my main concern though since I won’t be able to plan in detail until I know what I will be working with.
RIP "The big travis CS degree thread", taken from us too soon | Honourable forum princess, defended by Rebs-approved white knights
tofucake
Profile Blog Joined October 2009
Hyrule19194 Posts
November 04 2016 15:12 GMT
#15837
You're right about the Pi being easier to use, but it does use more power than an Arduino. Either way you'll want to figure a way to power it through a wall socket as a motor eats power. You might want to consider just telling Bob to start locking the cabinet and if someone wants to borrow something they need to ask when he's around.
Liquipediaasante sana squash banana
waffelz
Profile Blog Joined June 2012
Germany711 Posts
November 04 2016 15:14 GMT
#15838
On November 05 2016 00:12 tofucake wrote:
You're right about the Pi being easier to use, but it does use more power than an Arduino. Either way you'll want to figure a way to power it through a wall socket as a motor eats power. You might want to consider just telling Bob to start locking the cabinet and if someone wants to borrow something they need to ask when he's around.


Yeah, as I progress with my research, I am drawn more to the conlcusion that the networkfunctionality pretty much kills the ability to properly run it via battery. Of course locking the cupboard would be easier, it is more a fun idea for a gift though. Propably should put that up in the original post.
RIP "The big travis CS degree thread", taken from us too soon | Honourable forum princess, defended by Rebs-approved white knights
Logo
Profile Blog Joined April 2010
United States7542 Posts
Last Edited: 2016-11-04 15:18:48
November 04 2016 15:17 GMT
#15839
On November 04 2016 23:26 Prillan wrote:
Show nested quote +
On November 04 2016 22:29 Manit0u wrote:
On November 04 2016 20:00 mantequilla wrote:
On November 04 2016 19:21 Nesserev wrote:
On November 04 2016 18:37 mantequilla wrote:
I'm a web app developer (from scratch with code) but got suggested using a cms for a customer with simple needs, they need to make announcements etc on their website, some static info and links to other systems. I'm alien to whole cms thing.

when I'm making a website for a customer using a cms, am I supposed to write code regularly? Is the online content editing thing for the non technical customer to just update the site content?

I quickly tried to put a language selector on top of the main page using couple of cms'es, and they suggested me to write server side code (jsp) to put it there. I thought I'd be just drag-dropping a ready lang selector component on the online page

There's usually a lot of content on a website that the owner of a website should be able to change without the intervention of any web developer; a CMS provides the interface that allows him/her to do this.

Does it make sense that a web developer has to be contacted every time you want to add a post on a blog, change the banner of your website, etc.? - No, so that's why you use a CMS. Not just for simple websites, but for almost any website.

If the question to "should the owner be able to change this?", you need a CMS.

And it's not just for the owner, even the developer can benefit; sometimes it's the most convenient to hook something up to the CMS beforehand, instead of manually changing it in the HTML later on.



I know-understand when a cms is needed, that wasn't the thing I was trying to ask. I wanted to ask how much programming is involved with me. Am I supposed to write code regularly, or is it a rare task only needed with advanced cases? I never worked with them so have no idea what the usual workflow is :/


It depends on client demands. If you're not OK with just using some existing CMS and its out-of-the-box features than you can expect plenty of coding on your part to incorporate the necessary stuff into the CMS. But usually after you ship it you rarely have to touch it.

The programming work involved can be anything from a couple of days to a couple of months.

On November 04 2016 19:21 Nesserev wrote:
On November 04 2016 18:37 Manit0u wrote:
On November 04 2016 18:20 Prillan wrote:
On November 04 2016 17:56 Manit0u wrote:
I would also like to know why is using classes within classes so prominent in Python...

It is?


Whenever I view sources for some open source projects I see subclasses in almost all of them. And multiple classes per file is pretty much standard too.

Wait, you used 'classes within classes' first, then 'subclasses' ... what is it?
Are you talking about Java-esque inner/nested classes?


I was thinking about nested classes:

class SomeClass(self):
class OtherClass(self):

I can't remember ever having seen that in python.


I've seen inner classes used a few times. Usually it's a way to use a class for the internal workings of something without really exposing it to the system as a standalone entity. In other languages there are also encapsulation differences, but that doesn't apply to python. I don't know why it's prevalent (if it is), I've never really seen it, but I don't dig much into python libraries.
Logo
tofucake
Profile Blog Joined October 2009
Hyrule19194 Posts
November 04 2016 15:26 GMT
#15840
On November 05 2016 00:14 waffelz wrote:
Show nested quote +
On November 05 2016 00:12 tofucake wrote:
You're right about the Pi being easier to use, but it does use more power than an Arduino. Either way you'll want to figure a way to power it through a wall socket as a motor eats power. You might want to consider just telling Bob to start locking the cabinet and if someone wants to borrow something they need to ask when he's around.


Yeah, as I progress with my research, I am drawn more to the conlcusion that the networkfunctionality pretty much kills the ability to properly run it via battery. Of course locking the cupboard would be easier, it is more a fun idea for a gift though. Propably should put that up in the original post.

The big power draw is the motor that will do the locking/unlocking. Wifi dongles are relatively low-power.
Liquipediaasante sana squash banana
Prev 1 790 791 792 793 794 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 4h 7m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 686
IndyStarCraft 107
ProTech107
JuggernautJason78
RushiSC 17
StarCraft: Brood War
sSak 60
scan(afreeca) 51
Dota 2
Gorgc4875
canceldota62
Counter-Strike
fl0m3288
byalli834
Heroes of the Storm
Liquid`Hasu264
Khaldor163
Other Games
gofns46544
tarik_tv16545
Grubby2888
FrodaN2144
summit1g1426
Beastyqt638
B2W.Neo519
KnowMe465
DeMusliM169
C9.Mang0131
Livibee59
Organizations
Dota 2
PGL Dota 2 - Main Stream13987
Other Games
gamesdonequick1755
ComeBackTV 271
BasetradeTV76
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• StrangeGG 48
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• blackmanpl 42
• RayReign 8
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• lizZardDota255
League of Legends
• Doublelift1648
• TFBlade1408
Other Games
• imaqtpie1139
• Shiphtur178
Upcoming Events
Replay Cast
4h 7m
CranKy Ducklings
14h 7m
RSL Revival
14h 7m
MaxPax vs Rogue
Clem vs Bunny
WardiTV Team League
16h 7m
uThermal 2v2 Circuit
21h 7m
BSL
1d
Sparkling Tuna Cup
1d 14h
RSL Revival
1d 14h
ByuN vs SHIN
Maru vs Krystianer
WardiTV Team League
1d 16h
Patches Events
1d 21h
[ Show More ]
BSL
2 days
Replay Cast
2 days
Replay Cast
2 days
Wardi Open
2 days
Monday Night Weeklies
2 days
WardiTV Team League
3 days
GSL
4 days
The PondCast
5 days
WardiTV Team League
5 days
Replay Cast
6 days
WardiTV Team League
6 days
Liquipedia Results

Completed

Proleague 2026-03-12
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
Proleague 2026-03-13
RSL Revival: Season 4
Nations Cup 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Elite League 2026
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
NationLESS Cup
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.