Liutauras Vilda

Marshal
+ Follow
since Nov 12, 2014
Liutauras likes ...
Merit badge: grant badges
For More
London, United Kingdom
Cows and Likes
Cows
Total received
638
In last 30 days
1
Total given
2070
Likes
Total received
1921
Received in last 30 days
4
Total given
2366
Given in last 30 days
7
Forums and Threads
Scavenger Hunt
Rancher Scavenger Hunt
Ranch Hand Scavenger Hunt
Greenhorn Scavenger Hunt

Recent posts by Liutauras Vilda

All we said was, what you asked about "better way of handling if and else" probably is the least problem you have.

There is a feeling that you have more serious problems with an underlying design, because by looking to code it is quite difficult to comprehend it.

Just out of curiosity, is it some "professional" application/system or some school assignment?
4 days ago

Jack Tauson wrote:I only want to create a new case request if case ID for the car doesn't exist in the database


Terminology is important, so the code is consistent, otherwise semantics can get off.

Jack Tauson wrote:sph.getAllOpenCaseRequestsFromDb()


Do you see how this code returns open requests? Why you'd want to create requests, don't you want to open them if they aren't yet?
5 days ago
@OP

And instead of having those low level code constructs, start with something higher level, example (you can have more creativity):

Now people looking to your code would have a much better understanding of a logical flow.
5 days ago


1. rename variable to topOfTheStack or similar
2. remove now redundant comment explaining what the variable is
1 week ago

Stan Belen wrote:I'm thinking to tell my manager that I think that it would be helpful if the team can be divided into groups that are working in the same area and, in addition to the scrum, for these teams to have a separate meeting to discuss their work in more detail among each other. I think that this would make it much more helpful, to share how you are implementing something and bounce ideas, get feedback, etc.

Do you think this would be a good idea?


I'm not sure how your system/services are structured, but if you are saying something similar that Backend and Front-End teams are mangled, then yes, potentially would make sense to separate them.

Now, as far sharing knowledge or discussing the implementation details, give a try pairing with someone on the aforementioned task(s). Two heads usually are better than one. And that is also good for knowledge sharing.

Over the years observing those things in the teams I worked with, I feel your tasks aren't decomposed enough or in different words - too big in scope, hence could not be tackled in reasonable amount of time.

As an example what I mean, let's say you have a task to implement some API endpoint, that consists of (taking example from a thin air):
  • produce OpenAPI specs
  • create database table(s)
  • implement API specs

  • So now you have couple of choices, you can have a one task, or you can have three tasks, likely tackled in different sprints. So when you do this kind of repetitive work several times, you start getting a pretty good idea how long each of those tasks take. After few iterations like this if your team no longer sees the point in decomposing that much, you have it as a singular task, but now you can be more accurate in predicting the time it may take.

    And I believe that any big task could be decomposed to smaller set of tasks, then those smaller tasks into more smaller tasks until they are manageable in terms of scope to achieve in a reasonable amount of time.

    Another thing what I think helps, if you work on tasks and constantly get stuck on something that makes you delay in accomplishing them, maybe you don't do enough discovery around the area, so you have too many unknowns or fuzzy areas that surprise you during implementation.

    So to deal with this kind of things, you maybe could have some discovery tasks prior actual implementation where you could give a go in some dirty way to get a sense what you are going to deal with and later just discard that work, so the upcoming sprint you could work on actual task implementation, but now with smaller chances to surprise you.

    But you know, there is no one silver bullet, you need to experiment and see what works for you and your team.
    1 week ago

    Stan Belen wrote:The problem that I have is my JIRA Stories tend to keep moving to subsequent Sprints.


    Well, either your stories/tasks are too big for the sprint to complete or you work too slow. Also clarify what is your definition of story? Asking this, because I saw in multiple occasions people use these interchangeable, say story, but mean task, and other way round.

    The idea is, you shouldn't have tasks or stories that could not be completed within the sprint, and given (I'm assuming) you work as part of the team, before you get task into the sprint, you should get an agreement as a team that such task IS completable. Otherwise need to decompose them more, so they are smaller.

    Anyway, have you discussed this with the team first? What they say? What your tech lead says?
    2 weeks ago
    A bit more on that.

    If you are talking about university assignments, another general advice is, to read assignment instructions right away once you get them, so you could get an idea how much time you'll need to accomplish it.

  • If you have pretty good idea how long (approx) will it take for you, then you just start at the right time in order to finish on time
  • If after reading assignment instructions you don't have an idea how long will it take for you, then you start right away until you get better idea, then you see if you have a buffer of time and then you do whatever you want with that buffer


  • So that technique falls under "start earlier".

    Other technique is do them "more efficiently".

    Now, that can mean different things to different people. For me that used to be, do the things in undisturbed and undistracted environment. Meaning, TV off, phone off, snacks off until you make some tangible progress. The more progress you make in one go, the easier is to come back to task other time, because every time you have a clearer picture of the end goal.

    Others may say, don't try to get everything perfect right away, get something working, adhering to requirements end-to-end, then as the time permits refactor/polish until you get closer to the perfect, and depending on time, you do what you can.
    2 weeks ago
    Start earlier or do them more efficiently. General advice, but you didn't ask anything specific.
    2 weeks ago

    Peter Ho wrote:---> The answer is -2 because the length first array is shorter than second one (5 - 3 = 2)


    3 - 5 = -2
    4 weeks ago

    Carey Brown wrote:

    Chris Smithtopher wrote:How do you manage things like packages, dependencies, and all that jazz?


    ...you should probably have already started your IDE learning curve before getting too deep into dependencies. Packages you should be able to do from the command line.


    And so the dependencies, there are examples on those cert books how to set the classpath.

    A one or two examples where class depends on few other to get it compiled and be able to run is a good start, and perhaps indeed don't need to dive significantly more, but just to get a sense what's happening.
    1 month ago

    Tim Holloway wrote:Eclipse is "slow and buggy"??? About the only bug I've been annoyed by is in the XML editor plugin and at least when it comes to start-up, IntelliJ wins the slow prize.


    Tim, my experience is opposite. I stopped using Eclipse about 10 years go, one of the reasons being - very sluggish, couldn't smoothly handle couple of simple HelloWorld projects opened at the same time. And I remember hearing at that time people saying what you are saying about IntelliJ IDEA. I don't know if it is because of macOS (Mac OS X at that time), but IntelliJ IDEA for me was very smooth compared to Eclipse.

    Then one other thing what used to annoy me, that Eclipse didn't have any reasonable "Search in project" functionality, so had to download plugin called something similar to "Quick Search", I think this, and then some other plugin for something else, and then someone advised to upgrade straight to Spring ToolSuite (STS), so IDE would meet minimal basic requirements for a day-to-day use, then everything become even more sluggish, and then I ditched it.

    Even though IntelliJ IDEA is a great at recognising project structure and has no problems building projects after importing, I rarely building that way, like others said, like to use terminal for building <-- which by the way is also integrated into IDE whoever prefers that and not terminal natively bundled with OS.

    I used git also extensively in terminal, but lately switched to IDEA's, the diff tool in particular is absolutely amazing, and I find myself being more comfortable that way. On the other hand, now there is a lot of other frameworks/plugins like oh-my-zsh for the terminal, which can vastly improve experience and integration with many tools on command line. Some tools are just better on command line, one of which these days couldn't live without is k9s. But this topic is just snowballs.
    1 month ago

    Tim Holloway wrote:IntelliJ has 3 project files, as I recall, each in XML format. One for the project itself, one for personal preferences, and I think the third contains current editing state (it has been a while since I looked). When committing to a source archive, the personal stuff should not commit, only the global project file.


    Hm... it may depend on the project specifics and expectations you have. Our team never committed a single file that is under .idea dir and don't remember having a single problem. And that's not just one project, on many different projects, however, they are using either Maven or Gradle (if that's Java based project), and IntelliJ is capable of parsing those and replicating some of those you mentioned. IntelliJ also is quite good at recognising what plugins you may want to install when it scans the project based on the file types. But we don't have hard requirements on any 3rd party plugins.

    But ok, your projects might be quite different. If there is something that requires some knowing, i.e. some remote debugging configs or so we normally write a small wiki, which I think potentially would reside in those IDE specific project settings. So yes, technically you are right, but can be avoided and not coupled with specific IDE files. And that's been the case for us, developers are free to use tools they are comfortable and want.
    1 month ago

    Tim Holloway wrote:Eclipse project meta-data differs considerably from what IntelliJ uses and likewise for NetBeans. So you cannot just suck an Eclipse project into IntelliJ or vice versa.


    About metadata differences agree, but not sure about the rest. Those metadata files are specific to your local environment, not project in general. You should be able to import project to an IDE. Well, at least you can to the IDE (IntelliJ IDEA) I use.

    A good example is CodeRanch's JForum, I saw some devs pushed some Eclipse config files, however, my IDE doesn't use them, and understand project by the build tool, i.e. Maven, Gradle. If these are not being used, you can still configure project with some manual input.
    1 month ago

    Steve Dyke wrote:This creates an infinite loop



    Do you have an idea why would that happen?
    1 month ago

    Carey Brown wrote:For future reference:
    Based on my casual observation it seems that Eclipse is the most preferred IDE though there are a couple of others.  In my 25 year career all of the companies I worked for used Eclipse.


    That's not the case in my experience. However, I like companies which don't insist what tools to use, so you can choose whichever IDE you like.
    1 month ago


    vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
    http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |