Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [modules]

A logical subdivision of a larger, more complex system.

4
votes
0answers
37 views

Self-notification modules

Specifically, I have been working my way through Al Sweigart's Automate the Boring Stuff and was inspired to write my own util/module that I can use for sending myself SMS messages via Twilio. The ...
4
votes
0answers
1k views

RSS parser for Node.JS

I would like someone review this code and tell if it can be done better, or if the code is elegant and simple enough for the task at hand. I used code climate and I got 4/4 and my test coverage is 96%...
3
votes
0answers
32 views

Eassily create a logger in python for many modules with loglevel set according to command line arguments

I'm trying to learn writing python programs in a modular way as much as possible. One of the issues I've had difficulty to solve is parsing command line arguments (with ...
3
votes
0answers
77 views

Simple JavaScript module to manipulate CSS

After posting some of this code on Stack Overflow I was told to have a look here and get some feedback. I am having fun building a light JavaScript framework and have copied this pattern. It works ...
3
votes
0answers
135 views

Read in file, Filter out records, output results

I have been working on a project for some time and have let one Python file grow into a huge file that tries to do everything. The structure is pretty flat and I don't like it. I've used other ...
3
votes
0answers
406 views

Modular Angular structure with Browserify

I am trying to create a basic angular template where all files are sorted into a modular structure and referenced using the browserify require method. I am very new to browserify and the CommonJS-...
3
votes
0answers
102 views

Sourcemap translator service

This is my first attempt to a serious Node.js application, I've tried to follow the async style of Node at my best, but I have several doubts and I am sure that this code can be massively improved. ...
3
votes
0answers
147 views

Implement.js JavaScript module pattern

I have been playing with a new JavaScript module pattern to see what I can come up with. I think it's quite powerful and wanted to know if it is something people would find useful? I'm looking for ...
2
votes
0answers
45 views

Addition of defaults to components in AngularJS

I wrote a small module in typescript that augments the angularjs registerComponent function to provide a new way of default values for the component controller. ...
2
votes
0answers
67 views

Bundling JavaScript modules into a single file

I was just going through Modular Design Patterns in JavaScript and I came across bundlers like browserify and webpack. They ...
2
votes
0answers
170 views

Applying CSS styling based on different pages in React

Short Story: I created this website last year in plain HTML, CSS, JS which I can't even remember how I wrote that and now I can't even edit the website without breaking it. So, I'm re-writing ...
2
votes
0answers
59 views

Choosing structure of fields validation module in Swift

I've implemented abstract module for fields validation according to this MVP clean architecture repo. In a nutshell I've created ValidationGateway protocol ...
2
votes
0answers
117 views

jQuery form change listener, modularized using ES6

I have the following javascript code that I'm trying to modularize using ES6: ...
2
votes
0answers
471 views

Perl switch/case module

I know Perl now has given and when to simulate switch/case statements, but these are still experimental and are not guaranteed ...
1
vote
0answers
58 views

Library to mimic canvas using divs

I was recently developing some canvas library and (mimicking canvas using div). The requirement was to develop something without using any third-party library. The sample app had a asset library and ...
1
vote
0answers
2k views

Dynamically loading and naming controllers in nodejs and express

I'm trying to write a module to dynamically load all the files from my "controllers" folder, and then add them to the main express instance as routers. The files inside the controllers export an ...
1
vote
0answers
27 views

Simple ES6 JavaScript Module “Loader” (semi follow-up)

I have recently updated my JavaScript Module "Loader" to ES6 and would like some feedback on the code and how "ES6-y" it is. I previously asked about the ES5 version of my code here and I have ...
1
vote
0answers
43 views

Modular widget that minimizes js and css scope pollution

So, my goal with this is to create a simple login widget that does as close to nothing to the global scope as possible. The login mechanism is less important than the encapsulation. The whole script ...
1
vote
0answers
97 views

Dynamically call a function in a given module

I use the following code that is working as expected and I want to get some feedback from the community how I can Improve it... The code does the following: Get Some request with specific action ...
1
vote
0answers
52 views

Injecting required functions by synchronous script loading

I have a file HintBox.js containing a JS prototype of the same name which requires our internal JS library (call it $lib) in ...
0
votes
0answers
10 views

Using per-page SystemJS configurations (because of misbehaving dependencies)

Background I'm writing a server-side-rendering (i.e. "traditional") web-application that uses a dependency-free client-side components library (specifically, Syncfusion Essential JS 2). Ostensibly ...