Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Ever since I became deaf and realized being good at technical algo ds > actual experience coding and building apps...
And was reminded of it recently... job hunting sucks...
Oh and one of my "friends" just landed a $200,000 job at a hedge fund... I'm pretty sure I can kick his ass at coding a real problem though...8
Upgrading my tech skills.. Once again I feel my personal my personal dev environment and told are much more up-to-date than what I use at work.... Though the book Kim reading is on TDD and was written 3 years ago.
Maybe I should read another on in cloud services and ML... but don't have any motivation for these topics.
I need TDD for work because now we're emphasizing unit test coverage...
I usually only use manual functional tests to verify the final outputs as either the testing framework is broken (JS) or I don't have time to relearn the frameworks for the particular language...
Anyway got off topic... So questions after:
1. Do you ever feel your technologically always more ahead than what you do at work and essentially you bring skills to the job but you don't learn much out of it?
2. How do you test? I actually got into a bit of a argument/discussion with my colleagues about how to implement unit tests. Apparently there are 2 ways to test? Black box vs WhiteBox. She said she tests only Public methods using mock inputs, dependencies. She read online and seems there is an opinion that should only test public functions and if you can't then your app is designed incorrectly, not separated enough.
For me I test the private functions individually (WhiteBox/Java reflection) because the public one is like generateReport and as a whole is like a Pachinko machine, too many unique paths that would need a test case for.
So thoughts? Yes sorry for turning it into a remake I guess...25
I think I just realized the relationships between toons in Looney Toons: World of Mayhem is basically a graph... And so the optimal teams can be found by solving Pick 4 Vertices (toons) that maximize the # of Edges (positive relationships) between them...
Is there an algorithm that finds that or I just bring force it by testing all combos? Given the # of toons shouldn't take too long.2
Is HackerRank a good site to prepare for technical interviews? And I guess the general question is how to best prepare?
The problems are interesting but it seems most of the Medium+ ones require knowledge of a specific approach or the large test cases will terminate with timeouts or out of memory.
Been sitting on this for a week. Just implemented the recursive versionwhich is better but now times out.
Haven't been reading Dilbert for other a month but finally got around to it today. I read it through an app I made that downloads all the comics from the site.
Well apparently the downloader downloaded too much/too fast. It seems my IP is now blocked....
Wonder if it's temporary. O well... I got VPNs...
Wow so WindScribe VPN apparently now has DNS ad blocking sort of like PiHole.
So no more annoying popups and video ads... Or messages from the sites saying I'm using an ad blocker!
And the kicker is I bought a life time subscription for $40 a few years ago.
Guess they were able to grow nice and big.9
I estimate by guessing how long it will take me to code then multiply it by 3 and round up to the whole unit.
10-30min work = 1 day
2 day work = 1wk
1wk work = 2-3wks
1month = 3 months
If only I didn't have to deal with other people that take forever....
That and I feel lately whenever my boss ask me for a "quick" change or feature... I literally have to go "down boy down, stop thinking your in a candy store" like he's a little kid.1
How do the mobile offers in games like "get 1000 Gems if you ... in some other app" able to verify that you actually did that?10
How come when implementing merge sort the mid doesn't need to deal with odd/even division?
I know int will always go down if there is decimal but how will it cover the whole array?
I guess in general, array indexing that involves dynamic cutoffs always confuse me.
How do you think about them without having to try things out on paper?7
Lately I've sort of feel like I've personally plateaued... Outside of work, which is still not very challenging, I don't have any personal problems I want to solve. It sorts feels like for everything I want there's either an app I can download or already built (or at least 90% of it and just needs some adjustments or repurposing).
The strange part is it's getting replaced by solving/looking at algorithm problems.
Originally I was going to do mobile + React but I just don't feel motivated anymore... Even if I did build it I doubt I'd use it and I don't have any mobiles apps I want either...
Maybe I'm just really bored at work so now the equation makes sense...
Bored + would like better job == algorithm puzzles
Though I still need to figure out what to do with my reading list and prime videos... They've sorta been backgrounded... And maybe even devrant as well...
Oh yes haven't watched my big TV for over a month....3
I have a git feature branch with my commits but also have merged the changes from the main branch to resolve merge conflicts before PR.
But now need to create a special release with just my changes.
So I think have to cherry pick all my commits on my branch some the last Release. How can I do that?
Develop (others) + Feature => Develop
Want to create new branch
Last Release + Feature (but only my commits since last Release)4
Was solving algo problems for the last few hours again. It's for technical interview prep but what I realized was...
If I just see them as puzzles rather than a pointless barrier to me getting a better job... they actually become fun...
That and maybe I'm bored at work, need something intellectually challenging/requires thinking, and out of ideas for personal projects I want to build.1
Finally.... Spent over an hour trying to optimize ~5 lines of code... Guess it was a review on how to use primes for hasig but....
Root cause was I just needed a slightly faster hashing function...
1 test failed from timeout of like maybe 1sec. Test shows passed, then in details shows Timeout...
Was recommended this comic... It makes me feel bad for IE and Bing...
The temper glad protector on my OP6 decided to suddenly fresco and fall off. It's a bit weird thought... There's no sticky feeling under that area....
Cheap Chinese product?14
Today I wanted to automate checking the status of running jobs. There's a UI but navigating it is tedious and I sort of wanted a Dashboard.
So I started writing a Selenium app to automate it. I'm writing the code, inspecting all the inputs. And I'm looking "woah, all of them have nice ids... This should be easy"
Login is ok, but then run into IFrames (can't find the input elements on the page itself).
Fine Google... find the answer and so try again. But wait... It doesn't work???
There's apparently 9 of them on the page. And there's no easy way to identify the correct one...
Spent an hr trying different ways of locating the right one... eventually settling on very complex XPath...
All in all though it took 2 hours... And still not done...1
I think here the CS degree/experience just gives you training basically to pass this technical interviews which has been a constant problem because 99% of the work you actually do, you ain't gonna need it. (I don't work at big tech companies but pretty sure it's the same, have to be very Senior and leading a project before you really need to think about this stuff?)
I don't have a CS degree unfortunately, completely self taught, but that experience while "impressive" to interviewers doesn't seem to matter much when do how do you implement a red black tree or quick-sort.
I may know the difference in general but I don't fucking care to remember the details as YAGNI... If rather remember the things I need every day
I finally have some motivation to write some personal code... on an existing project.
(Work has been too hectic the last few months so don't want to do anymore at home...)
Anyway... I noticed that my Prime Video Tracker app doesn't pick up some of the new Movies now available on Prime, so I did some fixing.
Good News (GN): The search URL is actually static so can goto the same URL for the same search results
GN: The program can filter the movies by a Minimum # of Ratings they have (currently set to 100... use to be 10)
Bad News (BN): The number of movies in the search results is over 5000 (used to be 100-200) so even with this filter, a lot get returned.
GN: the traversal is fully automated
BN: Need to manually look at the descriptions of each and add them the Watchlist
BN: I now have 200 movies on my Watchlist and still going...
So now I have another "Infinite list". Existing ones:
-Blinkist Read List
-Comics (sort of, I have a huge backlog for Cyanide and Happiness)
-Photos that need "post-processing"
I'm pretty sure I'm forgetting some others...
Is anyone running LineageOS on OnePlus 6? Apparently it's been out for awhile but seems it's still unofficial... And basically have to write the whole phone again... And there's something about needing to flash A/B partitions too with Stock OxygenOS?
But I'm already running OOS?
I was just chatting with my dad. He used to be mostly a C# dev but changed jobs and is now doing mostly Java. He says he likes it better.... Because it doesn't have lambdas/anonymous functions.
Uh.... Java was the first and only language where you can define interface implementations in-line (aka a whole bunch of functions)...
And 1.8 supports lambdas for Interfaces that have a single function...
I bet he'll hate JS... Where functions are can be passed around like objects, ES6 now supports lambdas and await, async... and anonymous functions (apparently they're called arrow functions?)9
So all Matrix movies are now on Prime... Not sure when exactly that happened but watching them right now.
Apparently the original was released in 1999 so that's like 20 years ago.
Seems like the image of future AI hasn't changed much.
And I just got kicked off the TV so a group of guests can watch America's Got Talent... :(8
When ALT+TAB suddenly stopped working, I realize how much I use/need it... And I guess just bring able to switch between Windows in most recently used order...
Is there some sort of tool where I can put in a package.json and it show what the latest version of each can be used or which package(s) is blocking any upgrade?
Have a project that has lots of dependencies but they are very old and some maybe deprecated or are preventing new libraries from being installed5
I guess coding is a coping mechanism for not matching on any dating sites and hence no dates...
I guess you could say it helps me find alternative methods to release my per up desires... Although I guess a real relationship is something it can't replace...
Boss: Write a program to generate a report using some data from an existing one.
Me: OK, I will look into doing a POC
Boss: Also it would be stored in Mongo so all the data is queryable
Me: OK I will generate the file first
Boss: But it needs to be in DB, couldn't you just upload it when done?
This discussion goes on for 30 mins+ preventing me from finishing release related work...
IF THE FCKING POC/REPORT ITSELF IS WRONG OR IS MISSING INFORMATION/CAN'T BE GENERATED WHY THE FUCK DOES WHERE IT'S STORED MATTER?!!!!!!!!!!! WHY ARE TOY EATING TIME ON THESE TINY DETAILS THAT DON'T MATTER AT THE MOMENT.
FUCKING GET YOUR PRIORITIES STRAIGHT. YES EVERYTHING IS DOABLE... JUST NOT NOW.....5
How do you implement TDD in reality?
Say you have a system that is TDD ready, not too sure what that means exactly but you can go write and run any unit tests.
And for example, you need to generate a report that uses 2 database tables so:
2. Processor logic
3. Output to file
So 1 and 3 are fairly straightforward, they don't change much, just mock the inputs.
But what about #2. There's going to be a lot of functions doing calculations, grouping/merging the data. And from my experience the code gets refactored a lot. Changing requirements, optimization (first round is somewhat just make it work) so entire functions and classes maybe deleted. Even the input data may change. So with TDD wouldn't you end up writing a lot of throwaway code?
A lot of times I don't know exactly what I want or need other than I need a class that can do something like this... but then I might end up throwing the whole thing out and writing a new one one I get a clearer idea of what i or the user wants or needs.
Last week I was building a new REST API, the parameters and usage changed like 3 times. And even now the code is in feasibility/POC testing just to figure out what needs to be used. Do I need more, less parameters, what should they be. I've moved and rewritten a lot of code because "oh this way won't work, need to try this way instead"
All I start with is my boss telling me I need an API that lets users to ... (Very general requirements).15
So for wrok i need a js lib that can parse and extract elements from a HTML response.
Been thinking about it in the back of my mind for a few days now and just realized the answer has been in front of me all along...
This is an app wrote for myself a few months ago that checks a site for updates... its built with React Native...2
Follow up on previous post https://devrant.com/rants/1986014/...
Tell my dad about this and this is the convo we have when he goes "why didn't you think of that... in fact I had this app idea 2 years ago"
Clear pic: http://imgur.com/a/9ESrRga2