Reputation
2,026
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
1 7 13
Impact
~48k people reached

  • 0 posts edited
  • 3 helpful flags
  • 192 votes cast
Jun
29
comment Why does Node.js startup time vary so wildly?
Talking about speculation, and increase of time of 20 seconds seem more related to network issues than to HD speed (not that I know how, why, where or when node.js needs to connect somewhere). Or very heavy memory swapping (have you checked your free RAM before running node.js).
Jun
27
comment Should you write your back-end as an API?
I have had to maintain a project where the logic was put in the UI layer, calling the same shared data structures. I have had to fix one bug thirty times because of that ("if we need to use the same logic again we will copy & paste! no need for an API"). Had been there a logic layer (now there is) it would have been enough with just one fix.
Jun
27
comment Should you write your back-end as an API?
I have had to maintain one system designed with YAGNI in mind; since it used Struts the previous developer put dependencies to Struts in almost all the code (and most of the business logic in Struts dispatcher classes). If you build a system with a good tiered design the API appears almost automatically (as the separation between presentation and business logic), if you don't then shit happens down the road.
Jun
17
comment Client-Side JavaScript Business Logic in .Net Solution Stack
Note that the point is not JS vs .Net but "on our servers" vs "on someone else's hardware". A .Net desktop client would be again the wrong solution, for exactly the same motives.
Jun
16
comment Is the semantic contract of an interface (OOP) more informative than a function signature (FP)?
Without any additional clues... maybe it is why the documentation is part of the contract?
Jun
2
comment Is there a hashCode()-like method that can be used for state checking?
You may implement hashCode so it only depends of the state, it will be still a valid implementation. It might be undesirable to use in maps (apart from being mutable) because of a possible high number of collisions. Or maybe I am missing your point.
May
26
comment Libraries and licenses
Note that many products offer dual licencing; in essence if you do not want issues from using the open source licence, you buy a "closed" licence from the developers that would allow for redistribution.
May
22
comment Where should my team start with becoming “modern”?
@omouse I was just pointing a risk that has hit myself sometimes, when doing research. Certainly I do not see that risk in the situation that you describe, but the form in which the OP describes his research ("first I started with... then I quickly moved...") made me add that caution. Note that I do not claim that the OP is not doing his assigned work properly (that is something I simply do not know, and that is his boss'job), I just warn him to make sure that he does not get too carried away.
May
22
comment Where should my team start with becoming “modern”?
@winkbrace for the boredom bit, it depends of your personality and what you are looking for in a job. It is sensible to try to land in a job position that satisfies you, rather than go anywhere and try to change the organization to your tastes. And usually big corporations (except for R&D departments) are not the place for people who likes to test a new technology each few months.
May
22
comment Where should my team start with becoming “modern”?
@winkbrace I do not claim that you should not try to improve (in fact I state the opposite). But pushing those changes without management support and without the authoritas of some seniority may be quite difficult and cause some resistence; add to that the OP not being quite an expert himself and may have troubles with the actual implementation. It would be nice if the OP could volunteer to a research/prototyping team to properly introduce changes; but barred that he should be careful in chosing the right approach to promote those and be patient.
May
12
comment In Agile SCRUM, how do you handle even distribution of work in a sprint between “experts”?
But... should the OP tell upper management that he is doing pairing and that maybe performance will be reduced (at the gain of less risk)? Or should he just do it and "hope nobody notices" (after all, who is gonna tell them how many actual men/days have been produced)?
May
6
comment What data structure would you use to represent an organic compound?
I think you should ask a chemist. They may not know how to program it, but they sure know how to represent compounds, and have though about most of the possibilities (for example, they represent bencene just with an hexagon). Also, there are some abstraction levels (a protein is described as a sequence of aminoacids, not as a group of atoms). Once you understand how to represent it in paper, the programming part should be quite straightforward
Apr
29
comment Is it okay to have objects that cast themselves, even if it pollutes the API of their subclasses?
Additionally, the example is flawed. There is a Member interface, but it only serves to check the access qualifiers. Typically, you get a list of methods or properties and use that directly (without mixing them, so no List<Member> appears), so you do not need to cast. Note that Class does not provide a getMembers() method. Of course, a clueless programmer might create the List<Member>, but that would make as little sense as making it a List<Object> and adding some Integer or String to it.
Apr
8
comment Recursively parse without resorting to ugly design patterns
You do not need all of the theory behind it. Just the rules to define a language that is a CFG. And now, just to adjust my previous example to your actual proposal, CrotchCode -> int CrochetCode [repeat] | < CrochetCode [reverse]| {CrochetCode} [group]| CrochetCode CrochetCode [list of commands]| Stitch Symbol | [empty set]
Apr
8
comment Recursively parse without resorting to ugly design patterns
Something like CrochetCode -> repeat {CrochetCode} | reverse {CrochetCode} | StitchSymbol | [empty set]
Apr
8
comment Recursively parse without resorting to ugly design patterns
At the risk of sounding too academical, I think you should go and try to learn the basics of parsers and compilers (namely, regular expressions and context free grammars) so at least you can define your language as a Regex/CFG. Once that is done, 90% of the work is finished, since there are lots of tools and techniques to create parsers from Regex/CFG.
Mar
10
comment What is the origin of the phrase “extirpated as a potential munition”
@esoterik that should be an answer (although maybe the question itself could be off-topic).
Feb
24
comment Is it reasonable to assume that any physical quantity can be represented by a 64-bit integer without overflow or underflow?
But you can assign a minimum physical value (IIRC, for mass it was the mass equivalent to 1 electron-volt). For example, you can measure the universe length using Planck length units with (IIRC) 200 digits. You can mentally talk about 1/10 of a Planck length, but physically it has no sense.
Feb
15
comment Testing process on life critical systems
Nothing to worry about, we have it covered: dilbert.com/strip/1996-02-01 and dilbert.com/strip/1996-01-31
Jan
25
comment Is there an established pattern for associating a database entry with a Java class that executes on that data?
If you do not have state, it seems an example of the strategy pattern. You could still use JPA for that, but using enum. That enum would be a property of the actual "entity" (which would be the nodes or leafs of the tree).