Most voted "módulo" questions
A program module is a programming artifact that can be developed and compiled separately from other parts of the program.
Learn more…31 questions
Sort by count of
-
13
votes3
answers799
viewsFloats module in PHP returns integers?
How do I get the rest of the division (operation module %) with decimal places when using a divisor or dividend float? Example: echo 5 % 3; // imprime 2 como é esperado echo 5.6 % 3; // imprime 2…
-
9
votes2
answers4065
viewsWhat are modules in programming?
I know there’s this question: What are modules? But the explanation does not go straight to the point and left me confused, as well as properties, methods, arguments and other words I have seen…
-
9
votes3
answers302
viewsWhat is a module in PHP?
I’m studying this one documentation and I came across that term : The Return statement returns control of the program to the module that called it. The execution will continue in the expression…
-
9
votes1
answer1978
viewsHow to program in a modular way?
I am studying some concepts here and I want to see if I have the right ideas and also launch a(s) question(s). In modular programming (either structured or OOP) instead of my application being…
-
7
votes1
answer1729
viewsWhat are the modules?
Whenever I read about Java 9, I see assertions that the big change in the next version of Java will be native module support through Jigsaw Project. Then comes the criticism of adopting a new…
-
7
votes1
answer514
viewsIs there any project organization standard for C++?
In Java and Actionscript3.0 we use namespaces based by directory path, I see much use of namespace, but are not based on the "location" path of the class in the folder. I searched a lot if there was…
-
6
votes1
answer85
viewsWhat’s the difference between mod and Rust?
I understand the workings of the keyword mod, explained in this matter. For users of Python, mod works exactly like the keyword import. That is, to use functions and other objects defined in a file…
-
5
votes2
answers461
viewsDo I need to import a module several times?
I have a class file and a file for the main program, in the two files I need Pygame. I import the classes into the main program this way from classes import *. I need to import Pygame into the…
-
4
votes1
answer195
viewsDifference between exporting a function and an IIFE in Javascript
Is there any difference between: module.exports = (function() { // Code. })(); And: module.exports = function() { // Code. }; Taking into account the context of exporting and importing modules?…
-
4
votes3
answers122
viewsModule Operator invokes special object methods
To biblioteca padrão do Python has the module operator, studying the same I noticed that some of its functions have say "aliases", for example: operator.setitem(a, b, c) operator.__setitem__(a, b,…
-
4
votes0
answers53
viewsCriterion for modular decomposition
Drawn from: http://wiki.c2.com/? Encapsulationisnotinformationhiding (my emphasis): As the article Linked to at the top of the page mentions, "information Hiding" was introduced by Davidparnas in…
-
2
votes2
answers5334
viewsHow to check the versions of the modules installed in Python?
I installed two modules in Python via anaconda (Conda install): zipfile36; Mysqldb. Using the anaconda prompt I can get the version of both and all my other modules using the command: conda list But…
-
2
votes1
answer273
viewsHow to import and export members using Ecmascript modules in the browser?
I am trying to import a class, but I am making one or several mistakes. Can anyone enlighten me about? Filing cabinet js/calendar: export default class Calendar { constructor(date) {…
-
2
votes1
answer43
viewsHow to create a module for a specific folder?
opa, all right? I tried to create a module in Go language in visual studio. The module refers to a folder called "1 - Packages". but when I write the code only appears this. I’m starting in…
-
1
votes1
answer1008
viewsHow to run a module in Python?
have a question. A few days ago I am creating an application with GUI interface to show movie schedules. It was built in modules, for example, a module takes care of the images, searches the web and…
-
1
votes2
answers399
viewsImport modules with Python
How can I do import of libraries, for example, I was researching and found the Babel to internationalize dates, but I don’t know how to import this library?…
-
1
votes2
answers159
viewsModular programming in Java, called methods
He needed help to put the smaller and larger method to be "heard" in the main method. The logic of the program is to show the user what is the highest and lowest value of a vector. CODE: import…
-
1
votes0
answers16
viewsJoomla forms with submission limit
Good morning, I would like to create a form in Joomla and I would like to know if there is any form module (chronoforms, form maker, etc...) that would allow me to limit the number of registrations?…
-
1
votes1
answer825
viewsEvaluation activity hours per minutes
Question (2): Make a program that receives an hour formed per hour and minutes (a real number), calculate and show the time typed only in minutes. Consider that: for four and a half (4:30), type…
-
1
votes1
answer97
viewsHow do I create a new zeroed submodule in git?
What’s the most practical way to create a new, empty submodule in git? Whenever I need to I’m having to create outside to then checkout with a url. Do you have any more direct way with one or a few…
-
0
votes2
answers422
viewsFatal error when creating a new Zend Skeleton Application module
I am trying to create a module "Bookstore" inside my Zend Skeleton Application, but it gives a very big error that I do not know how to deal: Fatal error: Uncaught Exception 'Zend Modulemanager…
-
0
votes1
answer452
viewsGrammatically classify a word in English
It is known that it is possible to classify the words morphologically through the nltk module, but it works directly with English only, being necessary for other languages a complicated process. Is…
-
0
votes1
answer5595
viewsPair or odd through Random module (Python)
Recently I started learning programming language with python, I created a classic "game" to go learning with Random.randint for the user to try to guess which number was chosen by the machine. I…
-
0
votes1
answer434
viewsImport and Export Javascript functions and classes
When I try to import a console class from the browser, the following error appears: Uncaught SyntaxError: Cannot use import statement outside a module Filing cabinet models/Evento.js: export class…
-
0
votes1
answer20
viewsError regarding guidance on building modules in the Head First Python book using Windows
Hello! I’m reading the book Head First Python and a question arose regarding the creation of module and distribution of it using Windows. Following the author’s guidelines, I created a.py file with…
-
0
votes1
answer44
viewsAllow maximize and minimize windows in Pysimplegui
I’m trying to make a text/note program, like Word or notepad in Pysimplegui. Before I started doing it, I needed test programs, and in one of them I have a problem: allow to maximize and return to…
-
0
votes0
answers15
viewsIs creating module using closure function a good practice?
It is known that closure is used to make variables within a function private and persistent. We assume I use closure to modulate smaller functions, would be considered good practice? If not, what…
-
-1
votes1
answer91
viewsImport module after function . load() from jQuery
Because it is not possible to import a module after loading an external content by jQuery.load(), from what I understand it needs to be outside the scope, but outside the scope the content of the…
-
-2
votes1
answer28
viewsModule Facebook Magento 1.9 does not load
When accessing the Facebook module (version 2.6.2) for Magento 1.9 it did not load and the screen was blank. When accessing the error log ( var/log/facebook_product_feed_exception.log )I identified…
-
-2
votes1
answer55
viewsError closing a tab in Pysimplegui
I’m doing a test program with Pysimplegui, but basically it asks for a user, if it’s correct it opens a new tab with the phrase: "Success, you’ve logged into your account!" , and when it was wrong…
-
-8
votes2
answers209
viewsCreation of a module
I’m having a hard time creating my own module. I would like an example with a step by step steps to create a module so I can identify where I am missing.